Just set executeScripts="true" on the div, and that will do the trick.

musachy

On 3/28/07, Brian Thompson <[EMAIL PROTECTED]> wrote:

I'm using a simple jsp with


<head>

    <s:head theme="ajax" debug="true" />
</head>

<s:url id="selectResource" action="selectResource" />
<s:url id="uploadResource" action="uploadResource" />

<s:tabbedPanel labelposition="top" id="resourcesPanel" theme="simple"
doLayout="false">
    <s:div theme="ajax" labelposition="right" href="%{selectResource}"
id="selectResource" executeScripts="true"/>
    <s:div theme="ajax" labelposition="right" href="%{uploadResource}"
id="uploadResource" executeScripts="true"/>
</s:tabbedPanel>


Inside my selectResource action, I have some javascript defined:

<div>
    <br />
    <p>Test</p>

    <script type="text/javascript">
        alert("javascript!");
    </script>

    <br />
</div>

However, when I load the page, I don't see the alert.  When I inspect the
source using Firebug, I note that the <script> block is missing.

Is there some trick I'm missing to get javascript to execute on remote
pages
in a tabbed panel?

Thanks in advance,

-Brian




--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to