473,735 Members | 3,001 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 4538
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
5085
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
2401
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
2310
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
12302
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
2351
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
4018
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
51731
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
5267
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
3271
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
8959
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
8784
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
9324
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
9248
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
8196
agi2029
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...
1
6747
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
4821
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3270
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
2187
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.