On Sun, 22 Feb 2009 13:53:10 +0100, Lambertus <[email protected]> wrote: > Marcus Wolschon wrote: >> Lambertus schrieb: >>> A webbrowser does not allow you to do cross site AJAX calls. You will >>> need to setup a local proxy on your webserver who relais the >>> yournavigation.org queries. >> >> I found a way around this limitation a while ago. >> It works file to dynamically include a javascript from >> that remote site and have it set variables as a replacement >> for the ajax-calls. >> > Ok, I could provide such a javascript file if that makes it easier for > other sites to use the YOURS API, but I don't clearly see what should be > in there: a variable containing the base URL? And would that be enough, > because I cannot pre-set every possible lat/lon in advance?
No, that I used was a php-script that took URL-parameters and gave an output like: <script language="javascript"> answer = "xyz"; handleAnswer(answer); </script> Where handleAnswer(param) is a method defined on the website (similar to the ajax-handler). It worked well across domain-boundaries in FF2, FF3, Safari, IE5, IE6, IE7 and Chrome. Marcus _______________________________________________ Routing mailing list [email protected] http://lists.openstreetmap.org/listinfo/routing
