Board Logo

window.A_TCALSIDX.length error
pauline - 2/15/2009 at 07:48 PM

When I scroll up/down the page, I received js error:
window.A_TCALSIDX.length is null or not an object...
Why?

Thanx.


pauline - 2/16/2009 at 06:33 AM

it happened in this function:

function f_tcalHideAll () {
for (var i = 0; i < window.A_TCALSIDX.length; i++)
window.A_TCALSIDX.f_hide();
}

at the line for (var i = 0; i < window.A_TCALSIDX.length; i++) ...


tigra - 2/16/2009 at 04:49 PM

see if replacing

window.A_TCALSIDX.f_hide();

with

window.A_TCALSIDX.f_hide();

solves the problem


bk4u - 2/18/2009 at 03:07 PM

Quote:
Originally posted by pauline
When I scroll up/down the page, I received js error:
window.A_TCALSIDX.length is null or not an object...
Why?

Thanx.


Just Comment each line of function f_tcalHideAll.
It will solve ur problem.

BK.............


slorandus - 9/25/2009 at 09:16 AM

You have to check if window.A_TCALSIDX exists and is an object.

Try this code:

function f_tcalHideAll () {
if (window.A_TCALSIDX != null){
for (var i = 0; i < window.A_TCALSIDX.length; i++)
window.A_TCALSIDX.f_hide();
}
}


Techlogix - 12/30/2009 at 04:44 AM

I have tried this code

function f_tcalHideAll () {
if (window.A_TCALSIDX != null){
for (var i = 0; i < window.A_TCALSIDX.length; i++)
window.A_TCALSIDX.f_hide();
}
}


and this code does removes the java script error but it also stops the calendar from opening up. Now when I click the calendar icon it gives me error and no calendar gets opened up.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/