jussa
03-07-2006, 03:41 AM
Hi all,
i get an error when i try to run this function, on line 18, column 20...
function initDisp(list, img) {
var rtnCookie = getCookie(list);
//var lstStyle = document.getElementById("cal_div").style;
if (rtnCookie=="true"){
document.getElementById(list).style.display="block";
document.getElementById(img).src = "arrow_up.gif";
}
else {
document.getElementById(img).src = "arrow_down.gif";
document.getElementById("cal_div").style.display.display="none";
}
}
line 18, column 20 refers to this line...
document.getElementById(list).style.display="block";
and this is the erro message i get./... is 'Object Required'...
this is the code i try n run to call the function...
<script type="text/javascript">initDisp('cal_div','cal_img');</script>
and both cal_div and cal_img are correct, as they work in a seperate function...
does anyone know why this could be happening??
Thnks all in advance, Justin
i get an error when i try to run this function, on line 18, column 20...
function initDisp(list, img) {
var rtnCookie = getCookie(list);
//var lstStyle = document.getElementById("cal_div").style;
if (rtnCookie=="true"){
document.getElementById(list).style.display="block";
document.getElementById(img).src = "arrow_up.gif";
}
else {
document.getElementById(img).src = "arrow_down.gif";
document.getElementById("cal_div").style.display.display="none";
}
}
line 18, column 20 refers to this line...
document.getElementById(list).style.display="block";
and this is the erro message i get./... is 'Object Required'...
this is the code i try n run to call the function...
<script type="text/javascript">initDisp('cal_div','cal_img');</script>
and both cal_div and cal_img are correct, as they work in a seperate function...
does anyone know why this could be happening??
Thnks all in advance, Justin