PDA

View Full Version : Javascript pop-up code not working in Explorer?


hnh
11-05-2006, 04:54 AM
Hi, I followed this tutorial from Kirupa.com on how to make a javascript pop-up window.

The actionscript I used on my flash button is:

launch_btn.onRelease = function() {
getURL("javascript:launch('http://komaternity.com/tinc?key=Ekac8Hyf')");
}


The javascript I put in the head of the page is:

<script language="JavaScript" type="text/javascript">

function launch(page) {
Openwin = this.open
(page,"http://komaternity.com/tinc?key=Ekac8Hyf","toolbar=no,menubar=no,scrollbar=no,location=no,wid th=350,height=500");
}
</script>

Why does it work in Firefox and not Explorer? When I click on the link in my flash file nothing happens..i thought it was because i had a pop-up blocker, but i turned it off.

If you want to see the site, it's at www.komaternity.com (http://www.komaternity.com)

Cota
11-05-2006, 06:38 AM
Go this route
http://www.flash-db.com/PopUp/

bigalc
11-13-2006, 12:01 PM
I'd like to join in here because I'm having very similar issues, although my pop-ups apparently work on some people's machines and not others, but the issue always seems to occur under Internet Explorer.

I've tried a similar method to hnh (ie. triggering a js function on the containing page), and last night tried the method as suggested by Cota's link, (running the js window.open command from within Flash) but I'm still getting reports of problems. The awkward thing is that it works fine on every browser I've tested here on both my mac and my pc, so I'm relying on sketchy feedback from my client.

The offending page is this (http://www.nickyandmichael.com/php/projects.php). The links in the centre should open a pop-up.

I'd really appreciate anyone's thoughts on this.

ecuatoriano
11-29-2006, 05:04 PM
hiya, i´m having the same problem but with safari and firefox... the code i use in the button is:

on (release){
getURL ("javascript:Abrir_Ventana('venastat.html')");
}

and the code im using in the html between the head tags:

<script language="JavaScript">
<!--
function Abrir_Ventana(el_url) {
var especificaciones="top=100, left=350, toolbar=no,location=no, status=no,menubar=no,scrollbars=no, resizable=no, width=350,height=290"
var titulo="Titulo"
window.open(el_url,titulo,especificaciones);
}
//-->
</script>

the page seems to work very well on every PC browser i´ve tested it on but it is not working in Firefox nor Safari on Macs, is there a reason in the code itself for this? is it operating system specific or is it browser specific?

tweaknee
12-18-2006, 06:51 PM
bigalc, I've tested your page in Firefox on a mac and IE 6 and 7 on a pc and it seems to work just fine! I'm hoping I can gain the same success with the site I'm building...