KangoExtensions / kango

Kango framework issue tracker
74 stars 7 forks source link

Firefox 20 problem with kango.xhr #38

Closed larrybek closed 11 years ago

larrybek commented 11 years ago
    method: 'POST',
    url: 'http://example.com/',
    async: true,
    params: {'param1': '1', 'param2': '2'},
    headers: {'If-Modified-Since': 'Sat, 1 Jan 2000 00:00:00 GMT', 'Cache-Control': 'max-age=0'},
    contentType: 'text'

};

kango.xhr.send(details, function(data) { if(data.status == 200 && data.response != null) { var text = data.response; kango.console.log(text); } else { // something went wrong kango.console.log('something went wrong'); } });

Running this function in extension on firefox20 doesn't display anything.

akrylysov commented 11 years ago

Are you executing this code from background or content script?

larrybek commented 11 years ago

Im using code from background as its in instruction

larrybek commented 11 years ago

Also have problem with integrating any json or jsonp files with ajax from other servers in content script same in firefox 20 its doesnt load anything.

akrylysov commented 11 years ago

Can't reproduce. Could you please provide sample URL and data?