473,748 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with downloading Word doc files and rtf files through browser


I am using the following link to download a file of about 50k

<a target= "_blank"
href="http://www.bsecs.org.u k/ExecDocs/documentStore/elfridaWord.doc ">open
file</a>

If I save the file to hard disk there is no problem/

if, in response to the menu which appears before downloading, I opt to
open the doc file immediately then I get a problem.

The text in the doc file opens alright in the browser window (though
I notice that the browser icon in the bottom task bar is depicted in a
sort of greyed out manner). If I close the window the browser icon
does not disappear from the the task bar though the window itself
closes. However after it has done so my dial up connection is slow to
non existent and any other browser windows open will not respond to
clicking on any hyperlinss and will not refresh. Its as if the window
which displayed the Word doc is somehow still claiming all the
resources.

When I convert the same doc to a text file and download using a
similar link everything works properly with the browser window closing
and disappearing from the task bar as normal.

I would be grateful for some help on this eg should I be adding some
attribute or other to the above hyperlink ?

If you wish to experience the problem try opening the file titled
"Testing one word file name as doc file" on

http://www.bsecs.org.uk/docsComm/docSearch.aspx

Best wishes, John Morgan
Jul 23 '05 #1
5 4913
John Morgan <jf*@XXwoodland er.co.uk> wrote in
news:24******** *************** *********@4ax.c om:

I am using the following link to download a file of about 50k

<a target= "_blank"
That's a bad idea. Don't try and force a new browser
window on your site visitors.
href="http://www.bsecs.org.u k/ExecDocs/documentStore/elfridaWord.doc ">o
pen file</a>

If I save the file to hard disk there is no problem/

if, in response to the menu which appears before downloading
No such "menu" on my system - you are serving that file
with the header "Content-Type: application/msword", and
my browser just prompts me for where I want to save it.
If you wish to experience the problem try opening the file titled
"Testing one word file name as doc file" on

http://www.bsecs.org.uk/docsComm/docSearch.aspx


No such text on that page when I looked.

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 23 '05 #2

Thanks David,

Apologies, the page is correct as :
http://www.bsecs.org.uk/docsComm/docSearch.aspx

however the part I had in mind is hidden until you search for it.

On the second drop down menu select 'BSECS Conference papers 2005'
and click on the Search. button.

In the list that appears try opening the file link associated with
the title
"Testing one word file name as doc file"
No such "menu" on my system < I'm running Explorer 6.0 on Windows XP and the menu which opens
offers the choice of opening the file or saving it.

I take your point about forcing a new browser window .

By the way I reached the conclusion that it was something to do with
the html rather than my own Installed Word because I tried the
download on another computer and got the same problem.
Thanks for your help,

John Morgan
On Tue, 25 Jan 2005 16:48:38 GMT, Dave Patton <sp**@trap.inva lid>
wrote:
John Morgan <jf*@XXwoodland er.co.uk> wrote in
news:24******* *************** **********@4ax. com:

I am using the following link to download a file of about 50k

<a target= "_blank"


That's a bad idea. Don't try and force a new browser
window on your site visitors.
href="http://www.bsecs.org.u k/ExecDocs/documentStore/elfridaWord.doc ">o
pen file</a>

If I save the file to hard disk there is no problem/

if, in response to the menu which appears before downloading


No such "menu" on my system - you are serving that file
with the header "Content-Type: application/msword", and
my browser just prompts me for where I want to save it.
If you wish to experience the problem try opening the file titled
"Testing one word file name as doc file" on

http://www.bsecs.org.uk/docsComm/docSearch.aspx


No such text on that page when I looked.


Jul 23 '05 #3
Dan

Dave Patton wrote:
John Morgan <jf*@XXwoodland er.co.uk> wrote in
news:24******** *************** *********@4ax.c om:
I am using the following link to download a file of about 50k

<a target= "_blank"


That's a bad idea. Don't try and force a new browser
window on your site visitors.


And when the target document is something other than HTML, it's an even
worse idea; in some cases, a browser will handle such things by
launching an external application rather than displaying them inline,
so that an attempt to open an extra browser window by a target
attribute will result in a useless empty browser opening before the
document opens in yet another window. (That's what the Mozilla Suite
does for me in such cases, or at least it would if I hadn't configured
it to reject new-window targets.)

--
Dan

Jul 23 '05 #4
John Morgan wrote:
I'm running Explorer 6.0 on Windows XP and the menu which opens
offers the choice of opening the file or saving it.
Have you considered switching to a more secure and standards compliant
browser? It will certainly help when writing standards compliant markup
and css.
By the way I reached the conclusion that it was something to do with
the html rather than my own Installed Word because I tried the
download on another computer and got the same problem.


