Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] IE/win click detection, not on text
- From: dlovering at gazos.com (dlovering@xxxxxxxxx)
- Subject: [Javascript] IE/win click detection, not on text
- Date: Sat Jun 25 00:06:16 2005
I frequently build cross-platform applications which require "button" functionality. Give all the variability between NS, IE, and the other 17 flavors of browser out there with respect to buttons, I basicly gave up. The solution I favor is to use an image box (<img>), insert the "onclick" event handlers, labels, border-color, and background (which can be a picture), and hey presto! A cross-platform button without any nasty baggage. Looks great, infinitely tweakable, and doesn't have funky "radius-of-curvature" issues at the corners. Besides, I gather from the W3C bulletins that "button" is deprecated. Try it, you'll like it. -- Dave Lovering Quoting Mike Dougherty <mdougherty@xxxxxxx>: > I'm having a click problem on buttons - it seems like you have to > click on the button label. If (as my boss does repeatedly) you click > on the border/edge surrounding the text, that the focus does not jump > to the button and successive clicks [including those on the label > themselves] does not fire the click event. The 'fix' is to click a > different control to accept focus again, and be more careful about > clicking the label on the button. > > I will be spending more time researching this phenomenon, unless > someone can explain what is happening/why and how to fix it. > > > On Fri, 24 Jun 2005 13:40:14 -0400 > Roger Roelofs <rer@xxxxxxxxxxxxxxx> wrote: >> Thanks for the suggestion about setting the span widths. I have set >> the spans to 'display: block; in the test case available at >> <http:// zeus.datacompusa.com/~rer/ietest/>, but it doesn't help >> because the event still doesn't fire until the mouse touches the >> text (except for the first row in the table). >> >> Any other thoughts? >> >> >> Roger >> ------------------------------------------------------- >> Roger Roelofs web www.datacompusa.com >> Datacomp Appraisal Services Email rer at datacompusa.com >> 3215 Eaglecrest Drive, NE >> Grand Rapids, MI 49525-4593 >> >> >> _______________________________________________ >> Javascript mailing list >> Javascript@xxxxxxxxxx >> https://lists.LaTech.edu/mailman/listinfo/javascript >> >> >> >> __________________________________________________________ >> This message was scanned by ATX >> 2:07:12 PM ET - 6/24/2005 > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript >
- Follow-Ups:
- [Javascript] How to add a record to a Json data object?
- From: Roland Dong
- [Javascript] How to add a record to a Json data object?
- References:
- [Javascript] IE/win click detection, not on text
- From: Mike Dougherty
- [Javascript] IE/win click detection, not on text
- Prev by Date: [Javascript] Resize all images dynamically.
- Next by Date: [Javascript] How to add a record to a Json data object?
- Previous by thread: [Javascript] IE/win click detection, not on text
- Next by thread: [Javascript] How to add a record to a Json data object?
- Index(es):