I am trying to get an answer from my server. Merely get the var json.src = "http://image/path/file.jpg"
from the server but I can't even get into the getJSON
function whatsoever.
I must be neglecting something, but I can't use $.getJSON
, nor $.get
Would appreciate any help Thanks
This wont work if you're trying to load content from a different server to that on which the request is being made. This is due to Same Origin Policy .
Also, what's with the image url
in your question? That's not JSON.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.