Add a Voyager Search Box to a Webpage
Voyager provides easy to use APIs that let you build custom applications.
To add a Voyager search box to a web page:
Use the following code:
<script type="text/javascript"> function doSearch(s1) { window.open('http://localhost:8888/navigo/search?q=' + s1, 'TextSearch'); } </script> <form onsubmit="doSearch(this.s1.value); return false;"> <input type="text" name="s1" size="20" placeholder="What are you looking for?" /> <input type="submit" value="Search Voyager" /> </form>
NOTE: Change the action attribute of the form to the correct URL.