Kathy Gill wrote:

> At 11:27 PM -0700 5/28/98, Jack Killpatrick wrote:
>
> >I found, when putting together this little snippet of code that there are
> >some obvious discrepancies between what will cause an error on
> one browser,
> >but not another. To my surprise, I found MSIE 4 to require less specific
> >code to get the job done...I had to add document. in front of
> form elements
> >for NS.
>
> No surprise here. I had students completely screw up tables on their
> mid-terms and MSIE rendered them "correctly."
>
> Now - is this a "good" thing or a "bad" thing - for the browser to look at
> your code and "interpret" what it thinks you are saying. At the
> very least,
> it makes it possible to code differently for different browsers (ie, not
> code to spec) -- which *I* think is a bad thing.

Good or bad thing, I guess it depends. In the case of the script I was
writing I thought that the neccessary code for NS was a bit redundant. The
document had one <form> in it, which I named "myform". I refered to the
elements in the form by name:

myform.first_name.value
myform.last_name.value

etc.

Worked fine in MSIE, but NS required:

document.myform.first_name.value
document.myform.last_name.value

Jack





____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to