Board Logo

cal is null or not defined error
tigra - 3/20/2008 at 08:39 PM

this may have something to do with the updating the page dynamically. Anyway, first order of business is to enable javascript error console and watch for the messages.

jcarriere - 3/20/2008 at 08:45 PM

How do I enable the error console?

tigra - 3/20/2008 at 08:53 PM

it depends on the browser you're using. see help section.
some tips are at:

jcarriere - 3/20/2008 at 08:56 PM

Okay, thanks.
The errors are
1. syntax error
2. calendar2 is undefined
3. cal1 is null or not an object.

All the files are together in the same directory which is the root of the default.aspx page.

tigra - 3/20/2008 at 09:15 PM

first take care of the syntax error (it can be the reason for the rest). the error message should give you the line number.

jcarriere - 3/20/2008 at 09:20 PM

sorry, but without sounding stupid. The lines that they javascript error is stating does not have an error on it. For example it is stating that the calendar is not defined on line 222, but that line in code is a function not related to the calendar script file at all, but rather part of the Sub Page_Load function. I am at a complete lost. Should I send you the entire line of codes?

tigra - 3/21/2008 at 02:51 PM

Because your files can have includes and server side code the lines the browser reports may not match the lines you're looking at.
use view->source command of the browser to see the output of your server side script. The line numbers should work fine there.

Back to forum: