SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2004
    Location
    denver
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a link calling two iframes at once

    I have page with to iframes and i need the link in one iframe to replace the both iframes in the page with new pages. What is the best way to do this ? javascript?

  2. #2
    SitePoint Member SWATalk's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <script language="JavaScript">
      /*
      ** Loads two iframes with the appropriate links
      */
      function multiLoad( doc1, doc2, headerText )
      {
       //document.all.blah.innerHTML = headerText;
       //document.getElementById( "SubNav" ).src = doc1;
       document.getElementById( "Main" ).src = doc2;
      }
      
     </script>
    Use this link to call the frames:

    HTML Code:
    <a href="javascript:void(0)" onmouseOver="window.status='Dashboard'; return true" onmouseOut="window.status=''; return true" onClick="multiLoad('/dashboard_nav.aspx','/dashboard.aspx','Dashboard')" target="Main">Dashboard</a>

  3. #3
    SitePoint Member
    Join Date
    May 2004
    Location
    denver
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i seem to be having trouble with this ..now the link calling the two iframes is with in one of the iframes itself. does this effect things?

  4. #4
    SitePoint Member
    Join Date
    May 2004
    Location
    denver
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    we got it working thanks for the help


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
  •