Hi, I am hoping this is a simple query to resolve but my JavaScript knowledge is a little 'flaky'... I am trying to have a javascript pop up calender appears on a page. I have used different scripts but they all result in the same null or not an object error, in this case it is ''document.tstest.timestamp' is null or not an object' Within the HEAD section I have: <script language="JavaScript" src="ts_picker.js" type="text/javascript"> </script> The BODY section shows: <INPUT TYPE="text" NAME="timestamp" VALUE="" SIZE=15> <a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);"><img src="cal.gif" width="16" height="16" border="0" alt="From"></a> Does anyone have any suggestions? Thanks!!
Morning. I downloaded the ts_picker.js library and tested this and it's working: <INPUT TYPE="text" id="timestamp" NAME="timestamp" VALUE="" SIZE=15> <a href="javascript:show_calendar('timestamp', document.getElementById('timestamp').value);"><img src="cal.gif" width="16" height="16" border="0" alt="From"></a>