473,805 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

self.focus stopping all keyboard input to window

Hi,

At the top of my php file I have got :-

<body onblur="self.fo cus();">

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)!

Can anyone shed any light?
Thanks, Mark
Jul 23 '05 #1
14 4551
On Wed, 17 Nov 2004 20:34:41 GMT, Mark wrote:
Can anyone shed any light?


'Let there be focus'

Translation: Stop stuffing with the focus in the first place.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #2

"Andrew Thompson" <Se********@www .invalid> wrote in message
news:13******** *************** ******@40tude.n et...
On Wed, 17 Nov 2004 20:34:41 GMT, Mark wrote:
Can anyone shed any light?


'Let there be focus'

Translation: Stop stuffing with the focus in the first place.


Er....say again?
Thanks, Mark
Jul 23 '05 #3
On Wed, 17 Nov 2004 21:01:21 GMT, Mark wrote:
"Andrew Thompson" <Se********@www .invalid> wrote in message
On Wed, 17 Nov 2004 20:34:41 GMT, Mark wrote:
Can anyone shed any light?


'Let there be focus'

Translation: Stop stuffing with the focus in the first place.

Er....say again?


I'll try it again, slower..

<body onblur="self.fo cus();"> creates problem. :-(

<body> fixes problem. ;-)

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #4
DU
Mark wrote:
Hi,

At the top of my php file I have got :-

<body onblur="self.fo cus();">

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)!

Can anyone shed any light?


Maybe you can shed more light on the whole context. Is that a secondary
window? Why do you need to make that window always up in front of other
windows? Can you elaborate on the analysis, webpage context, design
decision? You maybe trying to find a correct/exact solution to a
bad/wrong design decision.

You understand that making a window get the focus like you do is very
restrictive, very constraining, very user-unfriendly. That's why browser
manufacturers (Opera, Mozilla for starters; don't know about Konqueror,
Safari) are now granting users absolute veto powers over raising and
lowering (against pop-under) windows.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.3 :)
Jul 23 '05 #5
"DU" <dr*******@hotN OSPAMmail.com> wrote in message
news:30******** *****@uni-berlin.de...
Mark wrote:
Hi,

At the top of my php file I have got :-

<body onblur="self.fo cus();">

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)!

Can anyone shed any light?

Hi Du,
Maybe you can shed more light on the whole context. Is that a secondary
window? Why do you need to make that window always up in front of other
windows? Can you elaborate on the analysis, webpage context, design
decision? You maybe trying to find a correct/exact solution to a bad/wrong
design decision.


It is for a personal-use script. The program does a 'window.open' to display
a page
which shows current horse-prices. The main window then goes to Betfair. I
then need
to be able to navigate the betfair website, without my 'information' window
disappearing,
so that I may compare prices.

I agree it may not be the best way to do things, but I was told it would be
the simplest :-}
Basically, I need some code which makes sure my window is always at the
front of the
betfair window. I do not care whether its java, win32, PHP or ASP as long as
it gets the
job done :-)

Any help would be appreciated.
Thanks, Mark
Jul 23 '05 #6
"Andrew Thompson" <Se********@www .invalid> wrote in message
news:14******** *************** ******@40tude.n et...
On Wed, 17 Nov 2004 21:01:21 GMT, Mark wrote:
"Andrew Thompson" <Se********@www .invalid> wrote in message

On Wed, 17 Nov 2004 20:34:41 GMT, Mark wrote:

Can anyone shed any light?

'Let there be focus'

Translation: Stop stuffing with the focus in the first place.

Er....say again?


I'll try it again, slower..

<body onblur="self.fo cus();"> creates problem. :-(

<body> fixes problem. ;-)


