$.getJSON works locally but not when uploaded to web server

$.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:

  1. $(document).ready(function(){
  2.       $.getJSON('http://www2.bluestarjets.com/json/getcharterxresults.aspx?     d=KSFO&a=KLAX',function(data){
  3. //do stuff with the data
  4.        });
  5. });
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.
    • Topic Participants

    • rf