• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

mouse focus

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,

I want to disable focusing by mouse to form elements.As you know clicking to any field in the page, the cursor is jumping to that field which focus gained.

I want to disable focusing by mouse.
Focusing or Bluring will be only with tab_key.

i searched internet too much But i could not find anything

Do you have any idea about how to?
[ December 23, 2005: Message edited by: sinasi susam ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can try onclick (might get fired for more than the mouse) and remove focus. Not sure why you want to do this unless it is for a scanner input.

Eric
 
sinasi susam
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to do because its an application similar to ajax
(i am using applet and URL connection class.).

I want to do that.Ok letme explain,

Lets suppose that we have 2 text fields and i have a validation on server let 1. one must be required and that must not be empty string for the validations that will be in the 2. field.

I cant give an alert such "fill the first field and try again", this sounds stupid.What if there are about 20 fields ?
will i say "you filled this one but passed previous one ,fill that i will validate it then"

I want the user must not focus anything else Tab key
I want to force the user use only keyboard for bluring.TAB key.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are worried about looking stupid, hobbling your application to only allow foucs via tabbing is a good way to achieve that. How unfriendly!

Good wording in the validation messages would be the way to go.
 
sinasi susam
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok.
Mr./Mrs. Bear, I want it to be as i said if its posible.Only what i said...

If no way to do it, then i dont need any other advices.

Thx anyway.
[ December 24, 2005: Message edited by: sinasi susam ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic