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 during cal_init when using modal version
paulm
Junior Member

Posts: 2
Registered: 1/4/2004
Member Is Offline
posted on 1/4/2004 at 08:44 PM Reply With Quote
Error during cal_init when using modal version


I'm trying to set-up a page that uses the modal version of the control. When the page loads, I'm getting an error on this line:

this.mon_ctrl = document.forms['calform' + this.id].elements['calmon'];

It's evaluating to null.

My HTML page is pretty simple. In the head section I've got:

<link rel="stylesheet" href="calendar.css">
<script language="JavaScript" src="JavaScript/calendar.js"></script>
<script language="JavaScript" src="JavaScript/cal_format01.js"></script>

The main body looks like this:

<form action="Report.do" method="post" name="report">
<table width="50%">
<tr>
<td><span class="BodyText">Start:</span>
<script language="JavaScript">
new calendar(null, 'report', 'dStart');
</script>
</td>
<td><span class="BodyText">End:</span>
<script language="JavaScript">
var cal1 = new calendar(null, 'report', 'dEnd');
</script>

</td>
</tr>
</table

</script>
<input type="submit" name="btnView" value="View">
<script language="JavaScript">

for (var n = 0; n < calendars.length; n++) {
calendars[n].init();
}
</script>

</form>

Any ideas as to what I'm missing?
View User's Profile View All Posts By User U2U Member
CFD
Moderator

Posts: 48
Registered: 12/8/2003
Member Is Offline
posted on 1/5/2004 at 10:37 AM Reply With Quote

You should placed code

<script language="JavaScript">
for (var n = 0; n < calendars.length; n++) {
calendars[n].init();
}
</script>

arter tag </form> and befor tag </body>
View User's Profile View All Posts By User U2U Member
paulm
Junior Member

Posts: 2
Registered: 1/4/2004
Member Is Offline
posted on 1/6/2004 at 01:12 AM Reply With Quote

Thanks, that works a lot better.

-Paul
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Popup Calendar
Onpage Calendar
Modal Calendar
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


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