Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3338
clientside events don't work as expected.
posted

I have this..

 

 <ig:WebDatePicker ID="WebDatePicker1" runat="server" DisplayModeFormat="g"
                    EditModeFormat="g" StyleSetName="Default" StyleSetPath="ig_res">
                    <ClientSideEvents CalendarClosed="CalClose1" />
                </ig:WebDatePicker>

 

so when the calendarClosed event is hit I want it to run this function.

 

function CalClose1()
   if icount1 =0 then
    icount1=1
       webdatepicker1.value = webdatepicker1.value & " 12:00:00 AM"
    end if   
   end function

 

I get an error from your javascript saying CalClose1 must be a function..

 

someone wanna tell me what I have done wrong?

entire script below

 

<script type="text/script" language="vbscript">
   dim icount1
   dim icount2
  
   function CalClose1()
   if icount1 =0 then
    icount1=1
       webdatepicker1.value = webdatepicker1.value & " 12:00:00 AM"
    end if   
   end function
  
   function CalClose2()
   if icount2 =0 then
    icount2=1
       webdatepicker2.value = webdatepicker2.value & " 11:59:59 PM"
    end if   
   end function
   </script>

Parents Reply Children
No Data