$.getJSON works locally but not when uploaded to web server
I'm working on a script that is working fine on my local machine but when i upload it to my web server, my $.getJSON request isn't working. Here's an example:
- $(document).ready(function(){
- $.getJSON('http://www2.bluestarjets.com/json/getcharterxresults.aspx? d=KSFO&a=KLAX',function(data){
- //do stuff with the data
- });
- });
I've chopped out a lot of my internal code, which basically just takes the results and puts them into html elements. the url i'm requesting is on a remote server, but it works when i run this html page from my hard drive. when i upload it to my web server and access it from the url (which is different from the request that i'm making), I get my results page instantly, it's like $.getJSON's not even running.