Click here to Skip to main content
Licence CPOL
First Posted 17 May 2009
Views 7,033
Bookmarked 7 times

Free scribd automation JavaScript

By | 17 May 2009 | Article
Visualizes doc and PDF on the fly to iPaper by scribd.

Introduction

This free JavaScript will find all links to PDF or doc files. It adds an additional link. On rollover, the new link will create a floating div with an iPaper visualisation of the document on the fly.

Users don't have to download a file before they see its contents.

Using the code

Copy the code into the body section of your webpage. The script will find and visualize the download links. The script uses jquery and scribd API:

<script src="http://code.jquery.com/jquery-latest.js" 
  type="text/javascript"></script>
<script src="http://ui.jquery.com/latest/ui/ui.core.js"></script>
<script src="http://ui.jquery.com/latest/ui/ui.draggable.js"></script>

<script src="http://www.tdv.ch/api.js" type="text/javascript"></script>
<script type="text/javascript"> 
  jQuery.noConflict();
  jQuery(document).ready(function(){
  createDocViewer();
});
</script>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

starlight71



Switzerland Switzerland

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 Pinmembermanojsitapara0:57 7 Jan '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 17 May 2009
Article Copyright 2009 by starlight71
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid