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

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

New window in cflocation

  << 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:
Orlini, Robert
09/09/2005 02:46 PM

How do I embed a popup in the cflocation url command. I have: <cflocation url="getinventory_printout.cfm?id=#form.id#"> and I want it to to launch as a new window. Can it be done within <cflocation>? Or is there a better way? Thanks. Robert O. HWW -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.19/93 - Release Date: 9/8/2005

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ben Doom
09/09/2005 03:01 PM

CFLocation sends a redirect header t the browser.  Essentially, it tells that window that the location requested isn't right, and it should go over there. So, no.  there's no way for cflocation to open in a new window. --Ben Orlini, Robert wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Damien McKenna
09/09/2005 02:51 PM

> How do I embed a popup in the cflocation url command. You'll need Javascript for that. -- Damien McKenna - Web Developer - Damien.McKenna@thelimucompany.com The Limu Company - http://www.thelimucompany.com/ - 407-804-1014 #include <stdjoke.h>

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave.Phillips
09/09/2005 03:03 PM

Robert, Use Javascript: <cfoutput> <script> window.open('getinventoryprintout.cfm?id=#form.id#','popwin','scrollbars=yes/no...'); </script> </cfoutput> You can add other features if you want.  Here's the reference: http://www.devguru.com/technologies/javascript/10894.asp Dave How do I embed a popup in the cflocation url command. I have: <cflocation url="getinventory_printout.cfm?id=#form.id#"> and I want it to to launch as a new window. Can it be done within <cflocation>? Or is there a better way? Thanks. Robert O. HWW -- ****************************************************************************************** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Orlini, Robert
09/09/2005 03:27 PM

Good code Dave. Thanks all nonetheless. Robert, Use Javascript: <cfoutput> <script> window.open('getinventoryprintout.cfm?id=#form.id#','popwin','scrollbars=yes/no...'); </script> </cfoutput> You can add other features if you want.  Here's the reference: http://www.devguru.com/technologies/javascript/10894.asp Dave How do I embed a popup in the cflocation url command. I have: <cflocation url="getinventory_printout.cfm?id=#form.id#"> and I want it to to launch as a new window. Can it be done within <cflocation>? Or is there a better way? Thanks. Robert O. HWW -- ****************************************************************************************** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Root
09/09/2005 04:20 PM

Keep in mind that EVERY popup blocker will block it. =) Rick Orlini, Robert wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave.Phillips
09/09/2005 04:58 PM

That's a good point Rick. Robert, if this is a problem, you could always create an absolutely positioned DIV block, hide it, and then when you're ready to show the information display it with a higher z-index (so it overlays your existing page).  This type of 'pop up' is not blocked by most pop up blockers because it's not actually a window.   However, if the page you're trying to open into a new window has too much data to fit into a 'popup' style div block and still maintain some aesthetic integrity, then it may not be an option.  Just wanted to mention it also. Dave Keep in mind that EVERY popup blocker will block it. =) Rick Orlini, Robert wrote: ----- Excess quoted text cut - see Original Post for more ----- ****************************************************************************************** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ian Skinner
09/09/2005 05:10 PM

However, if the page you're trying to open into a new window has too much data to fit into a 'popup' style div block and still maintain some aesthetic integrity, then it may not be an option.   Dave Actually, I just recently used this technique combined with named anchors and the overflow: scroll property to create a nice div/CSS based popup that contained a fair amount a data in it.  I used a nested div so that the headers of the data stay visible above the scrolling cells.   Now, if the data was so massive that it would effect the download time, then I would look for a different solution.   -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice:  This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave.Phillips
09/09/2005 05:29 PM

Great idea Ian! Dave However, if the page you're trying to open into a new window has too much data to fit into a 'popup' style div block and still maintain some aesthetic integrity, then it may not be an option.   Dave Actually, I just recently used this technique combined with named anchors and the overflow: scroll property to create a nice div/CSS based popup that contained a fair amount a data in it.  I used a nested div so that the headers of the data stay visible above the scrolling cells.   Now, if the data was so massive that it would effect the download time, then I would look for a different solution.   -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning ****************************************************************************************** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else.


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

Search cf-talk

November 25, 2014

<<   <   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             

Designer, Developer and mobile workflow conference