• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mouse focus

 
sinasi susam
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic