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

Home Posts Topics Members FAQ

window.open(... ) does not work

Inside a html page (more precicesly inside a JSP page) I defined a button.
When the user clicks this button a second browser window should pop up und load the passed
URL. I coded

<img src="mybutton.g if" onclick='window .open("http://mydomain.com", "Mytitle);' >

However when I click on the button (under Win2000 + IE5.5) no window pops up.

Why?

Are there other ways to get a new browser window?

Wladi

Jul 23 '05
18 9468
Wladimir Borsov wrote:

<img src="mybutton.g if" onclick='window .open("http://mydomain.com", "Mytitle);' >
However when I click on the button (under Win2000 + IE5.5) no window pops up.
Why?
(This is not a javascript ng.)
You are missing a trailing double quote for Mytitle.
Are there other ways to get a new browser window?

<a href="http://mydomain.com" target="_blank" >foo</a>

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 23 '05 #11
On Thu, 09 Sep 2004 22:49:22 -0700, jmm-list-gn wrote:
(This is not a javascript ng.)
I take you mean 'this is not a JS issue'?
<a href="http://mydomain.com" target="_blank" >foo</a>


( ..given your reference to a link.
Good idea, BTW )

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #12
On Fri, 10 Sep 2004 06:17:58 GMT, Andrew Thompson <Se********@www .invalid>
wrote:
On Thu, 09 Sep 2004 22:49:22 -0700, jmm-list-gn wrote:
(This is not a javascript ng.)
< I take you mean 'this is not a JS issue'?


It was originally posted to a.html, ciawh, and clj, with follow-ups set to
clj, so both statements are correct.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #13
On Fri, 10 Sep 2004 07:50:33 GMT, Michael Winter wrote:
On Fri, 10 Sep 2004 06:17:58 GMT, Andrew Thompson wrote:
On Thu, 09 Sep 2004 22:49:22 -0700, jmm-list-gn wrote:
(This is not a javascript ng.)

<
I take you mean 'this is not a JS issue'?


It was originally posted to a.html, ciawh, and clj, with follow-ups set to
clj, so both statements are correct.


I comprehend now. Thanks for clarifying.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #14
Andrew Thompson wrote:
On Thu, 09 Sep 2004 22:49:22 -0700, jmm-list-gn wrote:
(This is not a javascript ng.)
I take you mean 'this is not a JS issue'?

Oops. I did not notice it was cross-posted.
<a href="http://mydomain.com" target="_blank" >foo</a>


( ..given your reference to a link. Good idea, BTW )

Thanks.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 23 '05 #15
> Typically, if a site thinks it *requires* a popup, its an indication
of lack of knowledge on the part of the web-masters.


Not at all - what you are suggesting is that application developers
do away with dialog boxes. Pop-ups make sense in web applications for
many of the same reasons dialog boxes are used in normal applications

Consider a data entry application that makes extensive use of thesauri
or
controlled lists. Some are very long, so if you code them in the page,
you get really fat pages. It can be better to load them in a pop-up as
required - if the user doesn't use the long list, it's never loaded. It
also means the list can be re-used, moved, resized to suit if it needs
to
be used in various parts of the page.

Gotta admit, general web pages should try to avoid them though.
Fred.
replace smudge with au for email.
Jul 23 '05 #16
On 14 Sep 2004 14:46:58 GMT, Fred Oz <oz****@iinet.n et.smudge> wrote:
Not at all - what you are suggesting is that application developers
do away with dialog boxes. Pop-ups make sense in web applications for
many of the same reasons dialog boxes are used in normal applications
except popup boxes are nothing like dialogs, and competent web UI
developers can implement much better and more usual mechanisms to
achieve what you're describing.
controlled lists. Some are very long, so if you code them in the page,
you get really fat pages. It can be better to load them in a pop-up as
required - if the user doesn't use the long list, it's never loaded.


Same can be done in page of course... and without the overhead, risk
and complication of a popup.

Jim.
Jul 23 '05 #17
In <41************ ****@news.indiv idual.net> Jim Ley wrote:
except popup boxes are nothing like dialogs,
How so? They are both UI elements that can be used for whatever, the
only
real diffrence is the language used to code them. That, of itself, does
not make pop-ups bad and dialogs good.
and competent web UI developers...
So anyone who uses pop-ups is therefore incompetent? The web is not the
sole use for web technologies. Clients may actually want a pop-up for a
particular reason - why tell them they can't have it for the sake of
idealism?
Same can be done in page of course... and without the overhead, risk
and complication of a popup.


