2009/6/5 red <[email protected]> > Hello! > I have a problem. I would set Google search form on all pages on my > site and when user send search request system show results in new > page. > Please, instrust me, what I need add to code on initialize() > function. > > function initialize() { > var searchControl = new google.search.SearchControl(); > var options = new google.search.SearcherOptions(); > options.setExpandMode > (google.search.SearchControl.EXPAND_MODE_OPEN); > options.setRoot(document.getElementById("results")); > var siteSearch = new google.search.WebSearch(); > siteSearch.setSiteRestriction("empiresitebuilding.ru"); > searchControl.addSearcher(siteSearch, options); > searchControl.draw(document.getElementById("searchcontrol")); > } > > Подскажите пожалуйста как решить проблему. Хочу чтобы форма поиска > была на всех страницах, а результаты поиска выдались на другой. Уже > неделю голову ломаю. Думаю проблема совсем простая, но никак не могу > найти нужный метод. > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
