javascript - Website hosted on Google Drive not receiving JSONP from another website -


i developing website needs make jsonp calls external database. when test following code on computer, jsonp calls successful

  $.getjson("http://api.openchargemap.io/v2/poi/?output=json&distance=" + distbetween + "&latitude=" + x1 + "&longitude=" + y1 + "&distanceunit=miles&maxresults=1&callback=?",function(data){     alert("successful!");     } }); 

however, when test website through google drive, code doesn't work. google drive has service called editey, html, css, , js editor. can write code , have public see. when test code on google drive host, alert isn't being called. not familiar json, have cross-domain calls? if so, can fix problem?

thanks.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -