You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rrecoba <rr...@hotmail.com> on 2007/08/07 01:10:35 UTC
executeScript not working?
Hi, i´m trying to do something like the example "A div that calls the server,
and JS in the resulting page is executed" in the showcase. But with a little
diference, i´m not using the href in the s:div tag, i´m just using a link to
reload the content.
The problem is that the scripts in the reoladed content is not being
executed, any idea?
<s:url id="test3" value="/Test3.action" />
<s:a href="%{test3}" theme="ajax" targets="error" loadingText="Cargando
...">Alta persona</s:a>
<s:div
id="error"
cssStyle="border: 1px solid yellow;"
theme="ajax"
delay="1000"
executeScripts="true"
loadingText="reloading">loading now</s:div>
Thanks.
--
View this message in context: http://www.nabble.com/executeScript-not-working--tf4227213.html#a12025957
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: executeScript not working?
Posted by rrecoba <rr...@hotmail.com>.
Yes it has, but when i use it, a "Undefined" message appears in the page
inside the div. What i´m doing wrong?
Thanks.
mihel wrote:
>
> rrecoba wrote:
>> Hi, i´m trying to do something like the example "A div that calls the
>> server,
>> and JS in the resulting page is executed" in the showcase. But with a
>> little
>> diference, i´m not using the href in the s:div tag, i´m just using a link
>> to
>> reload the content.
>> The problem is that the scripts in the reoladed content is not being
>> executed, any idea?
>> <s:a href="%{test3}" theme="ajax" targets="error" loadingText="Cargando
>> ...">Alta persona</s:a>
>
> Doesn't s:a have a parameter telling to execute scripts?
>
> Oleg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/executeScript-not-working--tf4227213.html#a12034028
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: executeScript not working?
Posted by Oleg Mikheev <mi...@bigfoot.com>.
rrecoba wrote:
> Hi, The problem was that the js has some javascript to be executed that uses
> the document.getElementById(). ( known issue (WW-1951) ), that will be fixed
> in v2.1.0. Now i´m trying to find some workaround ¿any ideas?
Define a function with your JS and execute it once page is loaded.
Try putting smth like
_container_.addOnLoad(function() {alert('hi');});
inside the result.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: executeScript not working?
Posted by Manuel Correa <mc...@itos.uga.edu>.
I have the same problem, how we fix this ?? we have to wait to 2.1 release ??
Manuel Correa.
-----Original Message-----
From: rrecoba [mailto:rrecoba@hotmail.com]
Sent: Tuesday, August 07, 2007 4:17 PM
To: user@struts.apache.org
Subject: Re: executeScript not working?
Hi, The problem was that the js has some javascript to be executed that uses
the document.getElementById(). ( known issue (WW-1951) ), that will be fixed
in v2.1.0. Now i´m trying to find some workaround ¿any ideas?
thanks.
mihel wrote:
>
> rrecoba wrote:
>> Hi, i´m trying to do something like the example "A div that calls the
>> server,
>> and JS in the resulting page is executed" in the showcase. But with a
>> little
>> diference, i´m not using the href in the s:div tag, i´m just using a link
>> to
>> reload the content.
>> The problem is that the scripts in the reoladed content is not being
>> executed, any idea?
>> <s:a href="%{test3}" theme="ajax" targets="error" loadingText="Cargando
>> ...">Alta persona</s:a>
>
> Doesn't s:a have a parameter telling to execute scripts?
>
> Oleg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/executeScript-not-working--tf4227213.html#a12041510
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: executeScript not working?
Posted by rrecoba <rr...@hotmail.com>.
Hi, The problem was that the js has some javascript to be executed that uses
the document.getElementById(). ( known issue (WW-1951) ), that will be fixed
in v2.1.0. Now i´m trying to find some workaround ¿any ideas?
thanks.
mihel wrote:
>
> rrecoba wrote:
>> Hi, i´m trying to do something like the example "A div that calls the
>> server,
>> and JS in the resulting page is executed" in the showcase. But with a
>> little
>> diference, i´m not using the href in the s:div tag, i´m just using a link
>> to
>> reload the content.
>> The problem is that the scripts in the reoladed content is not being
>> executed, any idea?
>> <s:a href="%{test3}" theme="ajax" targets="error" loadingText="Cargando
>> ...">Alta persona</s:a>
>
> Doesn't s:a have a parameter telling to execute scripts?
>
> Oleg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/executeScript-not-working--tf4227213.html#a12041510
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: executeScript not working?
Posted by Oleg Mikheev <mi...@bigfoot.com>.
rrecoba wrote:
> Hi, i´m trying to do something like the example "A div that calls the server,
> and JS in the resulting page is executed" in the showcase. But with a little
> diference, i´m not using the href in the s:div tag, i´m just using a link to
> reload the content.
> The problem is that the scripts in the reoladed content is not being
> executed, any idea?
> <s:a href="%{test3}" theme="ajax" targets="error" loadingText="Cargando
> ...">Alta persona</s:a>
Doesn't s:a have a parameter telling to execute scripts?
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org