Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 12th, 2006, 8:42 AM   #1
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Avoid default dialog box for file download?

I have noticed, downloads of PDF files are often instructed as right-clicking and selecting the option of "Save target as ..." on some websites.

Can there be a method that could avoid the default dialog box of "open / save" from popping up, when an individual, instead of right-clicking, left clicks the link, that opens a javascript confirm box asking whether he would like to save the file or just forget about the file (press cancel button)

If this is possible, then would clicking the OK button, directly jump to downloading the file (instead of popping up the default dialog box)?
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Sep 12th, 2006, 9:38 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
JavaScript cannot create, modify or delete any files on the machine it's being run on, so no, you can't use it to download a file.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to to do this using Win32 API? csharp C++ 4 Nov 1st, 2005 5:22 AM
How Avoid Dialog Box Open/Save Files see07 C# 3 Mar 30th, 2005 7:06 AM
Unable to move dialog after creating milksama C++ 1 Mar 11th, 2005 1:10 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:30 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC