English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Ok...yet another html question from me regarding this website I'm building.

So I've written this pretty cool script where a searchbar drops down when a link is clicked. This way the bar doesn't have to be there all the time. I've done this using javascript as well as iframes.

This is where the problem arises. When I go to search in the search bar the results open up inside the tiny iframe that the bar is housed in.

Is there a way that I can make the results appear on the main page. I've tried inserting target tags everywhere, but this is not doing the trick.

Thanks for your help.

2006-06-30 04:57:23 · 3 answers · asked by Babumoshai 4 in Computers & Internet Programming & Design

3 answers

use target="_top" to get the results in the same window. And to close all frames.
If it does not work.
Do all the checkings, then
go to an intermediate page
where u
write a javascript like

function f()
{
var b,c;
b=window.location+'';
c=b.length;
while(b.substring(c-1,c)!='/')
c--;
parent.location =b.substring(0,c)+
"DestinationPage.html";
}

then in the html part u can write



to load the result in the same window.
Name the destination of the search page as DestinationPage.html.
U can pass values using ? ,= and & operators after the destination page
eg:
parent.location =b.substring(0,c)+
"DestinationPage.html?a=1 & b=r";

All the best

2006-06-30 05:30:00 · answer #1 · answered by Damn I'm Good 1 · 0 0

I don't know if this applies to what you're trying to do but I've used an iframe to display a selection list. The list looks like this: