Below is a test HTML page that I created to test the getJSON functionality of jQuery. When run in firefox while running firebug it shows that there is no response from the google maps api (not sure if this a jQuery thing or a google maps api problem). This code doesn't respond in chrome either but it actually works in safari 7.0.x running in Mac OSX 10.9 (as in I am alerted the distance value out of the resulting JSON). Any ideas what the issue may be? I had this problem last week and somehow managed to fix it (at least I thought) with the deletion of a semi-colon but I haven't changed anything since then and now its not working again. Just as a reminder this is merely a test page, the actual code I am using is thousands of lines but I know this is where its breaking because my callback function isn't firing.
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
My question would be why would this work for almost a year and then all the sudden stop working? Has something been done with the way Jquery's getJSON method works? And why would this respond in the newest safari browser on Mac but not in any other browser, seems like more of a problem than just a JSONP issue?
Yes I am using a local file so that must be why. So I need to use jsonp now instead of json even though the way I've done it worked previously for about a year?
So I no longer can do the call the way I am (as in using the url)? Do I now need to use the DirectionService and DirectionRequest properties of the API? I'm really hoping this isn't the case as that will be a huge reworking of all my code.