By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,696 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,696 IT Pros & Developers. It's quick & easy.

window.open() does not work in mozilla

P: n/a
Hi,

i use window.open to display the result of polls

window.open('../poll.php?schid=".$schid."&permit=1&pollid=".$dbpol l[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
Jul 23 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"Jorn TK" <jo****@yahoo.com> wrote in news:41********@news.tm.net.my:
Hi,

i use window.open to display the result of polls

window.open('../poll.php?schid=".$schid."&permit=1&pollid=".$dbpol l[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=".$dbpol l[1]['poll
id']."&answ='+opt,'','menubar=no,width=250,height=2 30'

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
Jul 23 '05 #2

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

"John Bokma" <po********@castleamber.com> wrote in message
news:Xn*************************@130.133.1.4...
"Jorn TK" <jo****@yahoo.com> wrote in news:41********@news.tm.net.my:
Hi,

i use window.open to display the result of polls

window.open('../poll.php?schid=".$schid."&permit=1&pollid=".$dbpol l[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=".$dbpol l[1]['poll
id']."&answ='+opt,'','menubar=no,width=250,height=2 30'

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

Jul 23 '05 #3

P: n/a
Jorn TK wrote:
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.

Jul 23 '05 #4

P: n/a
In article <41********@news.tm.net.my>, "Jorn TK" <jo****@yahoo.com>
wrote:

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


Not all of us are familiar with how to program on the server.

It is best if you go to the client and post the generated source.

In IE, you can just right click on the page then select view source.
Post that line here. As a bonus, you will see if your server program is
generating the line of code you assumed.

Robert
Jul 23 '05 #5

P: n/a
thanks colin
"Colin McKinnon" <co**************@andthis.mms3.com> wrote in message
news:ch*******************@news.demon.co.uk...
Jorn TK wrote:
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.

Jul 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.