Hi,

I've got this piece of code in the background page

function(request, sender, sendResponse) {
                var xhr = new XMLHttpRequest();
                xhr.open("GET", "http://www.google.com";, true);
                xhr.send();
                xhr.onreadystatechange = function() {
                  if (xhr.readyState == xhr.DONE) {
                                sendResponse({"response":xhr.responseText})
                  }
                }
        });

But xhr.responseText comes empty ("")

Any idea why?

Thanks a lot

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to