jrksimha

Hi,

I don't know whether this is a silly doubt.but iam confused out of it :(

When we close a gadget by clicking cross button on iframe window of the gadget.is the gadget is permenently gets deleted from live.com page or not.

we have created a gadget which dynamically refreshes some text from a feed and write dwins into some page file in our local system(we are doing it for testing purpose).but even after we close the iframe of the gadget in live.com, after the time interval the text is getting written in to file.

so is the gadget will not get deleted from iframe when we click on cross button in iframe.if is it so how can i avoid it.

Please help in resolving it.

Regards

Krishna




Re: Web Gadget Development Doubt Regarding Iframe of Gadgtes in live.com page

ToddOs

If you're developing off of localhost, did you perhaps set the inline flag in your manifest It sounds like you created a timer that you didn't clear on dispose(). If the iframe itself is removed, as it should be, I would expect the timer to die with it. However if you were running your gadget inline, removing the gadget without clearing the timer in dispose() would leave the timer intact and could cause the behavior you're seeing. In this case, you want to use setInterval and clearInterval rather than setTimeout. With setInterval, you can clear the interval even before it's fired. With setTimeout, there's no way to stop it from firing short of closing the page (iframe).



Re: Web Gadget Development Doubt Regarding Iframe of Gadgtes in live.com page

jrksimha

Thanks ToddOs for your quick reply.but we have observed that

We are developing the application in localhost only,we did not set inline renedering to true.

Yes we are using a setinterval function to invoke a function which update latest data.we are calling ClearInterval in dispose.but we observed that the code in dispose is getting calledonly after the whole browser page is removed not the gadgets iframe.

Can you ,Please suggest how can it be overcome.

Regards

krishna






Re: Web Gadget Development Doubt Regarding Iframe of Gadgtes in live.com page

jrksimha

Is the setting of render-inline=true in binding options have any effect on dispose function.because when we set that option in xml file of the gadget.we are obeserving that dispose is getting called when we put this option.

we are developing gadget from localhost only.

Regards

krishna