This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Text box

 
sandhya prasanth
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a text box to display a value in JSP. The text box is alligned using CSS.
I am not able to place my cursor easily Text box. The text box max length is given as 25. But the text box cursor is appearing only whne i click in the text box till letter 10 position.
pls let me know some suggestions on this.
 
Bryce Martin
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to set focus for the text box onLoad. Probably do it for the <body> .onLoad. You can only go as far in the text box as you have data. If the text box is size 25 but only has 10 letters in it, you will only be able to go to the 10th letter with the cursor. try entering the entire alphabet from a-z. You should get to 'y' before it stops putting letters in the box.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are saying you can not focus the textbox manually unless you click after the 10th character?

If that is the case, it sounds like you just found a quirk with your browser and OS. I have never heard of that before. Can you reproduce this with other machines.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pls let me know some suggestions on this.[/QB]

Please use real words when posting to the forums. Abbreviations such as "pls" in place of "please" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic