Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.open & select completion

Status
Not open for further replies.

bestrafer

Programmer
Jan 28, 2008
1
UA
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:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<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>


child window:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<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>
 
I don't really understand what your problem is. Maybe you could try explaining it again? What is it that you are attempting to do, what is the expected outcome, and what actually happens? You talk about "completion/hint" - I have never heard of this before (this may just be jargon you are used to - is there another way to describe it)?

Finally... the child window markup will not validate. There is no form wrapping the select element - and no javascript included to "make the magic happen".

Maybe you could post a link to a working example of your code for a better understanding of what you are doing.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top