House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Loading CFM page into new browser window

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Svee, Eric
07/10/2002 05:41 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jim Vosika
07/10/2002 05:44 PM

Could you use URL Variables? Jim Vosika http://tinyclick.com Free URL Shortening! 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Svee, Eric
07/10/2002 05:59 PM

The problem isn't getting CF to grab the correct info. Instead, it occurs when I try to load instruction.cfm?fieldName=EMPLOYEE_hire_date or instruction.cdm?fieldName=BONUS_targetpercent. Javascript only wants to load instruction.cfm and not the variations that Cold Fusion can create. Could you use URL Variables? Jim Vosika http://tinyclick.com Free URL Shortening! 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jim Vosika
07/10/2002 06:11 PM

Are you saying it wont load anything after the question mark? If so then maybe you could try using Ben Forta's way of changing your url variables from instruction.cfm?fieldName=EMPLOYEE_hire_date to instruction.cfm/fieldname/EMPLOYEE_hire_date maybe that would work...and maybe not. Here is information on that if you are interested: It's an article called "A Cure for Arachnophobia" http://tinyclick.com/?ox9jk8 HTH, Jim Vosika http://tinyclick.com Free URL Shortening! The problem isn't getting CF to grab the correct info. Instead, it occurs when I try to load instruction.cfm?fieldName=EMPLOYEE_hire_date or instruction.cdm?fieldName=BONUS_targetpercent. Javascript only wants to load instruction.cfm and not the variations that Cold Fusion can create. Could you use URL Variables? Jim Vosika http://tinyclick.com Free URL Shortening! 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Shawn Grover
07/10/2002 06:26 PM

Or, feed your data to a CF Page (form submit, or URL Params to pass the required info), then do server side processing on your data, and a CFLocation to the desired page.   So, if you open your popup to the first page (with your popup as a target for your form), then do the CFLocation, you'll have the desired page in the popup. but, it sounds like you have some other issues at the javascript level to find/rectify. My two cents. Shawn Grover Are you saying it wont load anything after the question mark? If so then maybe you could try using Ben Forta's way of changing your url variables from instruction.cfm?fieldName=EMPLOYEE_hire_date to instruction.cfm/fieldname/EMPLOYEE_hire_date maybe that would work...and maybe not. Here is information on that if you are interested: It's an article called "A Cure for Arachnophobia" http://tinyclick.com/?ox9jk8 HTH, Jim Vosika http://tinyclick.com Free URL Shortening! The problem isn't getting CF to grab the correct info. Instead, it occurs when I try to load instruction.cfm?fieldName=EMPLOYEE_hire_date or instruction.cdm?fieldName=BONUS_targetpercent. Javascript only wants to load instruction.cfm and not the variations that Cold Fusion can create. Could you use URL Variables? Jim Vosika http://tinyclick.com Free URL Shortening! 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Joe Bastian
07/10/2002 07:47 PM

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 BJoebox@earthlink.net 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


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference