First you must to include the JS files in the head of your HTML document.
#HTML <script type="text/javascript" src="core.js"></script> <script type="text/javascript" src="jsonp.js"></script> <script type="text/javascript" src="contextualSearch.js"></script>
In your JavaScript source:
#JS window.addEvent('domready',function(){ new contextualSearch({site: 'davidwalsh.name',targetID: 'container'}); });
In your HTML source:
#HTML <div id="container"></div>
Dependencies:
MooTools Core 1.3 MooTools More: Request.JSONP
In Action:
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus