One of my popUps always uses the same window for display... as expected.
The other always generates a new window... (which clutters the desktop and uses 
resources). Both are called from the same page.

I have a header that always has a help button in it. It calls help.cfm which pops up a 
help window with the contents of #Client.HelpIs#. If I navigate to a new page and 
press help, the old help window repopulates with New help info.

Another page has a list of items each with a button for "Details" by each lineitem. 
Every press of the detail button brings up a new DetailWindow, ...even If I press the 
SAME Detail button. I am looking for all details to use the same window.

As far as I can tell it is identical code... so I'm at a adjust this.

The code:
<head>
<script language="JavaScript" type="text/javascript">
        <!--
        window.name = "theAppWindow";
        var newWin;
        function popUp(page, name, details) {
        newWin=window.open(page, name, details);
        newWin.focus();
        return false;
        }
        //-->
</script>
</head>
<body>

<a href="help.cfm" onClick="return popUp('help.cfm', 'theHelpWindow', 
'width=400,height=500')">Help</a>

<a href="index.cfm" onClick="return 
popUp('index.cfm?fuseaction=Work.StepDetail&Step=1', 'theDetailWindow', 
'width=600,height=500')">DETAILS></a>

</body>

As it so happens... the href= is of no consequence... i can put anything in there... 
it's the popUp('page' that counts.

Anybody know how I might start trying to fix this?

thanks,
Brian

______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to