Forum Moderators: open

Message Too Old, No Replies

HTML code for download

Help me, please

         

billnguyen2

9:02 am on Feb 1, 2005 (gmt 0)

10+ Year Member



Issue: I have a issue with HTML code for "DOWNLOAD".
Decribe: When click left mouse on link, automatic download FILES.
Please help me, if you have freetime?

le_gber

9:47 am on Feb 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Depending on the mime type of the file the daownload should be automatics (I believe)

what type / extension is your file?

Leo

billnguyen2

2:12 am on Feb 2, 2005 (gmt 0)

10+ Year Member



*.zip and *.exe

rjohara

2:31 am on Feb 2, 2005 (gmt 0)

10+ Year Member



This should be handled automatically by the browser, with no special code required. Just create an anchor element as you would for any link, with href="filename.zip" or href="filename.exe".

billnguyen2

3:03 am on Feb 2, 2005 (gmt 0)

10+ Year Member



same mistake

my code:

<td><a
onMouseOver="imageY.src='index/aboutme_over.png';"
onMouseOut="imageY.src='index/aboutme.png';"
href="vn_war.html"><img
src="index/aboutme.png" border=0
name=imageY></a></td>

perfect testing on MS Frontpage 2000 and Dreamwaver MX 2004 by press "Control" key and click on links.
But cannot run on IE 6.0

Please help me

le_gber

3:55 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



billnguyen2

href="vn_war.html" is neither .zip nor .exe it's an html page.

Hope this helps

Leo

tedster

8:26 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I see no problem in the HTML - but I wonder if you have the right file names and paths in there. Do you have a DIRECTORY called index? Does the href attribute point to the right file, or do you also need a directory there?

First, check your HTML to see if it's valid at:
[validator.w3.org...]

There might be another error on the page that's causing a problem. Then, check your file names and paths to make sure they point ot the right place and the file is really there.

billnguyen2

10:18 am on Feb 3, 2005 (gmt 0)

10+ Year Member



I have path, have index directory, have vn_war.html...enough

All links is good in Dreamwaver and MSFrontpage, but some fails, some good when direct run on IE 6.0.

Changing vn_var.html by *.exe and *.zip, the same issue happens,

But I point to another web page, it's run.

I don't understand why, I am investigating.

I think, some javascrips in this page effect to links.

Thank you very much

Sanenet

11:08 am on Feb 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you just click on a link that goes to a .exe or .zip, under IE you should get a popup box that says "Be careful of what you download, etc. Save or Run file?"

You can't get the .exe file to run automatically on the clients computer, the popup box will always appear. (Unless you're using an IE exploit, but thats another story ;))