Connecting Tech Pros Worldwide Forums | Help | Site Map

bad position of autocomplete list of input field

Kubus
Guest
 
Posts: n/a
#1: Jul 23 '05
Please help, IE 6.0 seems to hava a problem with input form autocomplete
dropdown positioning.
The dropdown list with last entries which appears normally right
below the field but when used within an IFRAME it is offset far down from
input field - seems the dropdown is moved down exactly same amount as
IFRAME offset from the top of the main document.

Simple example:
<form method="get">
<input type="text" name="Name" value="">
</form>
works ok here:
http://www.geocities.com/kszmigie/inner.htm

but this example from above when hosted in IFRAME (simplified
code here):
<table border=1>
<tr><td><B> HEADER </B></td></tr>
<tr><td><iframe src="inner.htm"></iframe></td></tr> ...
does not work ok, the autocomplete is moved
down from it's form field:
http://www.geocities.com/kszmigie/main.htm

This works ok in Firefox. Anybody has a clue how to workaround it
or fix it in my code?
It looks very ugly in my project :(

Thanks a lot!
Kuba

--
Please remove "niepotrzebne_" from my e-mail when answering.

Kubus
Guest
 
Posts: n/a
#2: Jul 23 '05

re: bad position of autocomplete list of input field


ok, no responses so I'll publish my findings.
What seems to solve the problem (at least inthis particular case)
is to add positioning style item to the IFRAME :

style='position:relative;left:0px;top:0px;'

and the autocomplete box jumps back to it's correct position.

Best Regards,
Kuba


--
Please remove "niepotrzebne_" from my e-mail when answering.
Closed Thread


Similar JavaScript / Ajax / DHTML bytes