warelock
11-12-2003, 05:33 PM
I'm not as good at JavaScript as I would like to be ... I am not sure where to start with this one.
I would like to use one of the common free JS date pickers available out there; right now I am trying the one Kedar R. Bhave has created. (I attached the code below.) It works fine on a single page. However, when I place the form that calls the JavaScript in a frame ... I get errors. Specifically, one occurs when I try to pick a date - I get the message
'self.opener.document.calformEnd.datebox' is null or not an object'
I can see that the frame name is not included in the name of this object and think that is a clue to the problem ... but I can't figure out how to refer to the frame ...
I am calling the .js file with the code
<form name="calformEnd">
<input type="text" name="datebox" size="10"></input>
<a href="javascript:show_calendar('calformEnd.datebox');" onmouseover="window.status='Select Noise Ending Date';return true;" onmouseout="window.status='';return true;">
</a>
</form>
Actually I am not sure I can have one of these calendar objects in a frame. But it must be a fairly common need ...
Can anybody help ?
Thanks in advance !!
I would like to use one of the common free JS date pickers available out there; right now I am trying the one Kedar R. Bhave has created. (I attached the code below.) It works fine on a single page. However, when I place the form that calls the JavaScript in a frame ... I get errors. Specifically, one occurs when I try to pick a date - I get the message
'self.opener.document.calformEnd.datebox' is null or not an object'
I can see that the frame name is not included in the name of this object and think that is a clue to the problem ... but I can't figure out how to refer to the frame ...
I am calling the .js file with the code
<form name="calformEnd">
<input type="text" name="datebox" size="10"></input>
<a href="javascript:show_calendar('calformEnd.datebox');" onmouseover="window.status='Select Noise Ending Date';return true;" onmouseout="window.status='';return true;">
</a>
</form>
Actually I am not sure I can have one of these calendar objects in a frame. But it must be a fairly common need ...
Can anybody help ?
Thanks in advance !!