Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Error Using calender.js
maverick_rahul
Junior Member

Posts: 2
Registered: 7/13/2006
Member Is Offline
posted on 7/14/2006 at 04:02 AM Reply With Quote
Error Using calender.js


I am using calender.js on my jsp page as

<c:url var="calendar2" value="/pages/assets/js/calendar2.js" scope="request"/>
<script type="text/javascript" src="<rahul:out value="${calendar2}"/>">
</script>

<a href="javascript:cal1.popup();"><img src="<rahul:out value='${calendarpick}'/>" border="0" alt="Click Here to Select the Date"></a></td>

<script language="JavaScript">

var cal1 = new calendar2(document.forms[0].elements['requestDueDate']);
cal1.year_scroll = true;
cal1.time_comp = false;


</script>


When the page is loaded i get an error
"Error calling the calender : no target control specified"
Error:'this.target.value' is null or not an object.

Its strange as the same code is working fine on other pages.

Please help me out.
Thanks in advance.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 7/14/2006 at 10:11 AM Reply With Quote

and where is that document.forms[0].elements['requestDueDate'] that you refer to?
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004