Loading the SearchSuggestor Class
Although we have not yet completed the SearchSuggestor class, we can add it to our site template. To do this, we must first load the SearchSuggestor.class.js file and then load the class in the onload callback we created in the scripts.js file earlier in the book.
Listing 12-33 shows the changes that are to be made to header.tpl in ./templates to load the SearchSuggestor.class.js file.
Listing 12-33. Loading the SearchSuggestor Class in the Site Template (header.tpl) <!-- // ... other code -->
Average user rating: 5 stars out of 1 votes
Post a comment