Yes, but will sadly create a new problem - My window will no longer stay at
the front :-(
Thanks, Mark
Jul 23 '05 #7
On Wed, 17 Nov 2004 23:35:28 GMT, Mark wrote:
It is for a personal-use script.


That changes *everything*, I was thinking you meant on an
internet site visited by others.

For a personal script, you can guarantee the environment
(including single browser) and adjust security settings and
plug-ins (such as pop-up blockers) as required.

Have you tried framing the two pages? What are the URLs?

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #8
rf
Mark wrote:
<body onblur="self.fo cus();"> creates problem. :-(

<body> fixes problem. ;-)

Yes, but will sadly create a new problem - My window will no longer stay

at the front :-(


How do you know your viewer *wants* your page at the front? That is why they
clicked another window, isn't it? To, you know, look at the *other* window.

If I were to encounter such a page I would immediately press the back
button.

--
Cheers
Richard.
Jul 23 '05 #9

"rf" <rf@.invalid> wrote in message
news:q0******** **********@news-server.bigpond. net.au...
Mark wrote:
> <body onblur="self.fo cus();"> creates problem. :-(
>
> <body> fixes problem. ;-)
>


Yes, but will sadly create a new problem - My window will no longer stay

at
the front :-(


How do you know your viewer *wants* your page at the front? That is why
they
clicked another window, isn't it? To, you know, look at the *other*
window.

If I were to encounter such a page I would immediately press the back
button.


Because it is for an inhouse development on an intranet - and they /will/
obey me ;-)
Thanks, Mark
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5086
by: Bettina | last post by:
I have a text field and I want that after I enter a text in this text field, the focus goes to the button.gif. How can I do it? Any ideas? I know that when you use an input type="submit", the focus goes automatically to the button, but I don't want to use a button. See please the piece of code: <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html;
4
2405
by: Scott Navarre | last post by:
Hi, I have Red Hat 8.0 and have the default Mozilla browser that comes with it. I am programming in javascript and have come across something problematic. Given the following code: <HTML> <HEAD> </HEAD> <BODY> <FORM>
5
2312
by: Arthur T. Murray | last post by:
http://www.scn.org/~mentifex/jsaimind.html is a free, public-domain AI in JavaScript that may be copied to your Web site with your own changes. Freshly updated and modified from the AI Mind-1.1 appearing in http://isbn.nu/0595654371 -- AI4U textbook of artificial intelligence -- the new AI Mind forgets its oldest unused memories in order to make room for memories of fresh experience, and is therefore immortal. Interested parties may...
20
12312
by: Arne | last post by:
During testing <div style="overflow:auto;"> in CSS I noticed the mousewheel would work in Mozilla only after I made a <a href="#">some text</a> link and clicked on that, within the div. It appears as if Mozilla needs to have the focus set on that div in order for the mousewheel to work. That's all that link does. The mousewheel works perfectly in IE without the link. It scrolls the div even if there is a scrollbar on the page. Is...
1
2355
by: WH | last post by:
I put this line in HTML <body bgcolor="#FFFFFF" onLoad="focus()"> Both Mozzila and IE can do self.focus(). However Opera still does not take the focus().
2
4019
by: Stephan Rose | last post by:
Ok here's my situation... Got an MDI application with a panel to my right that has a tree view for the project stuff, etc. Now if I select an item in the tree view, the tree view gains input focus. After this happens, my MDI children no longer are able to obtain keyboard focus and therefore no longer receive keyboard commands. Needless to say, that's a bad thing. :)
8
51741
by: Tom | last post by:
I am using VB.NET to control another program. I have the program's window hwnd; however, I need to be able to set the focus to that other programs window so I can send it some keystrokes. I thought I could just use the SetFocus API, but I read somewhere that it will only work for programs running under that programs thread. Is this true? If so, how can I set focus to another program's window via VB.NET? Thanks. Tom
8
5270
by: sconeek | last post by:
hi all, i have a html form with multiple text fields, accepting input from a virtual onscreen keyboard. so far i have document.forms.elements.value+=x; The problem is that i dont want to hard code a text field name. it should type in text wherever the focus is.
10
3275
by: Gary | last post by:
I'm trying to find a way to determin which window Within-Another-Program currently has the focus. THE SITUATION: (Skip down to "My Question" if you don't want the background...) * This is a service desk where people "check in" to use a certain facility or area. * The company is running an application they purchased off-the-shelf. * The application accepts input of member numbers from a serial-port
0
9718
marktang
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...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10613
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...
1
10368
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,...
0
10107
tracyyun
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...
0
6876
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
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
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
3
3008
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.