No worries! Glad that helped. -- T.J.
On May 18, 8:59 am, orbiter <dkarapet...@gmail.com> wrote: > You are right. I am using Element#update and that's exactly when the > eval script is getting called. I did a little debugging in firebug > that I should have done sooner but thank you for the info. > > On May 17, 11:02 pm, "T.J. Crowder" <t...@crowdersoftware.com> wrote: > > > > > > > Hi, > > > `evalJS` tells Prototype not to evaluate JSON, not scripts.[1] > > Ajax.Request doesn't evaluate script tags at all. Ajax.Updater will, > > unless you pass it the `evalScripts: false` option.[2] If you're using > > Ajax.Request, the only way I'm seeing script tags get processed is if > > you then use that content with Element#update.[3] Element#update will > > process all of the tags you feed to it, including script tags. You can > > strip them out of your response before feeding them to Element#update > > by using String#stripScripts.[4] > > > [1]http://api.prototypejs.org/ajax/ > > [2]http://api.prototypejs.org/ajax/ajax/updater/ > > [3]http://api.prototypejs.org/dom/element/update/ > > [4]http://api.prototypejs.org/language/string/prototype/stripscripts/ > > > HTH, > > -- > > T.J. Crowder > > Independent Software Consultant > > tj / crowder software / comwww.crowdersoftware.com > > > On May 18, 5:35 am, orbiter <dkarapet...@gmail.com> wrote: > > > > I've a little web app that loads and unloads pages with script tags in > > > them and even though I pass "evalJS: false" to the Ajax.Request I > > > still get an error message that says > > > > pq is not definedhttp://localhost/test/javascript/prototype.js > > > Line 605 > > > return this.extractScripts()... > > > > How can I prevent prototype from evaluating the script tags in the > > > incoming response? > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Prototype & script.aculo.us" group. > > > To post to this group, send email to > > > prototype-scriptacul...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > prototype-scriptaculous+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/prototype-scriptaculous?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Prototype & script.aculo.us" group. > > To post to this group, send email to > > prototype-scriptacul...@googlegroups.com. > > To unsubscribe from this group, send email to > > prototype-scriptaculous+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to prototype-scriptacul...@googlegroups.com. > To unsubscribe from this group, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.