Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 15th, 2004, 06:03 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default Force a word download into a frame?

Anyone any idea how to do this through Javascript?

interrupt

__________________
\'sync\' <cr>
The name specified is not recognized as an internal or external command, operable program or batch file.
 
Old August 15th, 2004, 10:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

What the client does when it gets any file form any webserver is determined by the MIME types defined on the client, so in some cases, the file will be opened in the browser window, in others it will be downloaded as a normal file download.

The closest you can get is either to use a MIME Type that is usually opened - such as .txt / .html - or one that is usually downloaded - such as .zip.

This also means that you have no control over into where the file will open as it will always use the full browser window - if set to open in the window.

You may be better of using the MS Office ActiveX objects - see http://www.greggriffiths.org/webdev/both/excel/ for an example using ActiveX and Excel.





Similar Threads
Thread Thread Starter Forum Replies Last Post
force download dialog alphyne HTML Code Clinic 1 October 25th, 2005 08:02 AM
Call right frame Page_Load event from left frame. ochanarachel Classic ASP Basics 0 January 28th, 2005 05:13 AM
Why user download word file is binary when open Andraw Classic ASP Basics 5 January 17th, 2005 12:41 PM
Force A File To Download harpua Classic ASP Basics 6 July 26th, 2004 01:06 PM
Force A File To download harpua Javascript How-To 2 June 23rd, 2004 02:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.