hey, i was wondering if its possible to use an Ajax.Updater which load a given page into a container .. but instead of parsing the html i would like to see the actual source code ... i could not find anything in prototype. thanks for advice!
on 13.05.2008 13:20
on 13.05.2008 14:41
Hey, michal wrote: > hey, > i was wondering if its possible to use an Ajax.Updater which load a > given page into a container .. but instead of parsing the html i would > like to see the actual source code ... i could not find anything in > prototype. I think you should use Ajax.Request, .escapeHtml the response in onComplete/onSuccess and then .update the placeholder: new Ajax.Request(url, { onSuccess: function(transport) { $(placeholder).update(transport.responseText.escapeHTML()); } }); Regards, Szymon