Re: Option group help for a beginner?
"Richard Cornford" <Richard@litote s.demon.co.uk> wrote in message
news:cam8at$4rb $1$8300dec7@new s.demon.co.uk.. .
[color=blue]
> As you are learning you might like to know that it is never necessary to
> compare a boolean value with a boolean value to get a boolean result, as
> you are doing in this case.[/color]
[color=blue]
> Also, the - eval - function is almost never needed in javascript, and so
> almost never used by javascript authors who know what they are doing.[/color]
[color=blue]
> eval("document. frmsubmitF.call func.checked")
>
> - is *exactly* the same, in terms of what it does, as:-
>
> document.frmsub mitF.callfunc.c hecked
>
> - except that the - eval - call is two to twenty times slower[/color]
[color=blue]
> So your - if - statement can be re-written as:-
>
> if(document.frm submitF.callfun c.checked){
>
> - and do exactly the same as it does now, but be faster, clearer and
> more reliable.
>[/color]
Thanks for the code evaluation.
My background is in VB.Net - the double check for a boolean makes sense - I
wouldn't do it in VB, but don't see these things quite so clearly in
Jscript. Thanks for the pointer and the tip on eval
[color=blue]
>
> Incidentally, asking people to write you specific explanations because
> you "don't have time to read every word of" a pre-written explanation
> that you have been referred to is not going to go down well on Usenet.
> These web page explanations get written to save us time by not having to
> re-write the same explanation of the same things over and over again.
>
> Richard.[/color]
I did skim thru the faq the first time you directed me there. As you can
see, I didn't know which paragraph you you were
refering to. My oversite. Usually, when I resort to a newsgroup post, I am
in the middle of a project, stuck, frustrated, and hoping for a solution as
quick as possible. (and usually get it)
You directed me there a second time - I skimmed thru it again and still
didn't see. Other things on my mind I guess. Again - my mistake.
"Richard Cornford" <Richard@litote s.demon.co.uk> wrote in message
news:cam8at$4rb $1$8300dec7@new s.demon.co.uk.. .
[color=blue]
> As you are learning you might like to know that it is never necessary to
> compare a boolean value with a boolean value to get a boolean result, as
> you are doing in this case.[/color]
[color=blue]
> Also, the - eval - function is almost never needed in javascript, and so
> almost never used by javascript authors who know what they are doing.[/color]
[color=blue]
> eval("document. frmsubmitF.call func.checked")
>
> - is *exactly* the same, in terms of what it does, as:-
>
> document.frmsub mitF.callfunc.c hecked
>
> - except that the - eval - call is two to twenty times slower[/color]
[color=blue]
> So your - if - statement can be re-written as:-
>
> if(document.frm submitF.callfun c.checked){
>
> - and do exactly the same as it does now, but be faster, clearer and
> more reliable.
>[/color]
Thanks for the code evaluation.
My background is in VB.Net - the double check for a boolean makes sense - I
wouldn't do it in VB, but don't see these things quite so clearly in
Jscript. Thanks for the pointer and the tip on eval
[color=blue]
>
> Incidentally, asking people to write you specific explanations because
> you "don't have time to read every word of" a pre-written explanation
> that you have been referred to is not going to go down well on Usenet.
> These web page explanations get written to save us time by not having to
> re-write the same explanation of the same things over and over again.
>
> Richard.[/color]
I did skim thru the faq the first time you directed me there. As you can
see, I didn't know which paragraph you you were
refering to. My oversite. Usually, when I resort to a newsgroup post, I am
in the middle of a project, stuck, frustrated, and hoping for a solution as
quick as possible. (and usually get it)
You directed me there a second time - I skimmed thru it again and still
didn't see. Other things on my mind I guess. Again - my mistake.
Comment