To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.admin.generalOpen lugnet.admin.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Administrative / General / 5287
5286  |  5288
Subject: 
Re: Search button
Newsgroups: 
lugnet.admin.general
Date: 
Fri, 17 Mar 2000 16:57:09 GMT
Viewed: 
744 times
  
Heh heh, well both browsers are guilty of that stuff.  I'll bet they don't
even
test these cases thoroughly.  Most people are still putting submit buttons
on
their forms; heck some people still blindly put the reset button on their
forms.

Anyway, I couldn't find anything in the W3C HTML spec that says a form
should
be submitted when hitting return, so make of that what you will.

Hopefully DOM level 3 will actually tell us what the key event names should
be
so they don't have to come up with their own anymore. :)


"Todd Lehman" <lehman@javanet.com> wrote in message
news:FrKrAp.DE2@lugnet.com...
In lugnet.admin.general, Mark Koesel writes:
The problem is that the 'Enter' key works correctly in MSIE pages • containing
a single, simple edit-box HTML form, but not in pages containing • multiple
HTML forms, even if those forms are all simply edit boxes.  Thus, MSIE
actually sometimes requires an HTML form to have an actual Submit • button.

I understand your frustration, but this isn't strictly true.  You can • attach
a onkeypress event to the search boxes in IE4 and later (not easily • doable
in NS4, since they are not DOM compliant yet), which and submit the form • for
you.

Something like (and this is off the top of my head so it may need syntax
corrections):

<input type="text" onkeypress="this.form.submit();">

I'm not positive what effect (if any) this will have on Netscape • Browsers.
You may need to execute it conditionally, depending on the browser type.

Yah, M$ has nonstandard bogo-extensions for just about anything.  Probably
why they put in the bug in the first place...  :-/

--Todd



Message is in Reply To:
  Re: Search button
 
(...) Yah, M$ has nonstandard bogo-extensions for just about anything. Probably why they put in the bug in the first place... :-/ --Todd (25 years ago, 17-Mar-00, to lugnet.admin.general)

131 Messages in This Thread:
(Inline display suppressed due to large size. Click Dots below to view.)
Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR