I have a gadget that reads a RSS xml file, I am using the function
_IG_FetchXmlContent to read the file in order to use the
refreshInterval property.
When processing the response I have the validation that if the
response is null or its first child then display an error message.
if (response === null || typeof(response) != "object" ||
response.firstChild === null) {
// Something happened, display error message
this.generateGadgetErrorContent();
// Exit the method
return;
}
The RSS xml changes dinamically, so I added a setinterval function to
check for new items every minute.
If I have the gadget loaded and then I lose the Internet connection,
the gadget goes to the case where the response object is null and
displays the error message. However, I get a syntax error, a
javascript error in the file
http://www.gmodules.com/ig/extern_js/f/CgJlbhICdXMrMCA4ACw/HKmaOGhtr1A.js.
Any idea why a syntax error happens in this particular JS file? Any
help would be really appreciated.
Thanks!!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---