1 / 5

NotesIn9 Adding a jQuery plugin to an XPage

NotesIn9 Adding a jQuery plugin to an XPage. Dr. Mark Roden. Marky…. http://www.xomino.com. What will we be doing?. Downloading our jQuery Plugin Adding it to our database Creating a viewPanel Testing the plugin with Firebug Applying the plugin to our XPage. Questions?.

zwi
Télécharger la présentation

NotesIn9 Adding a jQuery plugin to an XPage

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NotesIn9Adding a jQuery plugin to an XPage Dr. Mark Roden

  2. Marky….. http://www.xomino.com

  3. What will we be doing? • Downloading our jQuery Plugin • Adding it to our database • Creating a viewPanel • Testing the plugin with Firebug • Applying the plugin to our XPage

  4. Questions? Mark Roden Comments/Questions/Suggestions http://www.xomino.com/nin9_trunk8

  5. Code snippets <xp:this.resources> <xp:scriptsrc="js/trunk8.js" clientSide="true"></xp:script> <xp:scriptsrc="js/jquery-1.7.1.min.js" clientSide="true"></xp:script> </xp:this.resources> <script> XSP.addOnLoad(function(){ $("#[id$='viewPanel1'] trtd:nth-child(3)").trunk8({ fill: '<a href="#">&#160;read more </a>', //this is what is inserted into the text as placeholder lines: 3, //the number of lines of orginal text displayed side: 'right', //the placement of the "read more" left center right tooltip: true, //show a tooltip of the original text width: 'auto' // style the final text to fit the container. }); }) </script>

More Related