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)

--~--~---------~--~----~------------~-------~--~----~
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