JQuery load involved PHP script, no response in Firefox
Helo,
The following code loads a s开发者_运维知识库ome google map directions in. For some reason Firefox returns nothing. Firebug does not report any errors, however the line action turns read and response reads nothing. I've built my own version that adds a PHP file in the middle to no avail.
Why does it not work on firefox.
$('#directionex .dirscroll').load('http://maps.googleapis.com/maps/api/directions/xml?origin=' + start + '&destination=' + end + '&sensor=false')
Any idea why this does not work.
Marvellous,
This example doesn't work for me in any browser. The issue is likely to do with the same origin policy. You can't load arbitrary resources from any domain into your page. I would suggest checking out the Google Maps API.
精彩评论