hi, i have the next situation:
an index.html that has 2 frames (the main and the navigation bar)
and the next problem (in IE, in Mozilla it works properly):
when i start to scroll in the main window, it blurs, and of course, it
finish scrolling, you must click to focus again. This is rather annoying.
And i know that the other frame does not get the focus (i put an alert if it
got, and it didn´t appear)
I know is a problem of the focus because i put en the main frame:
<body onblur()="javas cript:window.fo cus()">
and the scrolling worked properly. But know the problems is that i cant use
the navigation bar (if i click, as the main window lost the focus and get it
again, the navigation bar doesnt work)
i thought then in typing something like:
<body onblur()="javas cript:if (!window.top.fr ame[0].isFocused())
window.focus()" >
but i can´t see any isFocused() method
Could someone help me plz!!!!
Thx 1 2480
Ricardo Garcia said: hi, i have the next situation: an index.html that has 2 frames (the main and the navigation bar) and the next problem (in IE, in Mozilla it works properly):
when i start to scroll in the main window, it blurs, and of course, it finish scrolling, you must click to focus again. This is rather annoying. And i know that the other frame does not get the focus (i put an alert if it got, and it didn´t appear) I know is a problem of the focus because i put en the main frame: <body onblur()="javas cript:window.fo cus()"> and the scrolling worked properly. But know the problems is that i cant use the navigation bar (if i click, as the main window lost the focus and get it again, the navigation bar doesnt work)
i thought then in typing something like: <body onblur()="javas cript:if (!window.top.fr ame[0].isFocused()) window.focus() "> but i can´t see any isFocused() method
In general, it's best to let the browser decide what has focus,
but one way to do what you seem to want is to have the onblur
handler use setTimeout() to schedule focus to return in about
500ms, and to have the onfocus handler of the navigation frame
call clearTimeout() to cancel that. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JesusFreak |
last post by:
From: us_traveller@yahoo.com (JesusFreak)
Newsgroups: microsoft.public.scripting.jscript
Subject: toolbar script problem
NNTP-Posting-Host: 192.92.126.136
Recently, I downloaded the following beautiful script
"http://javascript.internet.com/navigation/toolbar-menu.html". It
works like a charm. I made my webpage in frames, where the nav-frame
shows the menubar, so whenever I click a link in the menubar, it opens
in the frame below. But...
|
by: Jim Marquardson |
last post by:
Hi,
I've struggled with this for a while now, so I'm asking for help. I
am trying to click on a link in one page, have that link open up in a
new window, and set that newly opened window's ifram to a specific
url. Here is the code I'm using:
<html>
<head>
|
by: Richard Brand |
last post by:
We run into a strange problem with a client when printing a frame from a
website. On the site there is a button that performs the following
javascript code:
parent.myFrame.focus();
window.print();
This is the normal way to print a specific frame from a website. Our client
works on a SBS2003 with Terminal Server and when they hit the button all
frames are printed out, not just the selected one. At first I thought that
|
by: Jan Ebbe Jensen |
last post by:
Hi
I have tried the following code. It works in Mozilla. In IE I'm not able to
enable DesignMode? What have I done wrong? It says that obj is undefined?
Can anyone help me please.
|
by: krishna |
last post by:
Below is the code.
language = asp.net/vb.net
private sub openW()
sResult = sResult & "<script language=javascript> mywindow = window.open('http://localhost/mohsaic/default.aspx?tc=Client/Manage'); "
sResult = sResult & "mywindow.parent.frames.location = 'http://localhost/treeview/treeview.aspx?m=c&pid=366826706'; "
| |
by: sympatico |
last post by:
Hi,
We are working on a .NET application. In our project, most of the
interfaces use frames. We have a problem accessing previous page using
frames.
Let us say we have a page A that does not use any frames. Then from
this page, say control goes to Page B that has two frames. On the right
frame, I have some data capture fields. When the user makes some data entry
and then decides to 'Cancel' out of the page, the control is moving back...
|
by: Joseph Scoccimaro |
last post by:
Currently I have a Greasemonkey script that adds a menu to the top of every
page by adding its self to the DOM. I am having a problem when I visit a
page with frames. The menu gets duplicated in every frame. I know the
problem is that the menu gets appended to the body of all the documents in
the different frames. Is there a way around this without having to use
JavaScript to break out of frames? Currently I am using this to insert the...
|
by: Giggle Girl |
last post by:
Hi there,
I am having a problem with the behavior of Firefox, where lefthand
column content is not resized properly after it is "collapsed" and then
"re-expanded". An online demo is available here:
http://s161149005.onlinehome.us/DEMOS/FF/RESIZE_PROB/main/frameset.asp
It works fine in IE 6, but in Firefox, it is broken. Specifically,
when the page/frameset first loads in either browser, it looks correct.
But when you click the...
|
by: len.hartley |
last post by:
Hi,
I am trying to pop-up a window when the user clicks on an image. The
problem is that when the user clicks on the image and the window pops
up OK, but the window underneath also proceeds to the image. The
desired behavior is that when the pop-up is invoked, I want the
underlying window to stay put.
I don't have this problem when I run the code on my local computer but
I do have it when I run the code on geocities.
|
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:
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,...
| |
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...
|
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: 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();...
|
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: 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...
| |