PDA

View Full Version : IE6 error with simple javascript, pls help


drfaustus72
09-28-2002, 12:03 AM
I'm trying to get a popup window and it works fine in Netscape 7.0 and on IE MAC. However, it does not function on IE6 on XP. Here's the script, any suggestiosn on what I'm doing wrong?

<SCRIPT LANGUAGE="JavaScript">
function popup() {
var trailer="www.cnn.com"
window.open(trailer,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=no,width=795,height=595,left=50,top=50');
}
</script>

boywonder
09-28-2002, 12:30 AM
what's the error, it worked just fine for me (IE6 - XP pro) but I see a few minor things that could cause problem but maybe just in your post and not the real code.

drfaustus72
09-28-2002, 12:33 AM
The error is simply that the page does not pop up. Nothing happens.
I've tried both placing code in the flash button and html, as well as everything in the flash button.
The funny thing is, when I test it in Dreamweaver it works fine in IE.
??

boywonder
09-28-2002, 12:41 AM
How are you calling it? Although if it works sometimes that wouldn't be the problem.
You mean when you have the page open in DW and you preview in a browser launched from DW, then it works?

Try losing the space here 'window. open'

drfaustus72
09-28-2002, 12:48 AM
That's right when I do a Test Publish from DW or FlashMX it works fine, but once it's posted it ain't working.
Here is the latest code I tried, created with a code generator that worked fine in the test as well:

on (release) {
getURL ("javascript:NewWindow=window.open('http://www.thomasrichter.net/','newWin','width=795,height=595,left=50,top=50,toolbar=No,location=No,scrollbars=No,status=No,resiz able=No,fullscreen=No'); NewWindow.focus(); void(0);");
}

I'm "calling it" (I hope I know what you mean) by having a button in a swf that carries the entire script above.