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
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
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.
`evalJS` tells Prototype not to evaluate JSON, not scripts.
That's actually incorrect.
- `evalJSON` controls the evaluation of JSON data,
- `evalJS` of JavaScript programs served through xhr, and
- `evalScripts` of the content of script tags found in the
responseText property of the xhr
Hi Tobie,
That's actually incorrect.
Thanks! It struck me as odd but I figured I was just misremembering,
because I was drawing on the docs for that answer -- and they say[1]
`evalJS` controls JSON eval:
evalJS (Boolean | String; default true): Automatically evals the
content of