473,545 Members | 2,793 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 4902
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
2150
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...
1
1565
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...
2
4153
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
2677
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...
15
4130
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...
6
3752
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...
0
1256
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)'....
0
1902
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...
5
2529
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...
0
7432
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...
0
7689
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. ...
0
7943
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...
1
7456
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6022
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...
0
5076
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...
0
3490
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.