Wrox Programmer Forums
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 18th, 2005, 08:21 AM
Registered User
 
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Downloading Images

I have an image getting displayed on a page.I want to add to hyperlinks below it to download the image at high and low resolution.How can I do that.Please advice.

Thanks,
Priti

Reply With Quote
  #2 (permalink)  
Old June 18th, 2005, 07:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Priti,

Not sure if you are looking for this answer.

I assume that you have both the high and low resolution images ready. If so go ahead and use the code
Code:
<a href="PATH\HIGH_RES_IMAGE_NAME">Download High resolution image</a>
and similarly another <a> tag for low resolution image.

You got to change the Path and image file name in the above code that relates to your setup.

Hope that helps.

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #3 (permalink)  
Old June 19th, 2005, 03:24 AM
Registered User
 
Join Date: Jun 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for replying vijay.I did as you suggested

<a href="PATH\HIGH_RES_IMAGE_NAME">Download High resolution image</a>

With that, on click of hyperlink the image gets opened up in same browser window and doesnot pop up for download.

I tried giving path using 'http' and mentioning the drive:
<a href="http://server_name/images/HIGH_RES_IMAGE_NAME.gif">Download High resolution image</a>

<a href="f:/images/HIGH_RES_IMAGE_NAME.gif">Download High resolution image</a>

Priti

Reply With Quote
  #4 (permalink)  
Old June 21st, 2005, 02:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes it would open up, by default images/pdfs would get opened on click. You can right click and choose "save target as" to download that.

_________________________
- Vijay G
Strive for Perfection
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Images from and Save Images to a Database cyndie VB.NET 2 August 17th, 2008 06:42 AM
Downloading Images priti Classic ASP Components 10 October 27th, 2005 10:18 PM
Downloading scripts... johnh Oracle 0 May 23rd, 2004 10:17 AM
Problem in downloading KamranAhmed VB How-To 0 May 12th, 2004 03:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.