>
> I can't remember if JS has always come back in CDATA tags because like
> I said, it was working at one point, which would indicate JS wasn't
> coming back within CDATA tags.
If you can't remember whether it was wrapped in CDATA, the fact that
it's not now working does not indicate that CDATA has anything to do
with it.
>> I've used the Web Inspector tool in Safari to inspect the HTML view
>> being returned by the $ajax->link and the appropriate JavaScript is
>> there, however when loaded into the page, the JavaScript is stripped.
>> I thought it may be something to do with prototype's evalScripts
>> stripping the JavaScript from the returned view, however even when I
>> turn it off, the JavaScript isn't included.
Setting it to false will guarantee that it will not work.
I gave up on Prototype a long time ago, so I'm not sure what to
suggest. But, evalScripts is an option for Ajax.Updater. There's also
a more general Ajax option, evalJS:
http://www.prototypejs.org/api/ajax/options
Can you see which Content-type header is being returned?
Without seeing any code, though, it's difficult to suggest anything else.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment