473,589 Members | 2,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.focus cannot function

24 New Member
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 1444
kovik
1,044 Recognized Expert Top Contributor
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 New Member
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 Recognized Expert Moderator Expert
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 New Member
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 Recognized Expert Moderator MVP
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

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

Similar topics

2
4555
by: TSK | last post by:
I cannot get my focus() fn to work in my validateInput(userInput) fn. It will not allow the user to go back and correct invalid input like it should. Instead it goes right on through with the invalid input. I used this same function in another program similar to this one and it worked just fine, but it's not working in this one. Why? My code is included below. Your help will be greatly appreciated. <html> <head> <title>Syster...
2
16881
by: N/A | last post by:
Hey all, If I open a popup like this window.open('http://www.google.com', 'popup', 'width = 618, height = 425, directories = no, location = no, menubar = no, resizable = no, scrollbars = yes, status = no, toolbar = no'); Then I know that there is a window object in the windows collection called 'popup'. So how can I make that window come to the front? Looking for
14
4525
by: Mark | last post by:
Hi, At the top of my php file I have got :- <body onblur="self.focus();"> so when I click off onto another window, my window comes back up in front which is perfect. The problem however, is that when I try to type into my form boxes, the key transfers are all being lost (i.e. keyboard is disabled)!
1
4989
by: Adi | last post by:
I'm trying to do default focus on checkbox,its work fine but the problem is that the user cannot know where is the focus (there isn't visual sign and on the other hand if you press on the tab button there is a visual sign).
2
2735
by: Robin Tucker | last post by:
Hiya, I'm giving my vertical scrollbar the focus so it can handle mousewheel events. When I give it the focus with ScrollBar.Focus(), it starts flashing (at least the drag bar does). Is there any way to stop this from happening? Its quite distracting. Thanks.
2
3407
dlite922
by: dlite922 | last post by:
Before traversing my code, here's what my goal is and what this function does: I have a table of fields that dynamically grows as the user enters information. A minimum of 3 rows must always exist. (read the psedo code and comment if you need to know what it does) disregard the debugging , commented alerts. What i'm trying to do is without passing the ID or field that called this function, set the focus to the next element. what's...
2
1666
by: sreemati | last post by:
Hi One of the web form has 3 dates fields: Date of form entry, date of diagnosis and date of death. Date of form entry has future date validation done which I thought of extending to the other two date fields. Code being used already: function checkFutureDate(day, month, year, formName)
0
8228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5729
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2372
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1459
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1196
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.