Closed GoogleCodeExporter closed 9 years ago
JavaScript that is loaded from an asynchronous request does not get executed.
If you
are using YUI to do the asynchronous request, however, you could use the
Dispatcher
plugin for YUI which aims to solve this very problem. Typical strategies to
fulfill
this need, like executing the innerHTML property or referencing remote scripts,
are
unreliable due to browser incompatibilities. The Dispatcher plugin avoids those
problems.
I have used it extensively with great success on my current project. For
example, we
call many pages asynchronously that contain JavaScript that must execute. We
still
have to put functions in a global script or on the master parent page, but
inline
script is all executed according to the order of apparition.
Original comment by cody.bur...@gmail.com
on 30 Mar 2009 at 4:44
As per previous comment, resolving as "WontFix". JavaScript issues related
to execution after asynchronous load are not due specifically to this
plugin. Handling JavaScript from an asynchronously loaded page as described
should be handled separate and apart from this plugin using common methods
or a utility such as the Dispatcher plugin for YUI (not yet part of this
package).
Original comment by cody.bur...@gmail.com
on 2 Apr 2009 at 9:24
Original issue reported on code.google.com by
Sreeram....@gmail.com
on 19 Mar 2008 at 4:09