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 message from eventcalendar.js

Posts: 1
Registered: 9/28/2008
Location: Sweden
Member Is Offline
posted on 9/28/2008 at 04:57 PM Reply With Quote
Error message from eventcalendar.js

I use a chatprogram SPChat for PHP-Nuke, which is now unsupported it seems.

I get an error message from both Explorer and Firefox, when oppening the chat window.

parent.window.wIn.documents.forms.form1.elements is null or not an object.

This points to this line in SPChat options:

var cal1 = new calendar1(parent.window.wIn.document.forms['form1'].elements['txt']);

The entire part for this code:

<?php if ($GLOBALS['spchat']['config']['allow_events'] == 1 && $admincreated === true ) { ?>
<script language="JavaScript" src="<?=$GLOBALS['spchat']['basedir'] ?>/eventcalendar.js.php"></script>
<script language="JavaScript">
var cal1 = new calendar1(parent.window.wIn.document.forms['form1'].elements['txt']);
cal1.year_scroll = true;
cal1.time_comp = true;

Grateful for input!
In Firefox the chat window don't reveal what people with Explorer chat. Don't know if this is connected with this error.
View User's Profile View All Posts By User U2U Member

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 12/8/2008 at 04:02 AM Reply With Quote

make sure form form with name "form1" exists in the document.
If name of the form is different update it in the calendar initialization. If forms are not named then use numeric indexes (document.forms[0] refers first form in the page)
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Calendar
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
Tigra Calendar PRO
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