473,786 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

window.open() does not work in mozilla

Hi,

i use window.open to display the result of polls

window.open('../poll.php?schid= ".$schid."&perm it=1&pollid=".$ dbpoll[1]['poll
id']."&answ='+opt,' ','menubar=no,w idth=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
5 7094
"Jorn TK" <jo****@yahoo.c om> 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."&perm it=1&pollid=".$ dbpoll[1][
'poll id']."&answ='+opt,' ','menubar=no,w idth=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."&perm it=1&pollid=".$ dbpoll[1]['poll
id']."&answ='+opt,' ','menubar=no,w idth=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
Jul 23 '05 #2
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********@cas tleamber.com> wrote in message
news:Xn******** *************** **@130.133.1.4. ..
"Jorn TK" <jo****@yahoo.c om> 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."&perm it=1&pollid=".$ dbpoll[1][
'poll id']."&answ='+opt,' ','menubar=no,w idth=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."&perm it=1&pollid=".$ dbpoll[1]['poll
id']."&answ='+opt,' ','menubar=no,w idth=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

Jul 23 '05 #3
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
In article <41********@new s.tm.net.my>, "Jorn TK" <jo****@yahoo.c om>
wrote:

window.open('../poll.php?schid= ".$schid."&perm it=1&pollid=".$ dbpoll[1]['poll
id']."&answ='+opt,' ','menubar=no,w idth=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
thanks colin
"Colin McKinnon" <co************ **@andthis.mms3 .com> wrote in message
news:ch******** ***********@new s.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4649
by: Jawahar Rajan | last post by:
All, I have a printer friendly page that is opened when a user clicks a link on my page to get the printer friendly version, How ever when they close out the printer friendly version and return to the original page the mouse cursor is a Hour glass shape! my code: I use DIV tag <DIV id ="printThis"> <%
2
4891
by: Rob | last post by:
Why does the following code NOT work in Mozilla, but it DOES in IE (for Mac) and Safari? <a href="somepage.html" onClick="window.open('somepage.html', 'SomeWindowTitle', 'width=790,height=560, scrollbar=auto, menubar=no');">Enter</a> Please help...thanks
9
4991
by: Justin Koivisto | last post by:
Is there a way to create an alert-like message box that uses a custom image? Basically, I want to replace the default ! image with something else. -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions, alt.php* groups are not recommended.
13
9460
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to intercept the key so that I can do stuff on the server side to make the new window behave correctly? (We have a JSP-based webapp which stores state in the session. Now if two windows access (and modify!) the same session, then madness will result....
5
10886
by: Mike | last post by:
In my previous post, I wrote: > ... > GOAL: (very simple) Provide a hyperlink which, when clicked, > calls a javascript function which opens a new URL. > ... > PROBLEM: The following code works fine if I click to open in > the same window, but if I click the browser option to open in a > new window, the new window tries to open the href URL (the > onClick function does get executed, but seems to be ignored). > ...
3
2012
by: kaith | last post by:
The following code used to popup a window when I used netscape 4.79. Now I switched to mozilla 1.4 and the window doesn't popup. function newWindow(newContent) { winContent =window.open(newContent,'nextWin','screenX=0,screenY=20,width=600....); winContent.focus(); } ....
8
5657
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var popWindow=window.open('http://www.yahoo.com','','width=600,height=400,toolbar=1,location=1,menubar=1,resizable=1,titlebar=1,directories=1,status=1,scrollbars=1'); the sidebars are disabled. I click on the buttons for bookmarks and history and they do nothing. I...
14
11097
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
29
5031
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the window properly but does not pass the parameter. (this is part of a coldfusion template) <a href="##"
13
22176
by: tochiromifune | last post by:
Hello The window.open method brings my window to the top only if it is new. If it's being reused, the window does not come to the foreground (with IE 6 it does). Is there a new way in Mozilla/Firefox that I can ensure that this window comes to the top? Thank you for your help
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9960
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.