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
>

Reply via email to