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:cgmckeever (cgmc@gmail.com)
Date:07/25/2007 08:16:48 PM
List:com.googlegroups.google-gadgets-api

umm - so after you recovered from your head smack -- what was the issue?

On Jul 25, 8:46 pm, "Peter Svensson" <psve@gmail.com> wrote:

<smacks head> Sorry for misleading you! Cheers, PS

On 7/26/07, cgmckeever <cgmc@gmail.com> wrote:

it should work - have a look here (load it into IG if you want -- it is no longer a supported version) http://r2unit.com/gmodule/old/gcal.xml.3.21

function sndBMKReq__MODULE_ID__(ro,URL) { ro.open('GET',URL,true); ro.onreadystatechange = function (){ if (ro.readyState == 4) { parseBMK__MODULE_ID__(ro.responseText); } } ro.send(null); }

where ro is the requestObject based on browser and URL was:

var bmkURL = proto__MODULE_ID__ + "://" + domain__MODULE_ID__ + "/ bookmarks/lookup?q=label%3A" + feed_bmk__MODULE_ID__ + "&sort=title&" + rightNowTS__MODULE_ID__;

it worked --

On Jul 25, 2:16 pm, slishnevsky <slis@gmail.com> wrote:

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>