No, Not directly... all control of windows is on the client side.

What who can do is this:

   1. Specify a new window  as the target of the link or form, in the page that
      calls the template that contains the cfhttp... this is before the fact
      targeting.

   OR

   2. Specify a hidden frame as the target of the link or form.  This way, your
      cf template can send an unseen stub page to the hidden frame.  The stub
      page can contain JavaScript to open another window and write the desired
      content from a variable in the stub, or just provide a URL.

      The URL could be the same cf template that now responds with the desired
      page instead of the stub.  (Assume the cfhttp is deferred until 
this second
      call or that the cfhttp results were stored in a session variable).

      It is a little convoluted, but it actually works quite well... this is
      after the fact targeting.

JavaScript has the ability to access any data in any form in any 
window or frame (that it knows about).  It can also rewrite the 
entire content of any of these.

You actually can get quite sophisticated and get some nice effects.

For example you submit a form in one frame that targets a hidden 
frame... the original form remains in place, instead of making the 
user stare at a blank screen.

The template called by the form performs validation and returns the 
results to the hidden frame, along with an onLoad JavaScript routine.

The onload routine can open a popup window or an alert dialog that 
denotes that the form was validated or which fields were incorrect.

Another approach is that the onLoad JavaScript can manipulate DHTML 
constructs in the originating frame... say, changing the content of a 
little status layer and then making it visible.


HTH

Dick

At 12:25 AM -0400 9/6/01, Neil H. wrote:
>Can you run a CFHTTP that will send the file content to a new window?
>
>Thanks,
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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