Hi,
The checkbox 'id=PWCheckBox8' after render by asp.net has get the attribute
'name=TabContainer1$TabPanel2$PWCheckBox8'
This attribute can now be used in javascript and works fine.
<!-- aspx -->
<!-- --------------------------------------------- -->
<div id="Div72" style="position:absolute;left:60px;top:243px;text-align:right;z-index:2">
<pwcontrol:PWCheckBox ID="PWCheckBox8" Height="18px" Width="135px" Text="Test" ValueID="" ValueIDIndex="0"
Font-Names="Tahoma,Verdana,Arial,Geneva,Helvetica,sans-serif" Font-Size="Small" TextAlign="Left" runat="server" />
</div>
<!-- After Rendering by asp.net -->
<!-- --------------------------------------------- -->
<DIV id=Div72
style="Z-INDEX: 2; LEFT: 60px; POSITION: absolute; TOP: 243px; TEXT-ALIGN: right"><SPAN
style="DISPLAY: inline-block; FONT-SIZE: small; WIDTH: 135px; FONT-FAMILY: Tahoma,Verdana,Arial,Geneva,Helvetica,sans-serif; HEIGHT: 18px"><LABEL
for=TabContainer1_TabPanel2_PWCheckBox8>Test</LABEL><INPUT
id=TabContainer1_TabPanel2_PWCheckBox8 onclick=CheckBoxChanged(this);
type=checkbox name=TabContainer1$TabPanel2$PWCheckBox8></SPAN></DIV>
the datepicker after render by asp.net has get the attribute
'name=_eo_TabContainer1_TabPanel2_DatePicker3_picker'
the attribut 'name=_eo_TabContainer1_TabPanel2_DatePicker3_popupimg' is missing.
Using this attribute in javascript has no effect. No error occured.
<!-- aspx -->
<!-- --------------------------------------------- -->
<div id="Div73" style="position:absolute;left:200px;top:240px;z-index:2" align="left">
<eo:DatePicker id="DatePicker3" runat="server" ControlSkinID="None" DayCellHeight="16"
DayCellWidth="20" DayHeaderFormat="FirstLetter" DisabledDates="" OtherMonthDayVisible="True"
PickerFormat="dd.MM.yyyy" SelectedDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL"
TitleRightArrowImageUrl="DefaultSubMenuIcon" VisibleDate="2008-08-01" >
...
</eo:DatePicker>
</div>
<!-- After Rendering by asp.net -->
<!-- --------------------------------------------- -->
<DIV id=Div73
style="Z-INDEX: 2; LEFT: 200px; POSITION: absolute; TOP: 240px"
align=left><!-- Begin EO.Web DatePicker DatePicker3.
http://www.essentialobjects.com -->
<SCRIPT type=text/javascript>
//<![CDATA[
var _eo_debug=true;
var _eo_aspnet11=0;
....
<TABLE id=TabContainer1_TabPanel2_DatePicker3 disabled cellSpacing=0
cellPadding=0 border=0>
<TBODY>
<TR>
<TD><INPUT id=_eo_TabContainer1_TabPanel2_DatePicker3_picker
style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: small; WIDTH: 65px; FONT-FAMILY: tahoma"
size=11 value=06.01.2009
name=_eo_TabContainer1_TabPanel2_DatePicker3_picker></TD>
<TD><IMG id=_eo_TabContainer1_TabPanel2_DatePicker3_popupimg
title="" alt=" " src="Startformular-Dateien/eo_web.gif"
onload="eo_ObjLoaded('_eo_TabContainer1_TabPanel2_DatePicker3_popupimg');"></TD></TR></TBODY></TABLE><INPUT
...
function CheckBoxChanged(element) {
var picker1 = document.getElementById("_eo_TabContainer1_TabPanel2_DatePicker3_picker");
//var picker2 = document.getElementById("_eo_TabContainer1_TabPanel2_DatePicker3_popupimg");
var objtextbox = document.getElementById("TabContainer1$TabPanel2$PWTextBox3");
if (element.checked) {
// Code works
objtextbox.value='checked';
// This Code has no effect
picker1.disabled=false;
//picker2.disabled=false;
} else {
// Code works
objtextbox.value='not checked';
// This Code has no effect
picker1.disabled=false;
//picker2.disabled=false;
}
}