jeromyevans / struts2yuiplugin

JSP Tags for Struts2 that create active YUI components
0 stars 0 forks source link

jscalendar within remote div #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use jscalendar within a jsp
2. call the jsp from a remote div tag
3.

What is the expected output? What do you see instead?
Calendar does not show up on clicking the icon.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by Sreeram....@gmail.com on 19 Mar 2008 at 4:09

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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