...

View Full Version : Javascript datepicker works in VS2008 but fails when deployed



pprender
09-01-2011, 04:53 PM
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.

dotnetmind
09-03-2011, 02:08 PM
what is the current date format?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum