Put a function like in the head
<script language="JavaScript">
function New_window(freshurl)
{
SmallNewWin = window.open(freshurl,
'NewWindow','scrollbars=yes,resizable=no,toolbar=no,height=450,width=400');
if (window.focus)
         { SmallNewWin.focus();}
}
</script>

and you can pass call the function with a LINK
<a
href="JavaScript:New_window('YourPath/index.cfm?fieldName=#Query.EMPLOYEE_hi
re_date#')" OnMouseOver="return window.status='New Window'; return false;"
OnMouseOut="window.status='My Home'">
This is my new Window
</a>

Or call the function with button
<input type="button" Name="submit" value="Open window"
onclick="JavaScript:New_window('YourPath/index.cfm?fieldName=#Query.EMPLOYEE
_hire_date#')">

Joe Eugene
Certified Advanced ColdFusion Developer
[EMAIL PROTECTED]


-----Original Message-----
From: Svee, Eric [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 5:38 PM
To: CF-Talk
Subject: Loading CFM page into new browser window


I have a button that is intended to launch a pop-up window
(instruction.cfm). This window will display different information, depending
on which button is clicked. How can I feed Cold Fusion the correct
string(ie. ?fieldName=EMPLOYEE_hire_date) from each specific button while
still being able to control my window.open options (ie. no scroll bars, 300
x 300, etc).

Thanks

E

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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