| View previous topic :: View next topic |
| Author |
Message |
Obritzberger
Joined: 22 May 2007 Posts: 1
|
Posted: Wed Nov 14, 2007 11:02 pm Post subject: dotj:tab |
|
|
Hello
I have a little problem with the <dotj:tabcontainer> <dotj:tab>
below you can find my sample code
The problem is:
I define a onclick-Event on <dotj:tabimgon> and <dotj:tabimgoff> But the defined JavaScript Function is only called when <dotj:tabimgon> is displayed. The purpose is: I want to interact with my Servlet when the user clicks on the Tab-Image
<dotj:form name="frmOptions" method="post">
<dotj:tabcontainer id="idtest">
<dotj:tab>
<dotj:tabimgon onclick="ClickTest(0)" name="traubenberichton" src="img10.jpg" alt="" border="0"/>
<dotj:tabimgoff onclick="ClickTest(1)" name="traubenberichtoff" src="img11.jpg" alt="" border="0"/>
11111111111111
</dotj:tab>
<dotj:tab >
<dotj:tabimgon onclick="ClickTest(0)" name="traubenberichton" src="img20.jpg" alt="" border="0"/>
<dotj:tabimgoff onclick="ClickTest(1)" name="traubenberichtoff" src="img21.jpg" alt="" border="0"/>
22222222222222222222
</dotj:tab>
</dotj:tabcontainer>
<script language="JavaScript">
function ClickTest(onoff) {
alert("ClickTest="+onoff);
}
</script>
</dotj:form> |
|
| Back to top |
|
 |
support Site Admin
Joined: 01 Jan 1970 Posts: 79
|
Posted: Sat Nov 17, 2007 7:35 am Post subject: |
|
|
We will be adding a postonselect attribute to version 2.8.1 so that this can be done in the best way. _________________ - support |
|
| Back to top |
|
 |
|