Web Analytics Made Easy -
StatCounter Javascript datepicker works in VS2008 but fails when deployed - CodingForum

Announcement

Collapse
No announcement yet.

Javascript datepicker works in VS2008 but fails when deployed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript datepicker works in VS2008 but fails when deployed

    I call the javascript to populate a textbox with the date using this link in the aspx page (tstest is the form ID and timestamp is the textbox ID) ....

    [code] <a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);"><img src="images\cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp"></a>[code]

    This is the link to the javascript code ....

    http://javascriptkit.com/script/script2/timestamp.shtml

    It works perfectly in VS2008 but when I deploy it to the site I get this error ....

    "Message: 'document.tstest.timestamp' is null or not an object"

    I've tried for hours and days to get this working so any help is greatly appreciated.

  • #2
    what is the current date format?
    Don't forget to mark solution providing post as "Answered".
    It helps others to find correct solutions!

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