Help - Search - Members - Calendar
Full Version: auto prompt download
HTMLHelp Forums > Web Authoring > Web Site Functionality
elitium
Hi
I'm new too this with webpage and html...
I've done a simple webpage where I would like to have a function on which work like this:

when I go to the webpage (ex www.mywebpage.com) directly when I reach the site I would like to have an exe-file prompting to be downloaded, not a button to push on or a link to go on but a direct action. Can this function be done directly on index.html or do I have to make the file connection to another html-file (ex www.mywebpage.com/download.index)?

I use Apache webserver and have the exe-file under htdocs.
How do i write the HTML code to point to the exe-file?

By the way, when you make a new html-file do you have to go on www.mywebpage.com/download.html or is it possible to make it work with just www.mywebpage.com/download not the html on the end

Thanks
Darin McGrew
FWIW, an exe file would be useless to me. If a site tried to download one automatically, then I'd close the window and never go back.

QUOTE
By the way, when you make a new html-file do you have to go on www.mywebpage.com/download.html or is it possible to make it work with just www.mywebpage.com/download not the html on the end
One way to do this is with Apache's content negotiation function. See also Content Negotiation - Apache HTTP Server.
AnonSolutions
QUOTE(elitium @ Sep 11 2008, 01:42 PM) *

Hi
I'm new too this with webpage and html...
I've done a simple webpage where I would like to have a function on which work like this:

when I go to the webpage (ex www.mywebpage.com) directly when I reach the site I would like to have an exe-file prompting to be downloaded, not a button to push on or a link to go on but a direct action. Can this function be done directly on index.html or do I have to make the file connection to another html-file (ex www.mywebpage.com/download.index)?

I use Apache webserver and have the exe-file under htdocs.
How do i write the HTML code to point to the exe-file?

By the way, when you make a new html-file do you have to go on www.mywebpage.com/download.html or is it possible to make it work with just www.mywebpage.com/download not the html on the end

Thanks



Hi there,

I'm not really sure what you are trying to do here.

Something like this?

http://www.anonsolutions.com/WebMaster-Too...w-category.html


Thanks
elitium
I read about Content Negotiation - Apache HTTP Server, but I didn't understand it.
Found another site that explained it very simple:

(One method is to create a directory called /test/ and in there store an "index.html" (Unix) or "Default.html" (MS) file. Then you can refer to the file as www.example.com/test in print.)

I just made a new index.html and putted it in a folder.

---
What about the link: http://www.anonsolutions.com/WebMaster-Too...w-category.html ?

---
The reason to have an exe-file popping up for download is to have users that wants remote support, I thought it would be easy for them just to go too my page and then they gets the file directly. It's a remote offer tool.
But isn't there some html code to write so this can be done? Would really like to try it.

Thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.