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

Using the jQuery plugin

Info about loading the plugin and operating it ($(document).ready(…)).

API Reference

$.icndb.getRandomJoke()

Parameters, result, example

$.icndb.getRandomJokes()

Parameters, result, example

$.icndb.getNumberOfJokes()

Parameters, result, example

$.icndb.getCategories()

Parameters, result, example

 

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

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