[Javascript] Window names
Josiah Gordon
jgordon at directfile.com
Tue Aug 14 14:55:13 CDT 2001
Esther,
Have you tried setting the window name to "_blank" (without quotes)? I don't
know if this is exactly what you want, but it should *always* open a new
window. Generally, the method you are using is better because you keep an
explicit reference to the windows.
--Josiah Gordon
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Peter Brunone
Sent: Tuesday, August 14, 2001 12:46 PM
To: javascript at LaTech.edu
Subject: Re: [Javascript] Window names
I just pasted and tried your code... and I get different windows. Is
there perhaps a browser setting that does this?
----- Original Message -----
From: <Esther_Strom at hmco.com>
To: <javascript at LaTech.edu>
Sent: Tuesday, August 14, 2001 2:32 PM
Subject: Re: [Javascript] Window names
|
| This is my openWin function.
|
| function openWin(url,winName,width,height,options){
| var winHeight = parseInt(height);
| var winWidth = parseInt(width) + 15;
| var winOptions
| = "location=no,toolbar=no,menubar=yes,resizable=yes,scrollbars=yes";
| popupWin = window.open(url,winName,'width=' + winWidth + ',height='+
| winHeight +','+winOptions);
| }
|
| There is absolutely no way I can have a new window variable for every
| window I need to open - I use this function in dozens of places.
|
| Esther
|
|
|
|
| "Peter Brunone"
| <peter at brunone.co To:
<javascript at LaTech.edu>
| m> cc:
| Sent by: Subject: Re: [Javascript]
Window names
| javascript-admin@
| LaTech.edu
|
|
| 08/14/01 02:26 PM
| Please respond to
| javascript
|
|
|
|
|
|
| Esther,
|
| In your openWin function, are you assigning the window.open to the
same
| variable each time?
|
| ----- Original Message -----
| From: <Esther_Strom at hmco.com>
| To: <javascript at LaTech.edu>
| Sent: Tuesday, August 14, 2001 2:17 PM
| Subject: [Javascript] Window names
|
|
| | Help! I was under the impression that you could open multiple popups as
| | long as each one had a unique name. In the following code, when I click
| one
| | of the links (any of them), it opens one popup. When I click any of the
| | other links, instead of opening a second window, it replaces the content
| of
| | the first popup. (This is part of a Domino database, hence the ?OpenForm
| in
| | lieu of file extensions.)
| |
| | What am I doing wrong?
| |
| | <a href="javascript:openWin
| |
|
('fmUsage?OpenForm&~E3F2E18403B0E9DE86256977005ECD24','myUsg2',850,600)">Usa
|
| ge</a>
| |
| | nbsp;
| | <a href="javascript:openWin
| |
|
('fmUsageSingle?OpenForm&~E3F2E18403B0E9DE86256977005ECD24','myUsg3',850,600
|
| )">Usage
| |
| | 2</a>
| | <a href="javascript:openWin('fmImage?OpenForm','myImg',770,500)
| ">Image</a>
| |    
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/2001
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/2001
More information about the Javascript
mailing list