PDA

View Full Version : PM popup not working


rstark
02-08-2003, 08:10 AM
Tried this on the regular site without much help. I hope someone here can help...

The IM support - check for new PM's is set to yes in the VB CP. Pop up a box when you receive a Private Message is set to yes for the user. The following is a partial source code of the forums page when the user gets a new PM:

quote:
--------------------------------------------------------------------------------
<script language="JavaScript">
<!--
function confirm_newpm() {
input_box=confirm("You have a new private message. Click OK to view it, or cancel to hide this prompt." );
if (input_box==true) { // Output when OK is clicked
second_box=confirm("Open in new window?\n\n(Press cancel to open your Inbox in the current window.)" );
if (second_box==true) {
window.open('private.php?s=','pmnew','width=600,he ight=500,menubar=yes,scro llbars=yes,toolbar=yes,location=yes,directories=ye s,resizable=yes,top=50,left=50');
} else {
window.location="private.php?s=";
}
} else {
// Output when Cancel is clicked
}
}
// -->
</script>
</head>
<body onload="java script:confirm_newpm()" bgcolor="#003399" text="#000000" id="all" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" link="#000000" vlink="#000000" alink="#000020">
--------------------------------------------------------------------------------

Is there something I'm missing? I'm using IE 6 with medium security settings.

Erwin
02-08-2003, 09:54 AM
Do you have any other javascripts that may conflict with this? That's the most common reason for it not working.

rstark
02-08-2003, 07:00 PM
Yes I do, but no other onload statements. I'm attaching the entire source of the page. If anyone can help, I would appreciate it.

Erwin
02-09-2003, 05:43 AM
Try removing all the javascripts except for the default ones, and see if it works. If it does, you know that it's one of the extra scripts, and you can slowly debug it.