I tried the following.
The alert works fine with www.google.com and other URLs that I tested
with but I can't seem to retrieve content from calendar.google.com
(change URL below to calendar.google.com to check).
I don't understand why since if I got to calendar.google.com it
displays fine.
<Content type="html">
<![CDATA[
<div id=output__MODULE_ID__></div>
<script>
function displayCalendar__MODULE_ID__(myfunc) {
_IG_FetchContent('http://calendar.google.com/', function
(responseText) {
alert(responseText);
myfunc(responseText.substr(0,400));
});
}
function getCalendar__MODULE_ID__() {
var divobj = _gel('output__' + __MODULE_ID__);
displayCalendar__MODULE_ID__(function(s) { divobj.innerHTML = s; });
}
getCalendar__MODULE_ID__();
</script>
]]>
</Content>