HTML does not contain any instructions for *how* files should be
downloaded or opened, it only contains information about what the file
is that is being downloaded, such as it's URI, MIME type and/or language
(if you've included the applicable attributes). But HTML does not, and
must not ever attempt describe the mechanics used by users to access the
resources. That is why the target attribute is a bad idea and also why
any such problem encountered must be regarding your software configuration.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://SpreadFirefox.com/ Igniting the Web
Jul 23 '05 #5

Thanks for the suggestions everyone.

I have taken out the target attribute and still have problems.

iI suppose I will have to try and work through all the possibilities
of system configuration, browser etc..

I am beginning to wonder whether it has anything to do with my
connection. I am on dial up and the connection seems to have been slow
of late,

Best wishes, John Morgan

On 25 Jan 2005 14:27:45 -0800, "Dan" <da*@tobias.nam e> wrote:

Dave Patton wrote:
John Morgan <jf*@XXwoodland er.co.uk> wrote in
news:24******** *************** *********@4ax.c om:
> I am using the following link to download a file of about 50k
>
><a target= "_blank"


That's a bad idea. Don't try and force a new browser
window on your site visitors.


And when the target document is something other than HTML, it's an even
worse idea; in some cases, a browser will handle such things by
launching an external application rather than displaying them inline,
so that an attempt to open an extra browser window by a target
attribute will result in a useless empty browser opening before the
document opens in yet another window. (That's what the Mozilla Suite
does for me in such cases, or at least it would if I hadn't configured
it to reject new-window targets.)


Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2164
by: Luke StClair | last post by:
Only marginally belonging in this newsgroup... but oh well. I've just started writing in python, and I want to make the files available on the web. So I did the standard <a href="mypath/myfile.py"> and not surprisingly, it displays like a webpage, but just the code. If I gzip it, and then link to the new file, it will download, but its so small I don't want it zipped. How can I make this into a downloadable file SIMPLY? The other...
1
1580
by: Kajol | last post by:
Hi I am facing a strange problem in downloading files from the web. CASE 1: I have an ActiveX.dll file developed using Visual Basic 6.0 and uploaded on a Linux Server. I am typing http://somedomain.com/somefolder/filename.dll] into the addressbar of the IE, IE is allowing me to download that file with a save dialog box, this is working as per my requirement. but,
2
4160
by: Ian Gordon | last post by:
Hi, I have 2 problems when downloading a file from my ASP.net app to the client PC. At the moment I'm doing it with the following code: Response.ContentType = "application/octet-stream" Response.AddHeader("Content-Disposition", "attachment; filename=" + strFileToDownload)
2
2686
by: samp | last post by:
Hi All, How can i download files using web browser control? I want to be able to automtaically download files giving the file a location and name. I am getting the download file dialog box which i do not want to display. Is there a way to click "Save" programatically? Any help is highly appreciated. I found many posts here for the same question but no answers. SK
15
4144
by: =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post by:
Hello folks, I need some help/advice FAST. I have problems with addslashes on my web-servers. After uploading a file, I read the uploaded file, use addslashes on the read data and then insert it into a blob field in a MySQL database. The problem is that this works fine on my internal test web-server (running under RedHat 7.3). But on my production web-server (running Fedora Core 4)
6
3766
by: cyusman | last post by:
Hi, We have just moved our application to a new webfarm server environment which utilizing hardware load balancing, SSL off-loading and HTTP compression off-loading.My application is running on .NET 1.1, IIS 6, Win2003. Now we are having problem when trying to download word documents located in the file server. It often says Internet Explorer cannot download <filenamefrom <servername>. Sometimes we are able to view
0
1270
by: Srinivas Dammalapa | last post by:
Sir, I am D.Srinivas. I am working on JobPortal Website(www.tlabsinc.com). I am downloading MS-Word document using ASP.NET 2.0 & C# 2.0. I am using IE (Internet Explorer). In my localhost it is working fine. After giving to Client, it is not working fine. Because, Client has installed 'Download Accelerator Plus (DAP)'. Because of that(DAP) software, instead of downloading Resumes(word document), it is downloading source...
0
1924
by: alivip | last post by:
I write code to get most frequent words in the file I won't to implement bigram probability by modifying the code to do the following: How can I get every Token (word) and PreviousToken(Previous word) and frequency and probability From text file and put each one in cell in table For example if the text file content is "Every man has a price. Every woman has a price." First Token(word) is "Every" PreviousToken(Previous...
5
2539
by: alivip | last post by:
How can I get every Token (word) and PreviousToken(Previous word) From multube files and frequency of each two word my code is trying to get all single word and double word (every Token (word) and PreviousToken(Previous word)) from multube files and get frequency of both. it can get for single word but double word give error line 50, in most_frequant_word word1+= ' ' + word_list IndexError: list index out of range import...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9552
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.