The easiest way to use the jokes in your website, is by using the JavaScript API, a jQuery plugin. You can download the plugin at http://code.icndb.com, the most recent versions are available at http://code.icndb.com/jquery.icndb.min.js (minified production version) or http://code.icndb.com/jquery.icndb.js (developer version with comments).

The plugin provides the following methods:

  • $.icndb.getRandomJoke()
  • $.icndb.getRandomJokes()
  • $.icndb.getNumberOfJokes()
  • $.icndb.getCategories()

For documentation, look into the developer version of the code.

Want to contribute? Fork me on:  

 

2 Responses to JavaScript jQuery plugin

  1. monika says:

    Hey chuck pogadamy

  2. I know this web page presents quality dependent content
    and extra data, is there any other web page which gives such information in quality?

Leave a Reply

Your email address will not be published. Required fields are marked *

Set your Twitter account name in your settings to use the TwitterBar Section.