Did you add http://www.google.com/* to the list of permissions in the manifest?
http://code.google.com/chrome/extensions/manifest.html#permissions - a On Thu, Nov 26, 2009 at 11:15 AM, Pablo Fernandez <[email protected]> wrote: > 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. > > > -- 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.
