471,852 Members | 1,077 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

.focus cannot function

24
i have 1 textbox... and 1 combobox.
i want to set after i change the value of combobox, it will reload the page,
after reload the page, it will check see whether the combobox is blank, if it not a blank, the cursor will focus in next textbox.

previously, i had done this. but after i change/design my page into frame form. it will occur the cursor lose(don't know focus where). the page i have no modify at all.

after i face this problem, i try to type the key TAB...the cursor appear again and focus the textbox. why will like that ..??? mayb i can say...i'm sure that my coding is no problem. becos not all pc will face this problem. (e.g. the pc i using to delevep is no problem, some of other pc that operate will face this prblem)

i'm using internet 7.0 / 6.0. win xp pro.

can anyone tell me why...??
thanks...
Jul 30 '07 #1
5 1343
kovik
1,044 Expert 1GB
i have 1 textbox... and 1 combobox.
i want to set after i change the value of combobox, it will reload the page,
after reload the page, it will check see whether the combobox is blank, if it not a blank, the cursor will focus in next textbox.
I think you are after the onChange event.
Jul 30 '07 #2
Nicolas
24
I think you are after the onChange event.
thanks for reply,
ya i'm using onChange event to reload the page. but my problem is, when i reload the page...i can't get the focus in textbox.
Jul 31 '07 #3
gits
5,390 Expert Mod 4TB
hi ...

do you reload the entire page? or only one (i)frame? when do you try to set the focus? in the onload of the framesource? or from outside the frame?

kind regards
Jul 31 '07 #4
Nicolas
24
hi ...

do you reload the entire page? or only one (i)frame? when do you try to set the focus? in the onload of the framesource? or from outside the frame?

kind regards
hi,
only 1 frame. when the frame reload...
the frame are reload it self...
Aug 17 '07 #5
acoder
16,027 Expert Mod 8TB
hi,
only 1 frame. when the frame reload...
the frame are reload it self...
Post some code. In the onload event, put the focus on the textbox.
Aug 17 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by TSK | last post: by
2 posts views Thread by N/A | last post: by
1 post views Thread by Adi | last post: by
2 posts views Thread by Robin Tucker | last post: by
2 posts views Thread by sreemati | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.