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: getting variable is undefined on IE
joshmcd
Junior Member

Posts: 2
Registered: 11/23/2005
Member Is Offline
posted on 11/23/2005 at 09:41 AM Reply With Quote
getting variable is undefined on IE


I'm getting a javascript error saying that my calendar object variable is undefined when accessing my site from a PC using IE 6.

However, the exact same code works just fine when accessed from my Linux box using either Mozilla or Konqueror, on my Mac using Safari or even from the same PC using Netscape.

Any ideas?
View User's Profile View All Posts By User U2U Member
joshmcd
Junior Member

Posts: 2
Registered: 11/23/2005
Member Is Offline
posted on 11/23/2005 at 09:45 AM Reply With Quote
code sample


<FORM name="reminderadd" onsubmit="return validateOnSubmitRA()" action="scripts/.reminderadd.php" method="post">
<INPUT type="hidden" name="reminderSubmitPage" value="leaddetails.php?leadid=1000239">
<INPUT type="hidden" name="reminderScope" value="leads">
<INPUT type="hidden" name="reminderScopeCode" value="1068">
<INPUT type="hidden" name="reminderRefID" value="1000239">
<INPUT type="hidden" name="updatePrimaryKey" value="leadID">
<tr>
<td align="right" width="100" class="BodySmall">
reminder date:<img src="images/spacer.gif" width="10">
</td>
<td width="325" align="left">
<input type="Text" name="reminderdate" value="">
<a href="javascript:remcal.popup();"><img src="img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a><br>
</td>
<td id="inf_reminderDate" width="75" class="Footer" align="left">required</td>
</tr>
<tr>
<tr valign="top">
<td align="right" width="100" class="BodySmall">
reminder text:<img src="images/spacer.gif" width="10">
</td>
<td width="325" align="left">

<TEXTAREA name="reminderText" cols="38" rows="5" >&#60; enter reminder text here &#62;</TEXTAREA>
</td>
<td id="inf_reminderText" width="75" class="Footer" align="left"></td>
</tr>
<tr>
<td colspan="3" align="center">
<img src="images/spacer.gif" height="5">
</td>

</tr>
<tr>
<td colspan="3" width="500" align="center" class="BodyBlack">
<INPUT type="submit" value="< set reminder >">
</td>
</tr>
</FORM>
<script language="JavaScript">
<!-- // create calendar object(s) just after form tag closed
// specify form element as the only parameter (document.forms['formname'].elements['inputname']);
// note: you can have as many calendar objects as you need for your application
-->
var remcal = new calendar2(document.forms['reminderadd'].elements['reminderdate']);
remcal.year_scroll = true;
remcal.time_comp = false;
</script>
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