Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2005
    Location
    Sydney, Aust
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    296
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Have you tried setting the following option in you Ajax.Updater code?

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

    Naveen


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •