I was wondering if someone here would know why I get an error “document.pageLoading” is null or not an object if pageloading is a swf file?
function toggleDiv(divid){
if(document.getElementById(divid).style.display == ‘none’){
document.getElementById(divid).style.display = ‘block’;
document.pageLoading.TCallLabel(”/”,”restart_function”);
}else{
document.getElementById(divid).style.display = ‘none’;
}
}
any help would be great… i’m just trying to call a function in action script when the div is toggled by the javascript… thanks
****edit
Also now i get ‘document.getElementById(…)’ is null or not an object
Why?
i want to be error free
any ideas?