Get error with ajax get in jquery to an extern url

Posted by user1394983 on Stack Overflow See other posts from Stack Overflow or by user1394983
Published on 2012-11-30T10:56:48Z Indexed on 2012/11/30 11:04 UTC
Read the original article Hit count: 157

Filed under:
|
|

I have a big problem. I want get information with an webservice in one URL.

But I'mm getting this error:

XMLHttpRequest cannot load ht*p://external_url_that_i_trid_to_get.
Origin ht*p://localhost:8888 is not allowed by Access-Control-Allow-Origin.

Im using this:

$.get(url_parsed,date_get,function(data) {
    if (data.result == 'sucess') {
        alert(data.data["title"]);
    }
},"json");

How I can resolve this? Regards

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX