|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Loading CFM page into new browser window
I have a button that is intended to launch a pop-up windowSvee, Eric 07/10/02 05:41 P Could you use URL Variables?Jim Vosika 07/10/02 05:44 P The problem isn't getting CF to grab the correct info. Instead, it occursSvee, Eric 07/10/02 05:59 P Are you saying it wont load anything after the question mark? If so thenJim Vosika 07/10/02 06:11 P Or, feed your data to a CF Page (form submit, or URL Params to pass theShawn Grover 07/10/02 06:26 P Put a function like in the headJoe Bastian 07/10/02 07:47 P 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 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 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 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 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 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
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||