473,405 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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.uk/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 4895
John Morgan <jf*@XXwoodlander.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.uk/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.invalid>
wrote:
John Morgan <jf*@XXwoodlander.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.uk/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*@XXwoodlander.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.


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.name> wrote:

Dave Patton wrote:
John Morgan <jf*@XXwoodlander.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.


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
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...
1
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...
2
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" ...
2
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...
15
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...
6
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...
0
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...
0
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 ...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.