Site Search

The SiteSearch plugin enables a static site search. The site documents are taken from a sitemap XML file. Site documents must be XHTML.

Current version: 0.4

Dependencies

The SiteSearch plugin uses jQuery.

Syntax

$(selector).siteSearch(options);

Options

Events

Each time options are changed the events are exclusively bound to the option handler functions. In order to add an event handler to previously bound handlers please use .bind(). Event handlers run in window scope.

Methods

Example

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.sitesearch.js"></script> 
<script type="text/javascript">
	$(document).ready(function() {
		$('#search').siteSearch();
		$('#searchblock').css('display','block');
	});
</script>
<title>Search Example</title>
</head>
<body>
<h1>Search Example</h1>
<div id="searchblock" style="display:none">
 <h2>Local Search</h2>
 <div id="search">
	<p>Please wait...</p>
 </div>
</div>

See the example, sitemap.xml

Download

jquery.sitesearch.js

Contact

Markus Olbrich