Subject:
|
Re: Search button
|
Newsgroups:
|
lugnet.admin.general
|
Date:
|
Fri, 17 Mar 2000 16:32:49 GMT
|
Viewed:
|
756 times
|
| |
| |
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 has 1 Reply: | | Re: Search button
|
| 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 (...) (25 years ago, 17-Mar-00, to lugnet.admin.general)
|
Message is in Reply To:
| | Re: Search button
|
| "Todd Lehman" <lehman@javanet.com> wrote in message news:FrJ8B3.wu@lugnet.com... (...) containing (...) HTML (...) I understand your frustration, but this isn't strictly true. You can attach a onkeypress event to the search boxes in IE4 and later (...) (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
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|