[Javascript] Window names

Peter Brunone peter at brunone.com
Tue Aug 14 14:46:05 CDT 2001


    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;&nbsp;
| | <a href="javascript:openWin
| |
|
('fmUsageSingle?OpenForm&~E3F2E18403B0E9DE86256977005ECD24','myUsg3',850,600
|
| )">Usage
| |
| | 2</a>&nbsp;&nbsp;
| | <a href="javascript:openWin('fmImage?OpenForm','myImg',770,500)
| ">Image</a>
| | &nbsp;&nbsp&nbsp;&nbsp&nbsp;&nbsp;




More information about the Javascript mailing list