Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Are icons and other clickable objects easily recognised in programming terms as being
Closed Thread
Old 06-23-2005, 09:13 AM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2005

Posts: 5

stevenhales

Default Are icons and other clickable objects easily recognised in programming terms as being

Are icons and other clickable objects easily recognised in programming terms as being clickable?

For instance when you use Internet explorer, firefox, etc.. etc.. and then press the TAB button on your keyboard, the buttons/fields on the webpage are highlighted or selected. This therefore makes me think that everything clickable or selectable is given a unique tag with which to find easily. Where does your TAB button get this information from - so to speak???

On a seperate topic, does anyone know how you could compare the position of a mouse pointer with that of clickable objects on the screen? I imagine that the pointing software creates a grid behind the scenes and the mouse pointer has certain co-ordinates on that grid. And I guess the HTML of a webpage could be interogated for the position of certain objects. Any thoughts as to how these could be compared?

-
Ste
stevenhales is offline  
Old 06-23-2005, 10:09 AM   #2 (permalink)
 
Ultra Techie

Join Date: Sep 2003

Location: Bamberg, Germany

Posts: 549

Iron_Cross

Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

With JavaScript you can mess with mouse coordinates. The top left corner of your screen is Y=0 X=0 as you move further to the right X increases as you move further down the page Y increases.

As for the TAB thing...It's determined by the tabindex attribute I believe if you put a -1 as the argument it means the tab will not stop on that object. It starts at 0 and continues all the way for as long as you have numbers.
Code:
[img]/someImage.jpg[/img]

__________________

See today\'s Penny-Arcade!(May contain foul lanuage)
Pain is weakness leaving the body.

PM Me for my MSN
Iron_Cross is offline  
Old 06-23-2005, 10:21 AM   #3 (permalink)
 
Newb Techie

Join Date: Mar 2005

Posts: 5

stevenhales

Default

I see, and is the tab index compulsary in HTML? Because if this was used as an index, every single object would need to be included that appears on the screen.
stevenhales is offline  
Old 06-23-2005, 11:36 AM   #4 (permalink)
 
Ultra Techie

Join Date: Sep 2003

Location: Bamberg, Germany

Posts: 549

Iron_Cross

Send a message via ICQ to Iron_Cross Send a message via MSN to Iron_Cross Send a message via Yahoo to Iron_Cross
Default

edit
__________________

See today\'s Penny-Arcade!(May contain foul lanuage)
Pain is weakness leaving the body.

PM Me for my MSN
Iron_Cross is offline  
Old 06-23-2005, 11:45 AM   #5 (permalink)
 
Super Techie

Join Date: Feb 2005

Posts: 262

jinexile

Default

No the tab index is not compulsory, but if you do not define it you are leaving the webbrowser to assume what it is and not every browser will guess the same.
__________________
AMD Athlon 64 3000+ (Overclocked to 3300+)
ASUS K8V-Deluxe
1GB PC3200 DDR
2x200GB Seagate SATA RAID 0
BFG 6800GT OC w\\128MB Ram
2x 19\" Samsung 930B LCDs
jinexile is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On