Demo Search
This form has the Lucien code binded to the search field. After performing a search, the results page will display the spelling suggestion with a link to re-run the search request.
The Code
The following is all the code that is required to be added to your page. First, you need to include the Lucien settings file on your page.
Include Lucien settings:<!-- includes the local Lucien settings file --> <script type="text/javascript" src="lucien.js"></script>
Next, you bind Lucien's smart listener to your form and input fields. Your form and search field both need to have a unique 'name' attribute which match these definitions.
Bind Lucien to form:<script type="text/javascript"> // define the form to bind with __lucienFormName = "search"; // define the form field to bind with __lucienTermName = "term"; </script>
Its that simple!
Generate your custom code using the Quick Setup.
