Results 1 to 2 of 2

Thread: Load specific pages into a frame from a window that is not in frameset?

  1. #1
    Join Date
    Aug 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Load specific pages into a frame from a window that is not in frameset?

    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;
    }

  2. #2
    Join Date
    May 2006
    Location
    Alaska
    Posts
    163
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default

    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.
    Code:
    window.frames [0].location = "THELOCATION";
    And in case you don't know, an iframe works like:
    Code:
    <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!
    Last edited by ???; 08-09-2007 at 12:30 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •