Without seeing your complete code or, better yet, a link to the page where you're trying to do this, it's tough to say what's going on, especially considering that the LocalSearch control does not appear to support a search starting callback such as the one that you're looking. At least, I find no documentation on it, and I didn't see anything when I looked through the code just now. Please provide a link to your page or, if that is absolutely impossible, a link to a pastebin of your complete code. Thanks.
Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com http://jgeerdes.blogspot.com http://jgeerdes.wordpress.com [email protected] Unless otherwise noted, any price quotes contained within this communication are given in US dollars. If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com ! On May 25, 2009, at 9:59 AM, ammouna24 wrote: > > Bonjour, > > J'utilise Ajax api search et je trouve pas un moyen de récupérer la > requête ' query ' , comme dans le cas de search api en général . > > Je joins el bout de code que j'ai essayé et qui marche pas > > google.load("elements", "1", { packages : ["localsearch"] }); > function searchStart(searcher, response,query) { > var searcher = document.getElementById('mapWrapperCanvas'); > var queryDiv = document.createElement('div'); > queryDiv.id = 'query'; > document.body.appendChild(queryDiv); > alert("saisie"+query); > } > > function initialize() { > var mapCanvas = document.getElementById("mapCanvas"); > var resultsCanvas = document.getElementById("resultsCanvas"); > > var map2 = new google.maps.Map2(mapCanvas); > > map2.addControl(new GMapTypeControl()); > map2.setMapType(G_HYBRID_MAP); > > map2.addControl(new GOverviewMapControl()); > > map2.addControl(new GScaleControl()); > map2.addControl(new GLargeMapControl()); > > map2.enableScrollWheelZoom(); > map2.setCenter(new google.maps.LatLng(36.8117,10.1761), 13); > > var options={ > > resultList : resultsCanvas, > resultFormat : "multi-line1", > onSearchStartingCallback: searchStart, > > }; > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
