PDA

View Full Version : Load specific pages into a frame from a window that is not in frameset?



crussell
08-08-2007, 09:58 PM
For my search engine I need to have results from a search opened in a new window as links. My issue is I need those links to open the appropriate file in a certain frame? can anyone help, Im really stuck with this one:


function show(which,wind,num) {
link = item[which][1] + item[which][0];
line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> &nbsp;&nbsp;&nbsp; Relevancy: "+num+" / 10<br>";
wind.document.write(line);
return 1;
}

???
08-09-2007, 12:24 AM
Iframes? I don't really understand what your saying. Iframes aren't framesets but are frames. I don't remember how you set which frame something opens with in HTML. Javascript this would work if it's the first Iframe in the document.


window.frames [0].location = "THELOCATION";

And in case you don't know, an iframe works like:


<iframe !!!src="LOCATION"!!!></iframe>

!!!location is a page, for blank you might be able to exlude it but i would do about:blank!!!
(I think you have to have the ending, I don't think you can use <iframe/>)
I hope it helps!:)