Hi:
Currently I am having a problem with my webpage. My page consist of
two frames, one consist of input text field and the other contains
link for different pop-up windows. The problem follows:
1. At the beginning, focus is placed on an input text field of the
first frame (so there's a blinking cursor on such field).
2. Then users click on a link of the second frame (thus focus is set
on the clicked link) and a second window popup.
3. Right after users performed their operations on the pop-up window,
they will close the window and will like to have focus brought back to
the previously focused text field of the first field (Notice: After
users close the pop-up window, the previously focused text input still
have a blinking cursor and you may type on the field. However, if you
tab out, you would fine that the focus is on the clicked link of the
second frame. That means the focus is not on the first frame's text
field and if such text field contains an onchange function, such
function will not be activated as users tab out).
My problem is as users click on the link of the second frame, the
focus is placed on the selected link and a window pops up. How can I
have the focus placed back on the first frame's text field after
closing the pop-up so that I can enter data and tab out to activate
the onchange function of such text field. Having a blinking cursor of
such text field while not really having the focus on such field seems
confusing to users.
Thanks very much for every bit of help.
Dai 3 2627
In article <64************ **************@ posting.google. com>, da**********@ho tmail.com enlightened us with... My problem is as users click on the link of the second frame, the focus is placed on the selected link and a window pops up. How can I have the focus placed back on the first frame's text field after closing the pop-up so that I can enter data and tab out to activate the onchange function of such text field. Having a blinking cursor of such text field while not really having the focus on such field seems confusing to users.
Have a global function in the frame that sets a variable to an element
each time one gets focus. This keeps track of where the user is. In the
onFocus of the window, set cursor focus to that element. Don't forget to
test it for null or set to a default for the first load before the user
has actually focused anything.
Note that i do not recommend this for internet use. Intranet and CD
would be fine.
--
--
~kaeli~
Going to church doesn't make you a Christian any more than
standing in a garage makes you a car. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
kaeli <ti******@NOSPA M.comcast.net> wrote in message news:<MP******* *************** **@nntp.lucent. com>... In article <64************ **************@ posting.google. com>, da**********@ho tmail.com enlightened us with... My problem is as users click on the link of the second frame, the focus is placed on the selected link and a window pops up. How can I have the focus placed back on the first frame's text field after closing the pop-up so that I can enter data and tab out to activate the onchange function of such text field. Having a blinking cursor of such text field while not really having the focus on such field seems confusing to users.
Have a global function in the frame that sets a variable to an element each time one gets focus. This keeps track of where the user is. In the onFocus of the window, set cursor focus to that element. Don't forget to test it for null or set to a default for the first load before the user has actually focused anything.
Note that i do not recommend this for internet use. Intranet and CD would be fine.
--
Thanks Kaeli, but I wonder other than setting a global variable to
remember the last focused field and automatically set back the focus,
is there any way for users to click on a link of another frame and
then after such link brings up a pop-up and close the window, the
focus can be brought back the original frame. Is there such innate
Javascript function since somehow the original frame's text field
continue to have a blinking cursor throughout the process, I wonder if
there's any function to have the focus stay on the field instead of
sending the focus to link of the second frame when it is clicked.
Thanks for all the time and help!
In article <64************ **************@ posting.google. com>, da**********@ho tmail.com enlightened us with... Thanks Kaeli, but I wonder other than setting a global variable to remember the last focused field and automatically set back the focus, is there any way for users to click on a link of another frame and then after such link brings up a pop-up and close the window, the focus can be brought back the original frame. Is there such innate Javascript function since somehow the original frame's text field continue to have a blinking cursor throughout the process, I wonder if there's any function to have the focus stay on the field instead of sending the focus to link of the second frame when it is clicked.
Thanks for all the time and help!
Okay, if I understand you, you want to focus the frame.
So, sure, assuming you know the name of the frame you want focused.
self.parent.fra mes['framename'].focus();
should work from any of the frames in the set.
If you want to do it from the popup, do
self.opener.par ent.frames['framename'].focus();
Both assume a simple frameset that doesn't have a frameset within a
frameset type setup. If you have a complex frameset, replace 'parent'
with 'top'. Warning: using 'top' will break if a foreign frameset puts
your frames inside it.
HTH
--
--
~kaeli~
A midget fortune teller who escapes from prison is a small
medium at large. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: duikboot |
last post by:
Hi all,
I'm trying to export a view tables from a Oracle database to a Mysql
database. I create insert statements (they look alright), but it all goes
wrong when I try to execute them in Mysql, because the dates must have
quotes on each side.
I just don't know how make the dates right.
Well I'll just show you the code and some insert statements it generates.
Could anyone please help me?
|
by: Lodewijk van Haringhal |
last post by:
I'am new with javascritping not with programming. Is there nobody who can
help me with ths simple promblem? :) Please, please give me a hint.
Please help me with this script. I have two lists in my form. One to choose
a directory and one to choose a picture. The script bellow works perfect
without the directory choose function.
I tried to make the directory choose function myself but I did not succeed.
I think I made a mistake here:...
|
by: James Walker |
last post by:
Can some one help I get an error of 'checkIndate' is null or not an object
can someone please help. I can't work out why
Thanks in advance
James
<form>
<td height="24" colspan="7" valign="top"><form name="booknow"><select
|
by: Kurt Watson |
last post by:
I’m having a different kind of problem with Hotmail when I sign in it
says, "Web Browser Software Limitations
Your Current Software Will Limit Your Ability to Use Hotmail
You are using a web browser that Hotmail does not support. If you
continue to use your current browser software we cannot guarantee that
Hotmail will work correctly for you".
Please help, this is very annoying. I have been searching for help on
|
by: x muzuo |
last post by:
Hi guys,
I have got a prob of javascript form validation which just doesnt work
with my ASP code. Can any one help me out please.
Here is the code:
{////<<head>
<title>IIBO Submit Page</title>
</head>
<style type="text/css">
| |
by: tyler_durden |
last post by:
thanks a lot for all your help..I'm really appreciated...
with all the help I've been getting in forums I've been able to continue
my program and it's almost done, but I'm having a big problem that I
believe if it's solved, the remaining stuff is easy...
my full program until now is here:
http://www.geocities.com/tom4_h4wk/progmail.zip
the problem is the segmentation fault when main trys to run
leficheiro.c.... the *.c2 files are the...
|
by: Jason |
last post by:
Hi,
I was wondering if any could point me to an example or give me ideas on how
to dynamically create a form based on a database table? So, I would have a
table designed to tell my application to create certain textboxes, labels,
and combo boxes? Any ideas would be appreciated.
Thanks
|
by: sd00 |
last post by:
Hi all, can someone give me some coding help with a problem that
*should* be really simple, yet I'm struggling with.
I need the difference between 2 times (Target / Actual)
However, these times will fall somewhere between a Start & End time
Further more, there will be Break & Lunch times between Start & End.
Example...
Start 08:00
Break start 10:30
|
by: jenipriya |
last post by:
Hi all... its very urgent.. please........i m a beginner in oracle.... Anyone please help me wit dese codes i hv tried... and correct the errors...
The table structures i hav
Employee (EmpID, EmpName,DeptID,DateOfJoin, Sal, Addr)
Finance (EmpID, Sal)
Club (Clubname, EmpID, Fee, DateOfJoin)
Leave (EmpID, Date)
Department (DeptID, DeptName, NoOfEmployees)...
|
by: tabani |
last post by:
I wrote the program and its not giving me correct answer can any one help me with that please and specify my mistake please it will be highly appreciable...
The error arrives from option 'a' it asks for user name, check in the system but does not return the correct answer please help me with it.
or if you have better way of doing it would you please mind to tell me..
thanks..
#!/usr/bin/perl -w
#use Getopt::Std;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |