The makeRequest() API function can get to your server from your gadget. It also gives you some help with handling XML, see http://code.google.com/apis/gadgets/docs/remote-content.html#Fetch_XML for an example. Be sure to look at the last section on "Refreshing the Cache" since it will affect how fresh your data is.
Rob Russell Google Developer Relations On Thu, Oct 21, 2010 at 6:37 PM, Peppi <[email protected]> wrote: > Hi, > > I am building a Google Gadget that is given a URL to an XML file. This > file contains links to images that will be shown in a slideshow > format. After a certain amount of time, I check to see if the XML file > has changed. If it has, then I need to parse the XML and download the > images again. I think the best way to check if the XML file has been > changed, is to check the last modification date. I know that in order > to get this information, I need to implement a server-side solution > that can be called by my gadget. > > The dilemma is this...my gadget code is hosted on Google Code. My > gadget is embedded inside of a web application with a domain of > mycompany.appspot.com. So even if I build server-side functionality > into mycompany.appspot.com to get the last modified date, will my > gadget be able to call it or will I run into cross-domain issues? And > if I do, then what other solution is there to check if the file has > changed? > > 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]<google-gadgets-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/Google-Gadgets-API?hl=en. > > -- 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.
