on showcase, remote div, there is an example that works(#6 I think), based
on that example I modified one of tabbedpanel examples on showcase to this:
<s:url id="test3" value="/Test3.action" />
<s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height:
300px;" doLayout="true">
<s:div theme="ajax" href="%{test3}" id="ryh1" label="remote one"
executeScripts="true"/>
</s:tabbedPanel>
The returned jsp is test.jsp from apps/showcase/src/main/webapp/ajax:
<script language="JavaScript" type="text/javascript">
alert('This JavaScript currently being evaluated is in the result...');
</script>
Show me some text also
<script language="JavaScript" type="text/javascript">
alert('And some more text for fun!');
</script>
And it shows the two alerts, and sets the tab content to: "Show me some text
also"
regards
musachy
On 3/28/07, Guillaume Carré <[EMAIL PROTECTED]> wrote:
2007/3/28, Brian Thompson <[EMAIL PROTECTED]>:
> I HAD thought that setting executeScripts="true" on the div would do the
> trick, but I saw the same behavior with or without it.
>
> My divs looked like:
>
> <s:div theme="ajax" labelposition="right" href="%{selectResource}"
> id="selectResource" executeScripts="true"/>
>
same problem here
I define a javascript function in the div, and a call to that function
from the div doesn't work, the function is not found.
--
Guillaume Carré
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
"Hey you! Would you help me to carry the stone?" Pink Floyd