Date:  01/12/2012 03:28:45 PM Msg ID:  004402
From:  FoxWeb Support Thread:  004399
Subject:  Re: \\examples\\download.fwx
The form tag can also include a target attribute:
 
<form action="MyDownload.fwx" method="post" target="_blank">... 
 
FoxWeb Support Team
support@foxweb.com email
Sent by irace_z28 on 01/12/2012 02:57:25 PM:
I see your approach and how is that accomplished from a form post submission?  Response.redirect?
Sent by FoxWeb Support on 01/12/2012 02:17:24 PM:
The correct approach would be to have a link that opens in a new window and calls the script that returns the file:
 
<a href="MyDownload.fwx" target="_blank"> 
FoxWeb Support Team
support@foxweb.com email
Sent by irace_z28 on 01/12/2012 08:48:54 AM:
In the"\examples\download.fwx" script, I'm trying to figure out how to view a selected file in a "new" browser window.
 
 I've tried replacing Line 42:
Response.Write(FileContent)

with

Response.Write("<script>window.open('FileContent')</script>")

but that didn't work. 

Can someone please help?

Thanks,