Friday, September 3, 2010

Re: Creating a Store Locator : remote request ?

On Sep 3, 1:17 am, Kpol <khampo...@gmail.com> wrote:
> hello,
>
>  I follow this :http://code.google.com/intl/fr-FR/apis/maps/articles/phpsqlsearch.html
> and it works perfectly.
>  But now i want to do request from remote browser, that means :
> phpsqlsearch_genxml.xml and phpsqlsearch_map.html wont be at the same
> place. In phpsqlsearch_map.html i see :
>
>  var searchUrl = 'phpsqlsearch_genxml.php?lat=' + center.lat() +
> '&lng=' + center.lng() + '&radius=' + radius;
>
> so i try :
>
>  var searchUrl = 'http://mysiteweb.com/phpsqlsearch_genxml.php?lat='+
> center.lat() + '&lng=' + center.lng() + '&radius=' + radius;
>
> .. but it dont work :( ...
XMLHttpRequest cross domain restriction

>
> ideas... help...
Use a proxy.

-- 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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate