10 messages in com.googlegroups.google-gadgets-apiRe: Is it possible to write a gadget ...
FromSent OnAttachments
slishnevsky20 Jul 2007 09:52 
slishnevsky24 Jul 2007 16:10 
cgmckeever25 Jul 2007 06:56 
slishnevsky25 Jul 2007 12:16 
Peter Svensson25 Jul 2007 12:59 
slishnevsky25 Jul 2007 14:07 
cgmckeever25 Jul 2007 18:19 
Peter Svensson25 Jul 2007 18:46 
cgmckeever25 Jul 2007 20:16 
Peter Svensson25 Jul 2007 23:11 
Subject:Re: Is it possible to write a gadget that reads gmail or google bookmarks rss feeds?
From:slishnevsky (slis@gmail.com)
Date:07/25/2007 12:16:23 PM
List:com.googlegroups.google-gadgets-api

Unfortunately, this approach doesn't work (at least in Mozilla Firefox).

I get [Error: uncaught exception: Permission denied to call method XMLHttpRequest.open]

I can't figure exactly why I am getting this message, this error should pop up in case of cross domain calls, but the gadget and the bookmarks feed both are on the same domain "www.google.com".

Here is the code, just in case:

<?xml version="1.0" encoding="utf-8" ?> <Module> <ModulePrefs title="Bookmarks" /> <Content type="html"> <![CDATA[

<div id="bookmarks__MODULE_ID__">Loading...</div>

<script>

function init__MODULE_ID__() { var xmlhttp = (window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest(); xmlhttp.open("GET", "https://www.google.com/bookmarks/lookup? output=rss&sort=title&num=1000", true); xmlhttp.send(""); xmlhttp.onreadystatechange = function() { if(xmlhttp.readyState == 4) if (xmlhttp.status == 200) bookmarks__MODULE_ID__.innerHTML = xmlhttp.responseText; }; }

_IG_RegisterOnloadHandler(init__MODULE_ID__);

</script> ]]> </Content> </Module>