Hey guys,

I am trying to create an Egyptian Proverbs gadget. I want my gadget to
display a different proverb every 5 secs ( just trying stuff). The
point is that it only works on my account. All the people I gave them
the url to the gadget said that it stayed blank all the time. Can
anyone explain to me what's wrong with my gadget ?

Here is my code:

<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="&#x623;&#x645;&#x62B;&#x627;&#x644;
&#x634;&#x639;&#x628;&#x64A;&#x629;" />
<Content type="html"><![CDATA[
<script type="text/javascript">

var debug_html = "";
var debug = false;
function init()
{
var params = {};
params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.TEXT;
params[gadgets.io.RequestParameters.REFRESH_INTERVAL] = 5;

var url = "http://demos.open-craft.com/gadgets/";;
gadgets.io.makeRequest(url,callbackFunc , params);
}

function callbackFunc(data)
{
print("data = " + data );
print("data.text = " + data.text );

document.getElementById("mainContainer").innerHTML = data.text;
print("End of callback<br>");
}

function start()
{
init() ;
handle=setInterval("init()",5000);
}

_IG_RegisterOnloadHandler(start);

function print(msg) {
if (debug) {
debug_html += msg;
// Write debug HTML to div
document.getElementById("debug_div").innerHTML = debug_html;
}
}

</script>
<div id="mainContainer"></div>
<div id="debug_div"></div>

]]></Content>
</Module>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to