SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Open search results in new frame

    Hi,
    I have two frames, the "left" one has a search box written in JS.

    The results show up in a textbox underneath the search button and when you double click the resultant page opens up in the frame with the search button in. I want the page to open in the "right" frame but am unsure how to link it. I have added targets etc.

    Anyone help??

    Thanks.
    G

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    Rancho Cordova
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Post some of your code and people will be better able to assist you.

    Basscyst

  3. #3
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function go(){
    if (document.form1.Selection.selectedIndex>0){
    parent.right.location=document.form1.Selection.options[document.form1.Selection.selectedIndex].value
    }

    Thats the code I have found that apparently directs the pages to the right frame. 'form1' is the name of the form. 'right' is the target frame.
    Think its something simple but still cant it to work!

    Thanks in advance.
    G

  4. #4
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorted it.

    G


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
  •