By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,453 Members | 3,183 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,453 IT Pros & Developers. It's quick & easy.

window.open & select completion

P: 3
Hi.

I'm experiencing the following problem with a completion/hint on 'select'.
When 'select' gains focus there is a possibility to go through all options by typing in a first symbol of the option.
The problem is that the behaviour is different for the cases:
1. window with 'select' tag is opened directly.
2. window with 'select' tag is opened from a parent window.

For the second case completion/hint on 'select' does not work for IE 6.0
(firefox 2.x works for the both cases, a bit another way, but nevertheless)

I suspect that a case is in restrisctions for window.open.

Here is my examle:

parent window:

[HTML]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
function openW(url){
window.open(
url,
'childW',
'width=986,height=650,location=no,menubar=yes,stat us=yes,resizable=yes,scrollbars=1'
);
}
</script>
</head>
<body>
<a href="./test.html" onclick="openW('./test.html');"><b>open child window</b></a>
</body>
</html>
[/HTML]


child window:

[HTML]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<select size="1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</body>
</html>
[/HTML]
Jan 29 '08 #1
Share this Question
Share on Google+
5 Replies


acoder
Expert Mod 15k+
P: 16,027
Welcome to TSDN!

I experience no such problems for IE6.

Just a note that the link will open a new window and also go to the test page in the parent window.
Jan 29 '08 #2

P: 3
1. open a child window from a parent one, make 'select' gain a focus, press '4' on the keyboard - nothing happens... at least for me

2. open a child window directly, do the same steps as in the 1st case - '4' is selected.
Jan 29 '08 #3

acoder
Expert Mod 15k+
P: 16,027
1. open a child window from a parent one, make 'select' gain a focus, press '4' on the keyboard - nothing happens... at least for me

2. open a child window directly, do the same steps as in the 1st case - '4' is selected.
Well, you're right. Strange behaviour. I was testing with 2 first. Pressing 2 will work, but it doesn't work reliably. Pressing the numbers in order will work. I'm not sure if there's a solution or workaround except to detect the keypresses and select the appropriate option.
Jan 29 '08 #4

P: 3
Well, you're right. Strange behaviour. I was testing with 2 first. Pressing 2 will work, but it doesn't work reliably. Pressing the numbers in order will work. I'm not sure if there's a solution or workaround except to detect the keypresses and select the appropriate option.
Yep, it seems that I'll have to handle this case by myself (
Jan 29 '08 #5

acoder
Expert Mod 15k+
P: 16,027
Yep, it seems that I'll have to handle this case by myself (
Yes, unfortunately, unless someone comes up with a workaround. Good luck!
Jan 29 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.