PDA

View Full Version : javascript: popup not working in IE



dinkumrocks
November 13th, 2005, 03:47 PM
Alright, this is just one more reason why I hate IE.....-.-

Alright, I have a single js function that I use for all of my popup's

this is the funcion...

<script language="JavaScript" type="text/JavaScript">
<!--
function popUp(URL,winName,features) {
window.open(URL,winName,features);
}
//-->
</script>


...nothing fancy.

Now when i have a link like.....


<a href="javascript:popUp('display.php?display=popup&type=url&id=<?php echo mysql_result($query,$i,"id");?>','Ad-Core','resizable=yes,width=500,height=200,scrollba rs=yes');">


something like that, it works perfectly in firefox(as always), but it does nothing in IE. I'm really confused.

Here's an example of what the link looks like on the executed page.

javascript:popUp('display.php?display=popup&type=url&id=6','Ad-Core','resizable=yes,width=500,height=200,scrollba rs=yes');

I really dont see whats wrong with it.

-Naaman

Ankou
November 14th, 2005, 12:52 PM
Try making the window name "AdCore" and not "Ad-Core".

BadMagick
November 15th, 2005, 02:32 PM
Instead of fooling around with the code, make sure that the security settings in IE allow for pop-up windows.

There is a lot of security stuff that SP2 has done in Windows, and javascript pop-ups have become a casualty of that.