window.open() does not work in mozilla

J

Jorn TK

Hi,

i use window.open to display the result of polls

window.open('../poll.php?schid=".$schid."&permit=1&pollid=".$dbpoll[1]['poll
id']."&answ='+opt,'','menubar=no,width=250,height=230');

it work fine in IE but does not work with firefox, is there error in the
code?

Thanks & Regards

Robert Ngo
 
J

John Bokma

Jorn TK said:
Hi,

i use window.open to display the result of polls

window.open('../poll.php?schid=".$schid."&permit=1&pollid=".$dbpoll[1][
'poll id']."&answ='+opt,'','menubar=no,width=250,height=230');

it work fine in IE but does not work with firefox, is there error in
the code?

You think:

'../poll.php?schid=".$schid."&permit=1&pollid=".$dbpoll[1]['poll
id']."&answ='+opt,'','menubar=no,width=250,height=230'

Is a valid URI?

Looks like bad PHP or very bad Perl to me...
 
J

Jorn TK

i just started working, this script have been created by another developer,
how to change the url so it work with firefox?

John Bokma said:
Jorn TK said:
Hi,

i use window.open to display the result of polls

window.open('../poll.php?schid=".$schid."&permit=1&pollid=".$dbpoll[1][
'poll id']."&answ='+opt,'','menubar=no,width=250,height=230');

it work fine in IE but does not work with firefox, is there error in
the code?

You think:

'../poll.php?schid=".$schid."&permit=1&pollid=".$dbpoll[1]['poll
id']."&answ='+opt,'','menubar=no,width=250,height=230'

Is a valid URI?

Looks like bad PHP or very bad Perl to me...

--
John MexIT: http://johnbokma.com/mexit/
personal page: http://johnbokma.com/
Experienced programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
 
C

Colin McKinnon

Jorn said:
i just started working, this script have been created by another
developer, how to change the url so it work with firefox?

Use + to concatenate strings in JS.

Note that window.open will only work in certain contexts within Mozilla
unless you disable the popup blocker.

HTH

C.
 
J

Jorn TK

thanks colin
Colin McKinnon said:
Use + to concatenate strings in JS.

Note that window.open will only work in certain contexts within Mozilla
unless you disable the popup blocker.

HTH

C.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top