Would like default open action to be "download a copy"

hi all,
i have a document library that i want to contain official copies of documents.  when you left-click the document title, it asks to open read only or check out.   i dont want either option, i want that behavior to be like the "download a copy"
button on the ribbon bar.....iow, i want it to force the end user to "save as..." a local copy.
is this possible?  i noticed the button to download is a javascript, so i should be able to replace the HREF link with this javascript commmand?
thanks!!!!
~george

Hi Ge0rg3,
Please try the following code:
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("[class=ms-vb itx]").each(function (i, obj) {
obj.innerHTML = "<div onclick='rebindOnclick();'>" + removeHtmlTags(obj.innerHTML) + "</div>";
var rebindOnclick = function () {
setTimeout(function () { document.getElementById("Ribbon.Documents.Copies.Download-Large").click(); }, 500)
var removeHtmlTags = function (s) {
return s.replace(/<[^>].*?>/g, "");
</script>
Thanks,
Lhan Han

Similar Messages

Maybe you are looking for

  • What is the correct USB 3.0 PCIE card for Z800?

    I'm looking to buy the correct USB 3.0 PCIe card for a Z800, but I cant find any thru HP. Any have any info> There's  12 and 60 dollar HP cards on EBAY, but I don't know if those are correct ones. This question was solved. View Solution.

  • File usage report from Premiere

    Hello good people, Is there any way to export or view a report on what files are used on the actual timeline? If not, I believe that this would be a great function to add. You would be able to: * View/Export complete lists of actually used clips. * V

  • What am I doing wrong?  Enterprise Webservices arent working but...

    Hopefully this caught your attention.  I am having a problem with the Enterprise Services that are delivered in the different enhancement packs for ECC 6.0. My landscape is as follows: CE 7.1, PI 7.1, and ECC 6.0, and using the ESR (Service Registry

  • Lost cs4 extended manual - is there a pdf?

    I have been looking for a pdf file for the manual that comes in the box. I recently lost mine and it was my lifeline :( anyone know where I can download another?

  • Material No. Mandatory with account assignment category K

    Dear, Can i make Material No. Mandatory with account assignment category K Please advise Rami