I'm able to reproduce the behavior you are describing, when 
executeScripts="false" and separateScripts="false" is set. By inspecting the 
html using Firebug, I can see that the javascripts are included, but unable to 
run. But when the attributes are set to executeScripts="true" and 
separateScripts="true", no scripts are executed and included. An error message 
is displayed instead: ' DEBUG: Error running scripts from content: undefined'.

So when for example a s:form is set to validate="true" in the remote content, 
the included scripts is unable to execute. Any workarounds for this would be 
appreciated :)

-Håken



-----Original Message-----
From: oscar perez [mailto:[EMAIL PROTECTED]
Sent: 16. mai 2008 18:19
To: Struts Users Mailing List
Subject: Re: No JavaScript in s:div

By setting executeScripts="true" and separateScripts="true" it is possible
to execute Javascript included from remote content. However this is executed
but not included in the rendered HTML. If I use executeScripts="false" and
separateScripts="false" the script is included in the rendered html but it
is not executed when the content is loaded.

I would like to mimic the behaviour of an included HTML. this is, if the
HTML contains functions in javascript, these functions are available for
this HTML, and if there is some script that is to be run when loading the
page, this will run. But with s and sx tags it seems impossible to get both,
i.e. execute the scripts when loading the page and have the scripts
available for further use.

Is there any workaround for this?
thanks,
Oscar

On Fri, May 16, 2008 at 4:26 PM, Yoge <[EMAIL PROTECTED]> wrote:

> set  executeScripts="true" in s:div tag.
> For ex
> <s:div theme="ajax" href="/myapp.do"   loadingText="Loading..."
> executeScripts="true"></s:div>
>
> --Yoge
> http://zoho.com
>
> On Fri, May 16, 2008 at 12:50 PM, Håken Stark <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> >
> > Are there any solution to these issues:
> >
> > http://issues.apache.org/struts/browse/WW-1766
> > http://issues.apache.org/struts/browse/WW-2501
> >
> > I'm still not able to execute any Javascript included from remote
> content.
> > Same issues persists in both Struts 2.0.11.1 and 2.1.2. Could someone
> give
> > me some input on this issues, especially issue WW-2501, since the comment
> > text says 'removed'?
> >
> > -Håken
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> --Yoge
> 91-9840425388
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to