If anyone can lend a hand on this, I'd be forever grateful...
Am using a drop-list for Category links on a catalog-style website. Everything works fine *until* I put the drop-list form into an I-frame.
The reason for putting the form into an I-frame is that the site has over 100 pages, so I don't want to change 100+ pages everytime we add a new category. So if the drop-list with the links goes into an I-frame, one central edit will change all the pages.
I have used this I-frame approach for simple HTML links and it works fine - but as soon as I add a *form* element (drop box) into the Iframe, the new page loads in the I-frame and not on top. I've added target="_top" to the form options but it doesn't make a difference - the new pages still load in the i-frame.
The code snippets are below. If anyone can figure out how to get the new pages loading as "top" pages, not inside the Iframe, I'd be very grateful. Not to mention happy. Thankz!
Here's the HTML iframe code:
<iframe src="search.html" align=right height=70 width=100% marginwidth=0 marginheight=0 frameborder=0 scrolling=no>
</iframe>
And here's an abbreviated version (only one link) of the code being fed into the Iframe:
<form>
<select name="category" size="1 height=12px>" onChange="selectBoxLink(this.options[selectedIndex].value)">
<option selected>View by Category </option>
<option>*****************</option>
<option value="http://www.sitename....y_carriers.htm" target="_top">Baby Carriers</option>
</select></form>
<script LANGUAGE="JavaScript">
<!--
function newWin(url,width,height) {
window.open(url,"remoteWin","width="+width+",height="+height+",resizable=1,menubar=0,status=0,scrollbars=1");
}
function selectBoxLink(anyUrl)
{
if (anyUrl.length > 0){
window.location = anyUrl;
}
return true;
}
//-->
</script>
Thanks for any help.
Skater50










