...

View Full Version : Ajax.Updater with Javascript response



shnplr
08-22-2007, 02:56 AM
Hi,
I'm using prototype function to display some html in a <div>. This all works fine, however for a session timeout I return a javascript response instead. This is eval'd as expected. My problem is the Ajax.Updater writes the javascript response into my <div> so the user can see the javascript code. Is there some way I can get prototype to only evaluate the javascript and NOT write it into the page ?

Thanks,
Paul

nkrgupta
08-22-2007, 07:00 PM
Have you tried setting the following option in you Ajax.Updater code?


evalScripts: true

http://prototypejs.org/api/ajax/updater

Naveen



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum