Hi Ranjan,
On Sat, Oct 4, 2008 at 16:56, Ranjan <[EMAIL PROTECTED]> wrote:
> I have the JSON objects(got from the XMLHttpRequest) and I want to
> refresh a particular div of a document with the JSON data (without
> refreshing the whole page). Needing help.
Not quite sure if this is what you're asking, but you can do this:
var content = SPAN(null, "Your new content, possibly using the JSON data");
replaceChildNodes('the_id_of_your_div', content);
http://mochikit.com/doc/html/MochiKit/DOM.html#fn-replacechildnodes
cheers,
Arnar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---