SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 168 | Next

Jonathan Snook, Aaron Gustafson, Stuart Langridge, and Dan Webb

"Accelerated DOM Scripting with Ajax, APIs, and Libraries"

A string response can be quite powerful because you can transform that string
into something much more useful.
HTML
This is super sweet and easy. All you have to do is return an HTML snippet and then insert that
snippet into the document:
var htmlSnippet = transport.responseText; // grabs the text response
var el = document.getElementById('placeholder');
el.innerHTML = htmlSnippet;
nNote If you return an HTML snippet with a