Thomas 'PointedEars' Lahn wrote:
> Richard Cornford wrote:
>> Thomas 'PointedEars' Lahn wrote:
>>> Richard Cornford wrote:
>>>> Ranbir Kaur wrote:
>>>> <snip>
>>>>> if (document.getElementById) {
>>>>> eval("document.getElementById(id).style.visibility = \"" +
>>>>> W3Ctype + "\"");
>>>> <snip>
>>>> This has got be the most futile use of - eval - posted
>>>> in a long time:-
>>>>
>>>> document.getElementById(id).style.visibility = W3Ctype;
>>>
>>> Not this way, see http://www.pointedears.de/scripts/test/whatami
>>> Instead write:
>> <snip>
>>
>> This has nothing to do with the futility of the - eval -
>> formulation used. If you want to talk about the code design
>> it would make most sense to post a response to individual who
>> designed it, not me.
>
> I commented on your inappropriate correction.
Are you proposing that I did not post the code for the equivalent
operations without the eval?
In any event, my post was not a correction it was an observation of
manifest futility. And frankly, referring me to your pathetic page on
feature detection, or posting your clunky and pedestrian feature
detection example, looks like trying to teach your grandmother to suck
eggs.
Richard.