Results 1 to 2 of 2

Thread: Issue using JavaScript to open pages in multiple frames [Resolved]

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    2

    Resolved Issue using JavaScript to open pages in multiple frames [Resolved]

    I'm needing to update two seperate frames when a user clicks on one link. I have it working fine so long as neither of the two frames are the frame where the link is. If I try to update the current frame, nothing happens. This happens if I specify the frame name, or use "_self".

    The current frame is leftNavBottom, which will not open the new window. However, the <Product>_faq.html will open in the mainPage frame. Also, faqMenu.jsp will open in any other frame besides leftNavBottom.

    I've tried everything I can think of, all have the same results. Here's a couple of things I've tried at different points:

    Code:
    function showProd(FolderId,Product)
    {
    window.open("../jsp/faqMenu.jsp?FolderId=" + FolderId + "&StyleSheet=../xsl/faqMenu.xsl&Product=" + Product,"leftNavBottom");
    window.open("../customhtml/" + Product + "_faq.html","mainPage");
    }
    Code:
    function showProd(FolderId,Product)
    {
    top.window.frames.leftNavBottom.location.href="../jsp/faqMenu.jsp?FolderId=" + FolderId + "&StyleSheet=../xsl/faqMenu.xsl&Product=" + Product;
    top.window.frames.mainPage.location.href="../customhtml/" + Product + "_faq.html";
    }
    I can get faqMenu.jsp to open up in the leftNavBottom frame using the <a> <href=></a> syntax, but that won't open both pages at the same time.

    If anyone has any suggestions, I'd be much appreciative.
    -Phredd, who is very .
    Last edited by Phredd; Jun 22nd, 2005 at 03:57 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width