dcsimg
question about text box
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zheng_yu
Posted On:   Tuesday, September 25, 2001 07:42 PM

I have a text box in browser . Its Html code is like : because the only input device is touch panel , so i create some keypads( Like japanese , english , chinese etc. )to simulate keyboard input .Javascript code is like function keypress(txt) { document.form1.textfield.value += txt ; } i have 2 question : 1 when i use keyboard , the text in that text field is autoscroll( you always can see what you input ) . But when i use my keypad , when text length exceed text box length , it doesnt scroll( without those arrow key or home/end ,you can not see the end of text ) . why and how can i make it autoscroll 2 Because i    More>>


I have a text box in browser . Its Html code is like :




because the only input device is touch panel , so i create some keypads( Like japanese , english , chinese etc. )to simulate keyboard input .Javascript code is like


function keypress(txt) {
document.form1.textfield.value += txt ;
}


i have 2 question :


1 when i use keyboard , the text in that text field is autoscroll( you always can see what you input ) . But when i use my keypad , when text length exceed text box length , it doesnt scroll( without those arrow key or home/end ,you can not see the end of text ) . why and how can i make it autoscroll


2 Because i have set this text box's max length . when i use my keypad , it seems this max length does not take effect . Should i add some length control logic in my javascript function ?


Thanks in advance


ZY

   <<Less
About | Sitemap | Contact