#21 ✓resolved
Veovis

Unable to load <script/> with Ajax.Updater

Reported by Veovis | July 20th, 2008 @ 07:19 PM

When using Ajax.Updater to retrieves some HTML code (not JSON neither pure javascript), Prototype does not parse

I usually use Ajax.Updater like this :

new Ajax.Updater('main', '?p=project&a=create&j=1', {method: get});

After some debug, Prototype remove any script tag at line 1448 (Ajax.Updater -> updateContent) because options.evalScripts is false.

I don't find this parameter in the documentation, but with that knowledge, I change my updater to

new Ajax.Updater('main', '?p=project&a=create&j=1', {method: get, evalScripts: true});

It seems this options is false by default.

Platform test : Firefox 2.0.0.16 - Win 2003 x64

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Referenced by

Pages