PDA

View Full Version : Javascript Problem: open.window


Slynderdale
03-04-2003, 10:25 PM
For some reason, open.window isnt working in showthread and I cant figure out why, heres all the javascript in showthread:


<SCRIPT LANGUAGE="JavaScript" SRC="./js/fade.js"></SCRIPT>

<script language="JavaScript" type="text/javascript">
<!--
function whodownloaded(attachmentid) {
window.open("whodownloaded.php?attachmentid=" + attachmentid,"whodownloaded", "toolbar=no,scrollbars=yes,resizable=no,width=240,h eight=300, top=50, left=50");
}

function aimwindow(aimid) {
window.open("member.php?action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=175,height=275,resizeable=yes,status=no");
}

function openeditsigwindow(x,y,sessionhash,userid) {
window.open("moderator.php?action=editsig&s="+sessionhash+"&userid="+userid, "EditSig", "toolbar=no,scrollbars=yes,resizable=yes,width="+x+",height="+y);
}

function expand(listID) {
if (listID.style.display=="none") {
listID.style.display="";
}
else {
listID.style.display="none";
}
window.event.cancelBubble=true;
}

function contract(listID) {
if (listID.style.display=="show") {
listID.style.display="";
}
else {
listID.style.display="none";
}
window.event.cancelBubble=true;
}
// -->
</script>

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
return (new Object());
}

window.open = SymWinOpen;

//-->
</script>
</head>


The other javascript functions work correctly except for the ones that use open window, any one have a clue why?