Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] IE/win click detection, not on text


  • From: rer at datacompusa.com (Roger Roelofs)
  • Subject: [Javascript] IE/win click detection, not on text
  • Date: Thu Jun 23 22:13:47 2005

Flavio (and list),

On Jun 23, 2005, at 5:18 PM, Flavio Gomes wrote:

> We are lazy people, send example/test page please ^^
>
> Roger Roelofs wrote:
>
>> List,
>>
>> I know I read about this somewhere, but I'm not finding it.
>>
>> I have a web form.  The labels are display: block, so they take up  
>> the whole th that they are in.  I have a click handler on the label  
>> to bring up a help screen.  The first label in the first row of the  
>> table responds to clicks in the whole space taken up by the label  
>> element.  The rest are only clickable on the text.
>>
>> Is there a way to make ie respond to clicks over the entire label 
>> (for all rows :-) ?

I have added a diagnostic mouseover to set the background color so you 
can see at what point ie fires the event.  As you will see, ie only 
fires the event when you pass over some text.  This is bad in my case 
because I can see users clicking on the question mark and wondering why 
nothing happens.

Any ideas?

Thanks!
Roger,

Roger Roelofs
Datacomp Appraisal Services