On Nov 13, 7:16 am, Goose <[email protected]> wrote: > Hi, > > I have created a store locator which works fine on my local machine > however when I upload it to my Live server it breaks but it in a weird > way. > > The code will only work if I put in an alert() inside my call back > function - searchLocationsNear > > See code here -http://pastebin.com/m3f441070- Alert in question is > on line 54 > > When the alert is in the code the script runs as expected and plots > the property's on the map and generates an entry in the sidebar. > > When the alert is taken out the code, there are no JS error messages > however the properties are not plotted on the map and the sidebar is > not changed. > > I can confirm that the ajax is working thanks to Firebug as I can see > the AJAX call returns the xml feed as it should > > (<?xml version="1.0"?> > <markers><marker propertyId="15" propertyTitle="test" > propertyName="test") etc etc etc > > Can anyone help shed some light on what the problem is >
Sounds like you don't understand the "asynchronous" part of AJAX. I'm not going to read a code dump though. -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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-maps-api?hl=.
