Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / XHTML

Free scribd automation JavaScript

1.00/5 (1 vote)
17 May 2009CPOL 14.3K  
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:

JavaScript
<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)