Javascript error - help needed !

Discussion in 'JavaScript' started by freebie, Nov 10, 2007.

  1. #1
    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? :confused:

    Thanks!!
     
    freebie, Nov 10, 2007 IP
  2. freebie

    freebie Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'll pay $5 via PayPal to anyone who can help me activate this and get up and running...
     
    freebie, Nov 11, 2007 IP
  3. JeffHood

    JeffHood Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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>
     
    JeffHood, Nov 12, 2007 IP
  4. tarponkeith

    tarponkeith Well-Known Member

    Messages:
    4,758
    Likes Received:
    279
    Best Answers:
    0
    Trophy Points:
    180
    #4
    Where is ts_picker.js? Did I miss something?
     
    tarponkeith, Nov 14, 2007 IP