In IE, Forcing Focus On Window Makes Dropdown Selects Inoperable
Jul 23, 2005
We are developing a web page that shows large graphics. To provide more screen space for the graphics, we allow the user to popup a window that places itself over the top part of the browser. This popup contains a control panel that tells the main window what to display.
Because we don't want to require that the user continually ALT-TAB to go between the main window and the popup (all user controls are on the popup) in the control panel popup, we have the following:
in the function called by onLoad in the popup, the following line is executed:
window.onblur= keepFocus;
later in the .js file we have:
function keepFocus() {
self.focus();
}
The problem is that when the user tries to use a dropdown select control the list drops down and immediately rolls back up, making it inoperable. This doesn't happen in the Netscape/Mozilla family or browsers. Nor does IE report an error.
View 3 Replies
ADVERTISEMENT
Jul 24, 2010
I have a project where I need a selection of one dropdown menu may affect the select of multiple other dropdown menus on the same page.First, a table is generated, and within each row, it contains a dropdown menu. Assume: Rows A, B, C, etc..., and Dropdown selection: 1, 2, & 3If dropdown in Row A selects 2, then I want the selection of dropdowns in rows B & C to dynamically change to 2.And if in Row C user selects 3, then the selection in dropdowns in rows A & B should dynamically change to 3.
View 1 Replies
View Related
May 27, 2011
I'm currently using h5validate with my forms but recently setup a few where a second form is generated based on what a user selects from a dropdown menu (via AJAX). Since the new form ID's were not existing when the document was loaded jQuery does not bind h5validate to the new form. I found a plugin called livequery that will bind new elements on the fly. Unfortunately, I'm pretty new to jQuery and can't quite figure out how to make this work with h5.
My current h5 function looks like this, where formID is the ID of the from that does not exist but is later loaded in via AJAX.
Here are the sites to the two plugins:
View 2 Replies
View Related
Sep 8, 2011
This is to update stock status automatically on a formPlease advisow this is done:When user enters value greater than 0 inside text input field.Status dropdown list selects option: In StockIf value inside text input field is <= 0.
View 5 Replies
View Related
Aug 27, 2011
The link will be ad generated by Javascript code.Here is a bit more detail about my situation. I am creating a web-based mobile app. In other words, the native app acts just like a set of frames that load web pages. One of the frames loads an ad. The ad is invoked via javascript provided by various mobile ad networks.On the iPhone, we are noticing the ad loads within the ad frame inside the app, instead of spawning a new browser window. We would like to resolve this w/ javascript code that forces all links (specifically links generated via javascript) to open in a new browser window.
View 5 Replies
View Related
Sep 24, 2009
I'm having trouble with Safari. After i close a popup it does not focus on the parent window. I have been looking around and i think its this sort of thing i need 'javascript:window.opener.focus()" target="_self"' but tbh i'm not in anyway a javascript whizz, so im a little confused.
Here is my current code to close the child window
document.write("<input name='close' class='button popup' type='button' value='Close Window' onclick='window.close()' id='close'>"
So i need to somehow, add in the .opener thing to that.
View 2 Replies
View Related
Jul 23, 2005
If I use the following construct in the frame "main" for a link to an
extern site:
<A HREF="http://www.any.xy" TARGET="extern">
the Browser is creating the window "extern", loading the page
www.any.xy an setting the focus to "extern". But when I go return to
"main" without closing "extern", a click to an other link (e.g.
www.2nd_any.xy) on "main" does not setting the focus to "extern".
For setting the focus to "extern" in the second case, I have used the
following construct:
<A HREF="http://www.any.xy" TARGET="extern"
onClick="setTimeout('extern=window.open('','extern');fr emd.focus();',500);">
an example</A>
This construct has worked very well for a few years, but since about
one year, the sesult was the same as using
<A HREF="http://www.any.xy" TARGET="extern">
In this year, I have changed:
win 95 --> win 2000
modem 56k --> DSL
Netscape 4.5 --> Netscape 7.1
Can anybody tell me a possibility setting the focus to "extern" in the
second case? Is the changing of my configuration the reason, that the
construct has failed?
View 31 Replies
View Related
Apr 19, 2006
this is for a browser window that contains a chat app that is an applet... when browser window is not in focus I would like users to somehow get notified when a message arrives, more or less like regular IM apps do.. I did with window.focus(), but I don't really want window to come into focus, I just want it to 'blink' and then stay highlighted.. I tried window.setActive() method (not sure what that method does but wanted to try it) but I get obj-non-supported error in
IE6 with that method ..
View 3 Replies
View Related
Oct 1, 2007
does some one know whay this code doesn't works with mozilla:
<body onload="window.focus();">
how can i focus this window in both explorer and mozilla browsers?
View 3 Replies
View Related
Mar 10, 2006
if anyone is still curious about this recently posted issue creating error 'member not found'
function imageWindow(whichImage)
{
imageWindow = window.open(whichImage,
'myWindow','width=450,height=200')
imageWindow.focus()
}
I was experiencing the same problem and determined that the error was experienced when loading a pdf file. in the above case the user appears to be loading an image. The problem does not occur when simply loading html files.
View 4 Replies
View Related
Jul 20, 2005
I'm trying to test if a browser is configured so that I can use popup
windows or if it has a popup blocker installed... the only solution I was
able to think of, was one that would pop up a window and then write a value
of popup=true into a form box (or cookie) and then submits the page.
The code below executes up to the point where the window regains focus
window.focus() but fails to execute any code after that point, specifically
executing the submit form.
popWin = window.open('popupTest.htm','','width=10,height=10 ');
popWin.blur();
window.focus();
document.form.submit();
Could someone please help me with how I would execute the submit line after
the window regains focus.
View 1 Replies
View Related
Oct 14, 2002
I have a page where it accesses the same popup a couple times. When I click 'Help' it opens the popup then goes to the section. But, if i go back to the other page, and click another link to the popup which goes to another section, it doesn't re-focus on the popup window.
The sections are accessed by the '#SECTION' link...
Code:
<a href="javascript:helppage('help.htm#Section','title');">Help</a>
How can I focus on it when it goes to a new section when the popup is already open?
View 1 Replies
View Related
Aug 2, 2010
I have this ads on my webpage that popup whenever you go somewhere (obviously prett annoying ). So my question is: how can I make so the previous window I was at gets focus and the popup doesnt. My thoughts was on making it with the onLoad function after you popup the popup but its stops there.
View 3 Replies
View Related
Nov 23, 2009
what do i need to get something like this going: When a user clicks on a button to focus a windows program thats already running
View 1 Replies
View Related
Jul 23, 2005
I have a web site where multiple html pages are opened at a time & messages are received or those pages are refreshed automatically using meta-tag.
what I want is whenever that page is refreshed, the particular html window should notify user (as user may have opened other html window), now notification could be by setting focus to that html window which is refreshed, but then this will distract & frustate the user as he was referring other html window. What I would like to do is make that window blink or some notification like yahoo or msn mail received. But I want this kind of feature in HTML/Javascript.
View 3 Replies
View Related
Jul 20, 2005
The crux of the problem is I only know if the popup *has been* opened,
but not if it *is* open. Therefore, the script doesn't know whether to
simply refocus, or whether to popup a fresh window.
Are these the only solutions?
* handle onerror in some creative way
* hidden frames
BTW, I do have the luxury of ignoring non IE 5.5+ browsers on this
project..
View 4 Replies
View Related
Mar 17, 2010
I have a web page which lists and displays all the characters for which a Named Entity code exists, with coding details etc..Some of these characters are quite obscure and the reader will only be able to see them if they have a suitable Unicode font on their own PC/browser. If not, they will just see placeholder squares.
For these obscure characters, I've set up a popup window. Click on a placeholder square and a small window appears which shows a .gif of what the character should look like, and a label saying what it's called.If the user closes the window after viewing, there's no problem. The difficulty comes in if somebody wants to click on a succession of placeholders and view a succession of character .gifs, and meanwhile the initial child window has slipped to the back of the stack and is behind the webpage instead of in front.
In IE, Netscape and Safari, it's easy - I just use .focus to bring the child window to the fore. In Chrome, which doesn't recognise the .focus command, I close the child window and re-open it. [There's code further up the document which identifies the browser.]However, neither .focus nor closing and re-opening the window works with Opera, which turns the child window into a tab rather than a separate window, and then shoves that tab to the back.how I can get Opera to either move the focus to the child-tab on command, or close it on command so it can be re-opened?This is the code that generates the child window:
function charDisplayer()
{
if (isIEorInnerGroup == "Yes") {codeWidth = windowWidth*.171, codeHeight = windowWidth*.239, codeInset = windowWidth*.041} else[code]....
Ignore the line which begins if (isIEorInnerGroup == "Yes") - this is part of a setup which resizes all art, tables etc to maintain a constant size across all browsers and screen resolutions."stylesheet" is passed as a variable because I have two different stylesheets on the go, to accommodate the fact that Netscape handle text-size differently from the other browsers. There's a function elsewhere which sets the value of stylesheet according to whether the browser is Netscape or not, and whether the platform is a Mac or not."charID" is a variable which identifies the code name of the character (taken from the Named Entity code) and looks it up under that name in a list of .gifs. "charName" is a variable which passes a text-string saying what the character is called, e.g. "Not a subset of".There is an "isOpera" variable which can be used to start a specific action if the browser is Opera.
View 1 Replies
View Related
May 11, 2009
When javascript alert is popped up, it doesnot allow us to focus on the window till we click on the alert ok button. Can we do the same when I popup div alert. I have put in the code in a function to call when div is loaded. But its not working
The code I am using is:
But it seems like its not working, Even the alert is also not popping up.
View 5 Replies
View Related
Mar 24, 2011
I use a cookie to keep track of a particular window (using window.name), lets call this the main window. I use the window to distribute data returned from the server.
I use window.open("",mainWindowName) to get the reference to the main window object.
The problem is in nearly all browsers this works fine (focus stays on the current window), however in Safari, window.open also sets focus to that window (mainWindowName).
Of course I can reset focus back to the current window in Safari, but there is a quick flash of windows focus changing and it doesn't look good.
View 2 Replies
View Related
Jun 28, 2005
I am working on a ASP.NET application and have some forms that require to be popped up and let the user edit information on them. These windows must stay in focus until closed, but I have having some issues implementing this.
We are targeting IE explorers and have tried the showModal() which is exactly what we require (as it forces the user to the window till complete) but the page cannot refresh/postback which is what we need.
I also tried the on blur = self.focus() but that doesnt work either as when I user clicks the textbox on that popup to update a datagrid the focus is taken off the textbox and to the window again.
What I'm trying to achieve it a popup window that has focus until complete and allows the window to refresh as it requires use to update & delete a datagrid. Any ideas?
View 1 Replies
View Related
Jul 23, 2005
Below is example js:
function SomeLongProcess()
{
for(var i=0;i<document.all.length;i++)
document.all(i).style.cursor="wait";
// some long process here !!
for(var i=0;i<document.all.length;i++)
document.all(i).style.cursor="default";
}
so, the problem is, that the mouse cursor not change, until i focus to
different window, and return to this window.
View 1 Replies
View Related
Jul 23, 2005
I've got a strange problem in IE that I wonder if anyone has seen
before. Basically, I've got a two window scenario. The parent window
opens the child via window.open(). The child contains a form and
submissions are processed in the child window. When the child window
form is submitted and the results are returned, an alert box is thrown
up via setTimeout("alert(....)", 2000). For some odd reason, when
this alert is displayed, focus is transferred back to the parent
window with the alert box on top. When you press the OK button on the
alert, focus is transferred back to where it should be; on the child
window. This doesn't happen all the time. But it happens. Is there
something I can do to solve this mystery?
View 2 Replies
View Related
Sep 9, 2005
I have a page that opens a child window using window.open(...). How do I make so that when that child window opens you cannot get the focus back on the parent window unless you close the child window?
Is it even possible?
View 10 Replies
View Related
Aug 15, 2011
What is the practical use window.focus() and window.blur()?
View 2 Replies
View Related
Dec 15, 2006
I would like to set up a listener, I think, that will exectuve a bit of code when my primary browser window receives focus.
For example, I will open a new _blank window, but when that window is closed, I would like some code to exectuve. What is the proceedure to do this?
View 1 Replies
View Related
Feb 17, 2006
I am using a standard html <form> to send data to a pop up calculating somthing.
I want all coming requests to go to the same window.
Quite easy with forms since we have the target attribute, thus target="calculating_window".
However future <form> submitted entries will appear in the "calculating_window" window, but keep behind the current active window (with the <form> formular). The user therefore cannot see new entries beeing calculated.
I tried working with a OnClick thing with the submit button and javascript focus(), but i just can't get i to work. Any suggestions?
View 1 Replies
View Related