HighDots Forums  

"Your Download Should Start Automatically"

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss "Your Download Should Start Automatically" in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Macman4000
 
Posts: n/a

Default "Your Download Should Start Automatically" - 07-05-2004 , 09:30 PM






How do I make a page that automatically downloads a file after 5 seconds or somthing like that. I always see sites that say "Your Download Should Start Automatically". and now I found a use for that.

Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: "Your Download Should Start Automatically" - 07-05-2004 , 09:32 PM






The most reliable way - zip the file, and link to it as you would to any
other file.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Macman4000" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
How do I make a page that automatically downloads a file after 5 seconds
or somthing like that. I always see sites that say "Your Download Should
Start Automatically". and now I found a use for that.




Reply With Quote
  #3  
Old   
Macman4000
 
Posts: n/a

Default Re: "Your Download Should Start Automatically" - 07-05-2004 , 10:11 PM



I understand how to link a download file... Im not incompetant ;-)

I need to know how to make a file automaticly download when the page loads.

Reply With Quote
  #4  
Old   
Michael Fesser
 
Posts: n/a

Default Re: "Your Download Should Start Automatically" - 07-05-2004 , 10:16 PM



.oO(Macman4000)

Quote:
How do I make a page that automatically downloads a file after 5 seconds
or somthing like that. I always see sites that say "Your Download Should
Start Automatically". and now I found a use for that.
It's done with a meta-refresh (search on Google if you _really_ want to
use it).

Micha


Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: "Your Download Should Start Automatically" - 07-05-2004 , 10:21 PM



You have an onLoad event that triggers an openBrowserWindow pointing to the
zip file?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Macman4000" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I understand how to link a download file... Im not incompetant ;-)

I need to know how to make a file automaticly download when the page
loads.




Reply With Quote
  #6  
Old   
Macman4000
 
Posts: n/a

Default Re: "Your Download Should Start Automatically" - 07-05-2004 , 10:34 PM



Quote:
You have an onLoad event that triggers an openBrowserWindow pointing to the
zip file?
no.

all I have is the above code that I copied from another website.


Reply With Quote
  #7  
Old   
Macman4000
 
Posts: n/a

Default Re: "Your Download Should Start Automatically" - 07-05-2004 , 11:06 PM



Is this all I need?

<meta http-equiv="Refresh" content="1;
URL=http://www.mysite.com/path/to/file.zip">

If you want to test the page I have so far go here:
http://www.murphyscamera.com/downloads111.htm


Reply With Quote
  #8  
Old   
Michael Fesser
 
Posts: n/a

Default Re: "Your Download Should Start Automatically" - 07-06-2004 , 12:15 AM



.oO(Macman4000)

Quote:
Is this all I need?

meta http-equiv="Refresh" content="1;
URL=http://www.mysite.com/path/to/file.zip"
Yep, but you should be aware of the problems that may arise from such an
abuse of the meta-refresh (may break back button for example). It's not
meant to redirect to another URL, even if it's used for that all over
the web. That's why I wrote "... if you _really_ want to use it."

Personally I wouldn't recommend it.

Micha


Reply With Quote
  #9  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: "Your Download Should Start Automatically" - 07-06-2004 , 07:53 AM



In this case, the method I posted would work best. The original poster
misunderstood it as a question rather than as an answer....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Michael Fesser" <netizen (AT) gmx (DOT) net> wrote

Quote:
.oO(Macman4000)

Is this all I need?

meta http-equiv="Refresh" content="1;
URL=http://www.mysite.com/path/to/file.zip"

Yep, but you should be aware of the problems that may arise from such an
abuse of the meta-refresh (may break back button for example). It's not
meant to redirect to another URL, even if it's used for that all over
the web. That's why I wrote "... if you _really_ want to use it."

Personally I wouldn't recommend it.

Micha



Reply With Quote
  #10  
Old   
Macman4000
 
Posts: n/a

Default Re: "Your Download Should Start Automatically" - 07-07-2004 , 12:02 PM



How would I set up an onload event?

The whole reason I am doing this is because I need a way to count how many
people download these PDFs from my site. All the good download counters are
either to dificult to use (MySQL, PHP, etc.) or cost money. I already have a
service that counts page hits and It is very easy to use (think Idiot-Proof).
So i decided the easiest way for my to count downloads (besides learning
another language like PHP) is to make downloads open a pop-up window that says
"Your Download Should Start Automatically... blah blah blah, Click here if it
dosn't work". That way I can just look at the page hits for that pop-up and see
how many people downloaded the PDF.

If you know a better way that is idiot-proof and free please let me know!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.