You need to modify manifest.json and replace 'api.flickr.com' with your domain.

- a

On Fri, Dec 4, 2009 at 4:38 PM, GregAZ <[email protected]> wrote:
> The Flickr example is a good starting point for an extension I'm
> working on.  When I replaced the Flickr URL with my own, I got a DOM
> error.  While trying to determine why, I created an XML file with the
> XML that Flickr's API returns.  I saved the popup.html file and
> reloaded the extension, but I'm getting the exact same error.
>
> The Flickr example looks like this and works:
> var req = new XMLHttpRequest();
> req.open(
>    "GET",
>    "http://api.flickr.com/services/rest/?"; +
>        "method=flickr.photos.search&" +
>        "api_key=90485e931f687a9b9c2a66bf58a3861a&" +
>        "text=hello%20world&" +
>        "safe_search=1&" +  // 1 is "safe"
>        "content_type=1&" +  // 1 is "photos only"
>        "sort=relevance&" +  // another good one is "interestingness-
> desc"
>        "per_page=20",
>    true);
> req.onload = showPhotos;
> req.send(null);
>
>
> Here's what I've modified it to, nothing else has been changed:
> var req = new XMLHttpRequest();
> req.open("GET","http://www.endlesswalls.com/Feeds/
> RecentWallpapers.xml",true);
> req.onload = showPhotos;
> req.send(null);
>
>
> If I set a breakpoint on req.send(null) and inspect req, I'm seeing
> the following error:
> INVALID_STATE_ERR: DOM Exception 11
>
> Anyone have any ideas?  Thanks.
>
> --
>
> 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.


Reply via email to