Is the problem just that alert() isn't working in the extension?

--Chris


On Fri, Sep 11, 2009 at 2:09 AM, GOTTMODUS <kerst...@gmail.com> wrote:

>
> Hi,
>
> I have a problem with the XMLHttpRequest in my extension. I want to
> receive a file but nothing happens.
> Can someone please help me with that? Or is it just not implementet
> yet?
>
> My Build:
> 4.0.207.0 (Ubuntu build 25615)
>
> Here is my code:
>
> JavaScript:
> var xhr = new XMLHttpRequest();
>
> xhr.open('GET', 'http://google.de/', true);
>
> xhr.onreadystatechange = function () {
>        if (xhr.readyState==4) {
>                alert(xhr.responseText);
>        }
> }
>
> xhr.send(null);
>
> manifest.json:
> {
>        "name": "My First Extension",
>        "version": "1.0",
>        "description": "The first extension that I made.",
>        "toolstrips": [
>                "my_toolstrip.html"
>        ],
>        "content_scripts": [{
>                "matches": ["http://www.heise.de/*";],
>                "js": ["myscript.js"]
>        }],
>        "permissions": [
>                "http://*/";
>        ]
> }
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to