JQuery to download the file when clicking a link

Hi guys,
My SharePoint environment is configured to open Office documents automatically in client applications and IE11 settings are such that the browser opens files without any prompts or warning messages. I do not want to change that.
I have a requirement for just one library where, when users click links of the files, they would automatically be downloaded to their local disks (as if our sharepoint site was not in IE Trusted Sites).
To complicate this further ;) I need this to happen for everybody, except one SharePoint group, who will have permissions to open server documents in their client apps (as in first paragraph of this post).
Can I accomplish this with jQuery and if so, could anyone could help with the syntax?
Thanks...

I have resolved this issue myself by adapting and playing with some jquery and spservices snippets I found on the net. Please see my blog post for a complete scenario and a the solution:
http://sharepoint-for-real.blogspot.co.uk/2014/04/force-download-dialog-on-click-for-just.html
 

Similar Messages

  • I get "could not open install.log file" when clicking on link in website which leads to an email address, all other links work OK.

    I am blocked by a message box headed 'Wise Uninstall' and the above error message each time I attempt to use a 'contact us' feature in a website which would normally takes me to an email address. The same happens when right-clicking on an image in any website to send to an email recipient.
    I would really appreciate your help in resolving this issue as it is most annoying as you can image.
    Many thanks, Judy.

    ok I managed to fix this! I had to run a disk repair it took a long time but after a reboot it now works fine.
    hard drive -> properties -> tools -> error-checking -> check now...

  • Help! my safarai did not auto download files when clicked...

    Hey guys...
    i have some problems with my safari and i need your generous help!
    recently, i cant download files from download links in any website including apple.com
    lets say that i want to download safari dmg from apple website...when i click the DOWNLOAD NOW button, it seems like nothing happened and this happen for all of the websites
    but i can download the files when i right click the link and select the "download linked file as"
    please help me...
    Thanks for your help in advance

    Hi,
    If your profile is correct you need to update your system software to 10.5.8. Go here:
    http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate
    After the installation, restart your Mac, launch Safari and see if you can download files. If not...
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Go here for trouble shooting 3rd party plugins or input managers which might be causing the problem.
    http://support.apple.com/kb/TS1594
    And make sure Safari is not running in Rosetta. Right or control click the Safari icon in your Applications folder then click Get Info. In the Get Info window click the black disclosure triangle so it faces down. Where you see Open using Rosetta... make sure that is NOT selected.
    Go to ~/Library/Cookies and move the Cookies.plist file to the Trash. Relaunch Safari.
    If you still have problems downloading from the Apple site, Open Keychain Access. (Applications/Utilities) Find the "Safari AutoFill" item. Delete it. Relaunch Safari. Next time it asks for authorization, click "Always Allow".
    Make sure the startup disk has enough free disk space. Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. *Make sure you always have a minimum of 10% to 15% free disk space at all times.*
    Carolyn

  • Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do no

    Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do not get an installation screen or a chance to enter the Licence no.

    Use another browser.
    Mylenium

  • When I click on a link to a file, (for instance a Filesonic link) I used to get asked if I wanted to run or download the file. Now it just goes straight to download. How can I stop it doing this? Thank you.

    When I click on a link to a file, (for instance a Filesonic link) I used to get asked if I wanted to run or download the file. Now it just goes straight to download. How can I stop it doing this? Thank you.

    Go to Tools -> Options -> Applications -> Search for your file format, .zip,for instance,
    Select ''' Always ask''' from drop down menu.

  • When opening pdf file I cannot choose between opening or downloading the file?

    Adobe offers just the download. How to change this?

    Hi, thanks for your reply. I use Mozzilla firefox the 15.01 version. How do I change the settings then?
    Martin
    Date: Fri, 21 Sep 2012 22:27:42 -0600
    From: [email protected]
    To: [email protected]
    Subject: When opening pdf file I cannot choose between opening or downloading the file?
        Re: When opening pdf file I cannot choose between opening or downloading the file?
        created by Pat Willener in Adobe Reader - View the full discussion
    That choice is not made by Adobe, but your browser, of which you give no details. 64-bit browsers cannot open PDF files, as the Adobe Reader plugin is a 32-bit app.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4718369#4718369
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4718369#4718369
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4718369#4718369. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I have Adobe Acrobat 7.0 Professional that I want to migrate to my newer laptop running Windows 7. I downloaded the file 22020134.exe to reinstall it on my new computer and I go through the hops and when I put in the Serial Number it tells me its invalid.

    I have Adobe Acrobat 7.0 Professional that I want to migrate to my newer laptop running Windows 7. I downloaded the file 22020134.exe to reinstall it on my new computer and I go through the hops and when I put in the Serial Number it tells me its invalid.

    22020134.exe is the file Adobe say you must download and run to instal Acrobat 7.0 Pro. I went through the  process, the one described in your link, I downloaded the file, ran it, it runs well, except it tells me my serial number is invalid. Now what? Does this mean I now have to discard my Adobe Acrobat 7.0 Professional and start again with a $500 purchase? All I want to do is transfer what I have to another computer.  

  • I use Microsoft Office Professional Plus 2010, when clicking a link in Outlook I always get a General Failure box stating 'The system cannot find the file specified' yet it still goes to the specified page. Any ideas on how to resolve this

    I use Microsoft Office Professional Plus 2010, when clicking a link in Outlook I always get a box stating
    General Failure. The URL was "http:// etc etc".The system cannot find the file specified.
    Yet it still goes to the specified page. Any ideas on how to resolve this

    I am having the exact same problem with Windows 7 Professional. Out of the blue, this issue just started a few months ago when running my monthly Windows Backup where I have used a USB drive for the last 3 years, and never ever had this issue before. Most
    of the solutions listed on the Microsoft websites and answers deal with
    "Restore" functions, not the
    "Backup" itself. I have 3 folders being skipped during the backup.
    So I went and changed the Backup from "let Microsoft choose files, directories, etc" to "Let me choose". I included the files and folders that were being skipped, and ran the "Backup" again, and got the same error message,
    but the files that were skipped the first time were "Backed up" finally. This issue is somehow related to my "Libraries"?
    The 3 backup problems are:
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book Recordings. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book CD Label-Cover Art. Error:(The system cannot find the path specified. (0x80070003))
    Backup encountered a problem while backing up file C:\Windows\System32\config\systemprofile\My Audio Books\Audio Book MP3 Tag Art. Error:(The system cannot find the path specified. (0x80070003))
    Did a "checkdisk" - no problems. Ran a program to fix registry - no problems. All updates up to date. I guess I could eliminate these folders from the Backup folders in the
    Library, and just choose them under the "Users" locations, and be done with it. But I really want to understand this, and fix it. This is within Windows 7 and may be related to Windows Media Player or
    some recent Windows update.  Thanks.

  • Downloading the file in our PC , when running the job in Background

    Hi,
    We have an enquiry for below requirment.
    Our client runs some jobs in front end , but as the time taken to execute the JOB is more than 15 minutes  , he is getting timeout problem, so we want to run the same program in background.
    Generally the output of the report is to download the file into his desktop,  so even when he is running
    the same job in background he want it to be downloaded into his PC, instead of application servor.
      We created a test program similar to the requirment, and ran the job in foreground and the file could easily be downloaded to desktop. Then we ran the program in backgound - The job failed with an error message  Codepage could not be determined  - Message no. FES025.
    My Question is - is it possible to download the file into the desktop while running in background.
    Please help me .
    Thanks in advance.
    Vengal Rao.

    Please search the forum. This question has been asked and answered many times before.
    Rob

  • I recently purchased an upgrade to Photoshop CS6. (Dec 9 2014).  I have today downloaded the file (Photoshop_13_LS16.7z  This downloaded OK   When I tried to run the file (Winzip) I got the following message  "Installer failed to initialise. Could be due

    I recently purchased an upgrade to Photoshop CS6. (Dec 9 2014).  I have today downloaded the file (Photoshop_13_LS16.7z
    This downloaded OK
    When I tried to run the file (Winzip) I got the following message
    "Installer failed to initialise. Could be due to a missing file.  Please download Abobe support adviser."
    I tried to do that and it told me Adobe support adviser no longer exists.
    Could you please advise a solution.

    Extract it to a different location inside a dedicated folder and make sure to not destroy the file and folder hierarchy inside the archive. also run the install with sufficient user privielges and security stuff turned off.
    Mylenium

  • Adobe Reader plugin :This sentence "le fichier ne commence pas par '%PDF-'" appears when I try to open some (not all) PDF files within Firefox (does not happen when I download the file)

    This sentence (in french version) "le fichier ne commence pas par '%PDF-'" appears when I try to open some (not all, mainly bigger than 1Mo) PDF files within Firefox (does not happen when I download the file)

    You mention Thunderbird, has the PDF file been emailed to you? If it has this support page from Adobe may help - http://www.adobe.com/fr/support/toptech/acrobat/319294/

  • When trying to download an APP, it's requesting answers to 3 security questions and it hangs up the iPad when clicking the drop down for the questions...any ideas?

    When trying to download an APP, it's requesting setup for answers to 3 security questions and it hangs up the iPad when clicking the drop down for the questions...any ideas?

    Had to do a hard reboot on the iPad and we were able to get the questions to pop up. Now it's just slow downloading the apps.

  • Help!  How do I download software for a HP Laserjet Professional P1100? I keep getting the same message when I have downloaded the file "Your security preferences allow installation of only apps from the Mac App Store and identified developers" Help!

    How do I download software for a HP Laserjet Professional P1100? I keep getting the same message when I have downloaded the file "Your security preferences allow installation of only apps from the Mac App Store and identified developers" Help!

    You can change the settings in Security & Privacy to "Anywhere"...
    That should work... as to whether the printer driver will work, that's another question.
    Good luck,
    Clinton

  • How do you know when the person that you've shared the file with has downloaded the file?

    After the person get the email that says "I am sharing these files with you.   Click on the image below to view or download your file.", how do you know that they've viewed or downloaded the file?  Do you get an email message or is there something in the shared status that lets you know?

    Thank you for your post. Although this is a feature for Buzzword, right now it's not possible to know if someone has viewed a file you've sent via Share. We are working to integrate Share/My Files/Buzzword so that this will be corrected in future.
    Let me know if you have additional questions.
    Michelle

  • TS3694 uploading iOS 7 to iphone 5 and after it downloaded, it was at the end of processing the file when i received  and error (3004) .  what do i do

    was at the end of processing the file when i received  and error (3004) .  what do i do

    http://lmgtfy.com/?q=iPhone+error+code+3004

Maybe you are looking for

  • HP Laserjet 1020 not working through remote desktop

    I have a hp laserjet 1020 that I am vpn and remote desktop to a computer at work. I am suupose to be able to print from remote desktop to my local printer (the hp laserjet 1020) using the microsoft terminal Easy Print. The printer is showing up in th

  • UNION  SQL QUERY

    Hello i have problem in sql query there two queries the first SELECT m.segment1 || '.' || m.segment2 || '.' || m.segment3 || '.' || m.segment4 || '.' || m.segment5 || '.' || m.segment6 ACCOUNT,q.description, NVL ((SUM (l.entered_dr) - SUM (l.entered_

  • Order the recovery DVD's from HP

    Hello, My System has been  crashed and I dont have recovery DVDs with me Product Model: XV699PA Product Name: HP Pavilion dv6-3123tx Entertainment Notebook PC Product Serial Number: INA050QK18 Request you to please let me know the Recovery DVDs so t

  • I need a file from Photoshop CS5

    I need a 200-byte CS5 file.  Go to "C:\Documents and Settings\My\Application Data\Adobe\Color" (I have windows XP, so that address may be different for u if u have Vista or 7, etc).  u'll see a 200-byte file named "ACEConfigCache2". Put it in a zip f

  • Does server start up quicker if applications on it are deployed as exploded

    Sorry but I have not been able to find an answer to this. Does WLS start up quicker (a cluster, upon any shutdown and restart of it) if the deployed apps on it were deployed as exploded directories vs. from .ear and .war files? Thanks!