Any inteface feature may or may not work depending on the users'
environment. Consider web applications, not general web pages. In that
environment, you can ensure the user has a compatible browser and that
it
is correctly configured to make the features of your application work.
Cheers.
Jul 23 '05 #18
On 14 Sep 2004 20:35:01 GMT, Fred Oz <oz****@iinet.n et.smudge> wrote:
In <41************ ****@news.indiv idual.net> Jim Ley wrote:
except popup boxes are nothing like dialogs,
How so? They are both UI elements that can be used for whatever, the
only real diffrence is the language used to code them. That, of itself,
does not make pop-ups bad and dialogs good.


No, pop-up windows are first class citizens in the window manager,
dialogs rarely are - they're modal they're tied to the owner window
etc.
and competent web UI developers...


So anyone who uses pop-ups is therefore incompetent?


No, that is not a logical conclusion, all you can derive from the
statement is that people who cannot do it are not competent UI
developers.
The web is not the
sole use for web technologies. Clients may actually want a pop-up for a
particular reason - why tell them they can't have it for the sake of
idealism?


It's nothing to do with idealism, it's the problems with pop-ups that
are the reason not to, explain it to your clients and they'll
understand, if not why are they employing an expert?
Same can be done in page of course... and without the overhead, risk
and complication of a popup.


Any inteface feature may or may not work depending on the users'
environment. Consider web applications, not general web pages. In that
environment, you can ensure the user has a compatible browser and that
it is correctly configured to make the features of your application work.


Oh right, you seem to have a lot different experience of deployment of
web applications than me, where (beyond it must be IE commonly)
playing with settings is all too common - you can't go getting Large
Institution Y to change their settings for you, not least 'cos if they
did, Web Application Vendor Z would have already picked a different
potentially incompatible set-up.

There's nothing about ideology that makes pop-ups a bad idea. There
are good reasons behind it.

Jim.
Jul 23 '05 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
10179
by: Edwin Boersma | last post by:
Hi, I've just installed Netscape 7.1 for Linux and the following script refuses to open a window when I call this function: function OpenLinkWindow() { wMap=window.open('http://naxos.orangeport.net/cyclades-info/ShowMap.php?id_advert=45&map=','','width=400,height=600'); wMap.onResize = 'self.location.href=http://naxos.orangeport.net/cyclades-info/ShowMap.php?id_advert=45&map='
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(); } ....
5
7095
by: Jorn TK | last post by:
Hi, i use window.open to display the result of polls window.open('../poll.php?schid=".$schid."&permit=1&pollid=".$dbpoll."&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
0
1459
by: Wladimir Borsov | last post by:
Inside a html page (more precicesly inside a JSP page) I defined a button. When the user clicks this button a second browser window should pop up und load the passed URL. I coded <img src="mybutton.gif" onclick='window.open("http://mydomain.com", "Mytitle);'> However when I click on the button (under Win2000 + IE5.5) no window pops up. Why?
0
841
by: drumbum | last post by:
I need to know how to delet the resent work space and the open work space fromthe drop down menue
2
1916
by: Vijay Kerji | last post by:
Hi: I have a child window which is opened by parent using ShowModalDialog. Child has a button called Add and its click handler at server tries to close the window as below. private void Button_Add_Click(object sender, System.EventArgs e) { string strscript = "<script language=javascript>window.top.close();</script>";
4
1226
by: dik | last post by:
Hi I have a page with a button that has to open a popup window: btnPopup.Attributes.Add("onclick", "window.open("popup.aspx",null,'height=250, width=250,status= no, resizable= no, scrollbars=no, toolbar=no,location=no,menubar=no ');"); the error is:could not find page popup.aspx what could be wrong? ch Dik
9
4657
by: Stan B | last post by:
I create a popup window by calling window.showModalDialog Popup window has Ok button with this code attached: === string Script = "<script language=JavaScript>" + "{" + "window.close();" + "}" + "</script>";
13
3562
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains some javascript code that calls window.open. I pass the resource url of page B to Page A's window.open call. Page B is then loaded and executed but none of the server-side code is rendered. If I view the source of the page, the code (and page...
0
9496
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10110
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
9961
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
8989
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...
1
7512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
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...
2
3669
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.