I have 2 a greybox that opens with a link(internal to my site). Once the link is clicked, I want the greybox to close and the mainpage header to redirect. I've tried a small script but it closes the greybox then does nothing. I've tried it with the greybox callback and within the script. It either opens the new page in the greybox or closes the greybox and does nothing else... Any input would be greatly appreciated.
Thanks!
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4 && xmlhttp.status==200){
if(xmlhttp.responseText==1){
parent.parent.GB_hide();
UpdatePostsDiv()
setCookie("PBdy", PostBody.value, 365);
}
}
}

New Topic/Question
Reply



MultiQuote



|