Current location: Hot Scripts Forums » General Web Coding » JavaScript » Interesting Problem ... Looking For An Interesting Solution


Interesting Problem ... Looking For An Interesting Solution

Reply
  #1 (permalink)  
Old 05-27-04, 11:39 AM
mtorbin mtorbin is offline
New Member
 
Join Date: May 2004
Location: Philadelphia, Pa
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Interesting Problem ... Looking For An Interesting Solution

Hey all,

Ok, so here's the problem. On our current Intranet, we have a link where a user can download a document. The document is currently in PDF format. However, the users would prefer to use XLS format. The problem with this is if the user does not do a right-click "save as" then the document tries to open (assuming they do a double-click) and this causes the network to take a dive.

Is there some sort of code that I can write that will either:

1) Create a button that when clicked/double-clicked/whatever will open
the "save link as..." dialog box.

2) Keep users from ever being able to double click/triple click/whatever
on the link causing this issue to occur?

Basically, how do I solve this problem?

- MT
__________________
-=•=-=•=-=•=-=•=-=•=-=•=-=•=-
Matt Torbin
Web and Graphic Arts Engineer
PEI-Genesis
www.peigenesis.com
Reply With Quote
  #2 (permalink)  
Old 05-28-04, 01:53 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Don't know how to solve your first problem but there's a way to prevent users from clicking more than once on a link.

Instead of directly linking to the file you could make the link call a JS function and have it check if the link has been clicked before (The function sets a variable to true when started and resets it again after some time using setTimeOut). If not, then change the documents location to the link.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie found a solution to a date problem. mickey_kamer Perl 4 05-09-07 05:54 AM


All times are GMT -5. The time now is 02:21 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.