stumped on jquery call inside chrome extension
Posted
by phil swenson
on Stack Overflow
See other posts from Stack Overflow
or by phil swenson
Published on 2010-04-20T13:29:38Z
Indexed on
2010/04/20
13:33 UTC
Read the original article
Hit count: 241
jQuery
|google-chrome-extension
In my chrome extension I call this:
jsonPost = {
email:"[email protected]",
password:"demo",
content: $('#selected_text').val(),
notification_type: $('#notification_type').val(),
name:$('#notification_name').val()
}
$.post('http://localhost:3000/api/create.json', jsonPost,
function (data) {
console.log("type of data = " + typeof(data));
console.log("data in function = " + data);
}
The data makes it to the server. But the response is lost, in the console ---type of data = String ---data in function =
So for some reason I am not getting the response back. Works from the browser. I even tried doing a get against cnn.com and got no response.
any ideas?
thanks
© Stack Overflow or respective owner