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>