Results 1 to 2 of 2

Thread: DTPicker

  1. #1
    Jason Guest

    Default DTPicker

    I&#039m using <BR>mydate = date<BR>DTpicker.value = mydate<BR><BR>but the control is not finished loading, and gives an error, I&#039ve tried using the onreadystate event, for some reason it never triggers. <BR>If I use a msgbox before setting the value it works.<BR><BR>Any suggestions?<BR>

  2. #2
    MikeD Guest

    Default RE: DTPicker

    Like you said, the control isn&#039t finished loading and either is the page. As soon as the page is done loading, then the control will also be loaded since the control is part of the page. <BR><BR>The reason it is working with the msgbox is that during that little extra time the msgbox gives you the page is done loading.<BR><BR>Try adding to your page<BR><BR>&#060;script language="javascript"&#062;<BR>function init(){<BR>DTPicker.value = mydate;<BR>}<BR>&#060;/script&#062;<BR>&#060;body onload="init()"&#062;<BR><BR>That has worked for me and seems to make sense as to why!<BR><BR>HTH<BR>-Mike D.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts