Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-22-2007, 02:56 AM   PM User | #1
shnplr
New Coder

 
Join Date: May 2005
Location: Sydney, Aust
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
shnplr is an unknown quantity at this point
Ajax.Updater with Javascript response

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
shnplr is offline   Reply With Quote
Old 08-22-2007, 07:00 PM   PM User | #2
nkrgupta
Regular Coder

 
Join Date: May 2005
Posts: 296
Thanks: 3
Thanked 4 Times in 4 Posts
nkrgupta is on a distinguished road
Have you tried setting the following option in you Ajax.Updater code?

Code:
evalScripts: true
http://prototypejs.org/api/ajax/updater

Naveen
__________________
My 1st JAPH!
nkrgupta is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:54 AM.


Advertisement
Log in to turn off these ads.