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: cal is null or not an object
jcarriere
Junior Member

Posts: 4
Registered: 3/4/2008
Member Is Offline
posted on 5/13/2008 at 07:05 PM Reply With Quote
cal is null or not an object


I had resolved this problem, but it has reappeared. I am not sure what to check. I can find the error message, but can't seem to resolve it. Code excerpts below"
<html><head runat="server"><script language="javascript" type="text/javascript">
function FillValueFromPopup(popupvalue)
{
document.getElementById('<%=txtProductNo.ClientID%>').value = popupvalue;
}
function DoOnClick() {
window.open("orderhistory.aspx");
}
</script>

<script language="javascript" type="text/javascript" src="calendar2.js"></script>


Cal1 works just fine
Cal1 does not work
Here is the call from the button for cal1
<asp:TextBox runat="server" id="txtInstallDate" Height="22px">
</asp:TextBox>
<a href="javascript:cal1.popup();">
<img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date" />
</a>
Here is the call from the button for cal2
<asp:TextBox runat="server" id="txtOutofService"></asp:TextBox>
<a href="javascript:cal2.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"/>
</a>

Here is the script at the end:
</form>
<script language="JavaScript" type="text/javascript">
<!-- // create calendar object(s) just after form tag closed


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

</script>
</body>
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