ok. I just made the changes in my code.
Thanks for your prompt help Teo.
Cheers

On Oct 3, 1:16 pm, Teo <[EMAIL PROTECTED]> wrote:
> Yes,
>
> noAnswerTimer = setTimeout("serverTimedOut();", 40000);
> is the recommended way :)
>
> Thanks,
> Teo
>
>
>
> On Fri, Oct 3, 2008 at 4:16 PM, Austin <[EMAIL PROTECTED]> wrote:
>
> > Thanks Teo
> > So, on that last example, you are saying to include a semicolon after
> > the function name?:
> > noAnswerTimer = setTimeout("serverTimedOut();", 40000);
> > I hadn't seen it like it that. I've been making all my timers like
> > this:
> > noAnswerTimer = setTimeout("serverTimedOut()", 40000);
> > And, in my testing anyway, the timers fire using either method (from
> > my previous post). I'm asking what is the more general accepted method
> > for the syntax- not about the timer itself. This particular line is
> > from my gadget currently released. (OT- it hit a 1000 users
> > yesterday.<grin>)
>
> > On Oct 3, 5:49 am, Teo <[EMAIL PROTECTED]> wrote:
> > > Hi, i've replied inline:
>
> > > On Fri, Oct 3, 2008 at 7:45 AM, Austin <[EMAIL PROTECTED]> wrote:
>
> > > > In the code of an XML view, should the semicolon be included when
> > > > calling a function? For example:
> > > > onopen="view_onOpen();"
> > > > vs.
> > > > onopen="view_onOpen()"
> > > > I've seen both, and changing this doesn't seem to effect anything when
> > > > calling a function from an XML event.
>
> > > Yes, you can leave it out, but it isn't recommended. Although they're
> > > extremely rare you can get some weird bugs and it will be hard to figure
> > out
> > > where they come from :) (i had one a while ago)
>
> > > > Although I have noticed it
> > > > doesn't work if you omit the semicolon when calling a string from a
> > > > language file such as:
> > > > &strText;
> > > > vs.
> > > > &strText
>
> > > No, you have to put them there to somehow delimit the string identifier.
>
> > > > Another item: I understand the difference between setTimeout and
> > > > setInterval Timers. However, I'm again asking about correct syntax
> > > > because it seems to work either way.
> > > > noAnswerTimer = setTimeout("serverTimedOut()", 40000);
> > > > vs.
> > > > noAnswerTimer = setTimeout(serverTimedOut, 40000);
>
> > > The way you first wrote it should work (you should put a semicolon too
> > :).
> > > Are you sure:
> > > - there is a function named serverTimedOut ?
> > > - you're waiting 40 seconds to see the effect ?
>
> > > Thanks,
> > > Teo
>
> > > --
> > > Teo (a.k.a. Teodor Filimon, Teominator)
> > > Site -www.teodorfilimon.com|Blog -www.teodorfilimon.blogspot.com
> > > GMT +2 (or PDT +10)
>
> --
> Teo (a.k.a. Teodor Filimon, Teominator)
> Site -www.teodorfilimon.com| Blog -www.teodorfilimon.blogspot.com
> GMT +2 (or PDT +10)
--~--~---------~--~----~------------~-------~--~----~
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