It sounds like you want to trigger code to run at a certain time
interval after the gadget is opened.  Firing off setInterval on a
function [setInterval(string Script, integer Duration)] from the
view's onopen event is probably what you are looking for.

in main.xml:

<view onopen="onOpen();"> ...


in main.js:

onOpen () {
...

view.setInterval(myFunction(), 60000);

}

Geoff

On Sat, Oct 11, 2008 at 4:36 AM, Benjamin [API Guru]
<[EMAIL PROTECTED]> wrote:
>
> Hello and welcome to developing gadgets,
>
> You can create an interval for periodic requests in the onopen event
> of your view.
> Keep in mind that your gadget might not be the only one running so you
> should minimize your impact on the users system.
>
> Benjamin
>
> On Oct 10, 7:59 pm, Coeluh <[EMAIL PROTECTED]> wrote:
>> Hi there,
>>
>> Im new to this, but not so new at programming. My question is: I've
>> some javascript loop here, where can I put it to keep on looping?
>> Onopen?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" 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-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to