Hello,
I have a Tabbed Panel and will execute JavaScript in the div Tabs.
But the Scripts will not be executed, I use the parameter
executeScripts="true".
My TabbedPanel looks like this:
<sx:tabbedpanel id="editTabs" cssStyle="width: 570px; zindex: 110"
doLayout="false">
<s:url id="descurl" namespace="/" action="editDescription"/>
<sx:div cssClass="tabs" id="description" indicator="indid"
label="Description" preload="false" href="%{descurl}" executeScripts="true">
images/indicator.gif
</sx:div >
<s:url id="newsurl" namespace="/" includeParams="none" action="editNews"/>
<sx:div cssClass="tabs" id="news" indicator="indin" label="News"
href="%{newsurl}" executeScripts="true" refreshOnShow="true" preload="false"
>
images/indicator.gif
</sx:div >
</sx:tabbedpanel>
Is a JavaScript like the one in the ShowCase.
<script language="JavaScript" type="text/javascript">
alert('It Works!!');
</script>
But this JavaScript was never executed, and is not present in the Result.
when I turn Debug on, I become following debug messages:
DEBUG: widget ID collision on ID: description
DEBUG: widget ID collision on ID: news
DEBUG: Error running scripts from content: undefined
What means undefined?
Best Regards
Johannes Geppert
--
View this message in context:
http://www.nabble.com/-S2--No-JavaScript-in-TabbedPanel-tp14772176p14772176.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]