[Javascript] Window names
Esther_Strom at hmco.com
Esther_Strom at hmco.com
Tue Aug 14 14:32:27 CDT 2001
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>
|    
|
| Thanks,
|
| Esther
|
| _______________________________________________
| Javascript mailing list
| Javascript at LaTech.edu
| http://www.LaTech.edu/mailman/listinfo/javascript
|
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list