INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Framesets, iFrames and Z-Index

Framesets, iFrames and Z-Index

(OP)
Currently I have a webpage that consists of an index.html file. In the index.html there is a framset

Index.html

CODE

<frameset rows="9%,75%">
  <frame src="header.html" frameborder="0" scrolling="no">
  <frame src="body.html" frameborder="0">
</frameset> 

In the header.html frame src, there is an iframe listed on it. The iframe pulls a search.html file. I currently have an autocomplete script on that search.html page.

Header.html

CODE

<script>
function open_win()
{
window.open("timer.html")
}
</script>

</head>
	<body>
		<table align="left" border="0" height="50">
				<tr>
					<td valign="middle" width="130">
						<a class="button" href="timer.html" onclick="javascript:void window.open ('timer.html','1379021975963','width=412,height=400,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=0,left=700,top=355');return false;">Timer</a></td>
</tr>
</table>
<table align="left" border="0" height="30">
<tr>
					<td width="350"><center>
<iframe src="marquee.html" name="marquee" width="350" height="40" frameborder="no" scrolling="no"></iframe>
</center></td>
</tr>
</table>
<table align="left" border="0" height="200">
<tr>
	<td valign="top">
		<center>
<iframe src="search.html" width="325" height="200" frameborder="no" scrolling="no"></iframe>
		</center>
	</td>
</tr>
</table>
</body>
</html> 

Now what's happening is that when someone types in the search box, the autocomplete works, but only inside it's frameset. Is it possible to get the drop down from the autocomplete to go over both framesets with a z-index or something?

Enkrypted
A+

RE: Framesets, iFrames and Z-Index

Iframes were traditionally for including information from other websites.

Your code would be far simpler to manage if you put it all in a single page and removed the frameset

Keith
www.studiosoft.co.uk

RE: Framesets, iFrames and Z-Index

(OP)
Yeah I'm currently working with it that way now, but need to have certain information always displayed at the top while the rest of the page can scroll which is why I had the frameset. Right now it's all on the same page and it works, but there are collapsible divs on the page and when they are expanded, they push the elements I want displayed at the top at all times off the page.

Enkrypted
A+

RE: Framesets, iFrames and Z-Index

Quote:

but need to have certain information always displayed at the top while the rest of the page can scroll


That is what position: fixed is used for, NOT frames or iframes.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close