Hi, I'm wondering if the cause could be that the call to GSearch.setOnloadCallback is made before the uds.js file is loaded. Are the script tags in the HTML head? It might be easiest if we could see the page in question as there are a number of ways to get into a library load race condition situation.
Thank you, Jeff On Thu, Oct 8, 2009 at 3:22 AM, API_User <n0164...@ntu.ac.uk> wrote: > > Hello > > im using the google map api on my website. The api im using includes > the search tool at the foot. > > http://maps.google.com/maps?file=api&v=2.x&key=MYKEY > > http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-msw&key=MYKEY > > Now for some reason in Firefox the map fails to load and Firebug > reports error : > > GSearch is not defined > [Break on this error] GSearch.setOnLoadCallback(LoadMapSearchControl); > > This error is random because it doesnt happen every time the page is > loaded... Because of this it becomes quite hard to see exactly why its > happening. > > Before the question is asked, all urls to googles API files are not > relative and contain the full URL. Also my KEY is correct (otherwise > it would not be loading at all). > > So im stumped. Any ideas / opinions that may lead to a fix will be > appreciated. > > Regards. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to firstname.lastname@example.org To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en -~----------~----~----~----~------~----~------~--~---