pauline
Junior Member
Posts: 2
Registered: 2/15/2009
Location: israel
Member Is Offline
|
| posted on 2/15/2009 at 07:48 PM |
|
|
window.A_TCALSIDX.length error
When I scroll up/down the page, I received js error:
window.A_TCALSIDX.length is null or not an object...
Why?
Thanx.
|
|
|
pauline
Junior Member
Posts: 2
Registered: 2/15/2009
Location: israel
Member Is Offline
|
| posted on 2/16/2009 at 06:33 AM |
|
|
additional info
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
Administrator
Posts: 2050
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 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
Newbie
Posts: 1
Registered: 2/18/2009
Location: Pune
Member Is Offline
|
| posted on 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
Newbie
Posts: 1
Registered: 9/25/2009
Member Is Offline
|
| posted on 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
Newbie
Posts: 1
Registered: 12/26/2009
Location: KHI
Member Is Offline
|
| posted on 12/30/2009 at 04:44 AM |
|
|
Error is not resolved
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.
|
|
|