Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: RE: Allowing users to download a file


Message #1 by "Simon Dilley" <SimonD@D...> on Mon, 1 Jan 2001 12:57:47 -0000
Yes.

However, I believe that the user CAN right click and save the target of
the file download.

So, Simon, you could put the link out there with some instruction to 

"Right click, then select Save Target As... to download the file"

John

-----Original Message-----
From: Gregory_Griffiths@c...
[mailto:Gregory_Griffiths@c...]
Sent: 01022001 4:10 AM
To: javascript
Subject: [javascript] RE: Allowing users to download a file


You can't the funcitonality that you are after is configured by the 
client Browser in the registy and MIME types, so you don't have access 
to it via a browser.

> -----Original Message-----
> From: SimonD@D...'sCompany.com
> [mailto:SimonD@D...'sCompany.com]
> Sent: 01 January 2001 12:58
> To: javascript@p...
> Cc: SimonD@D...'sCompany.com
> Subject: [javascript] RE: Allowing users to download a file
> Importance: High
> 
> 
> Thanks for the email.  This has not worked.  What actually 
> happens is the
> file automaticllay opens up in my browser.  I am trying to 
> get the file
> download box to come up enable the user  to choose whether 
> they wish to open
> this file from the current location or to Save it.  What 
> could I try next.
> Do you mean the virtual directory being the root?
> 
> Thanks
> 
> Simon Dilley
> 
> -----Original Message-----
> From: Ashish Thakur [mailto:athakur@q...]
> Sent: 31 December 2000 06:45
> To: javascript
> Subject: [javascript] RE: Allowing users to download a file
> 
> 
> try using this line of code for the file download - assume 
> that you want to
> put a MyResume.pdf file for download and that file is located in
> virtualdirectory/Resume folder on your machine
> 
> <a href="Virtualdirectory/Resume/MyResume.pdf">Click Here To 
> Download My
> Resume</a>
> 
> when the user clicks on this link, the browser will ask the 
> user an option
> to "save this" or "open this file from present location" ... 
> the user then
> can download the file or likewise ...
> 
> hope this helps
> 
> Ashish Thakur
> Sr. Development Engineer
> QUARK Inc.
> 
> //////////////////////////////////////////////////
> 
> -----Original Message-----
> From: Simon Dilley [mailto:s.j.dilley@b...]
> Sent: Friday, December 29, 2000 5:03 PM
> To: javascript
> Subject: [javascript] Allowing users to download a file
> 
> 
> Hello,
> 
> I have a file which I wish I want to put on my site.  I was 
> wondering if
> somebody could please tell me how I go about setting this up.
> 
> Many thanks.
> 
> 
> 

--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to javascript as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-javascript-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index