Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Help needed :(

  1. #1
    Join Date
    Feb 2006
    Location
    Newcastle
    Posts
    397
    Tokens
    0

    Default Help needed :(

    Ok, I have a layout in tables but I want to know how I can make it stay expanding but open the links on the nav so that the links open in the main content.. As when I normally link them without using iframes it refreshed the whole page meaning my radio will keep refreshing.

    Examples:
    Clubhabbo.net
    Thinkhabbo.com

    etc etc

    +rep if you help ;]]

  2. #2
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:

    Default

    Use PHP nav links. http://techtuts.com

  3. #3
    Join Date
    Feb 2006
    Location
    Newcastle
    Posts
    397
    Tokens
    0

    Default

    index.php?page=whatever

    That one?

  4. #4
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:


  5. #5
    Join Date
    Feb 2006
    Location
    Newcastle
    Posts
    397
    Tokens
    0

    Default

    Doesn't work for me, just opens the link in a blank page doesn't go in the content box.. Doesn't even include the text in the white page :S

  6. #6
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    shame techtuts got hacked lmaoo

  7. #7
    Join Date
    Feb 2006
    Location
    Newcastle
    Posts
    397
    Tokens
    0

    Default

    lol yeah

  8. #8
    Join Date
    Feb 2006
    Location
    Newcastle
    Posts
    397
    Tokens
    0

    Default

    i've sorted this anyway thanks chris

  9. #9
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Both of your examples use IFrames, and using PHP to get content depending on the URL will still cause the page to refresh (as PHP is a server-side language). To load content into a DIV (without the page refreshing), you'll need to use JavaScript.

    HTML Code:
    <html>
    <head>
    <title></title>
    <script>
    <!--
    
      try {
        var request = new XMLHttpRequest();
      } catch(e) {
        var request = new ActiveXObject('Microsoft.XMLHTTP');
      }
    
      function loadPage(page) {
        request.open('get', page);
        request.onreadystatechange = function () {
          if(request.readyState == 4) document.getElementById('content').innerHTML = request.responseText;
        }
        request.send(null);
      }
    
    -->
    </script>
    </head>
    <body>
    <a href="#" onclick="loadPage('news.htm');">News</a>
    <div id="content"></div>
    </body>
    </html>
    kinda quit.

  10. #10
    Join Date
    Feb 2006
    Location
    Newcastle
    Posts
    397
    Tokens
    0

    Default

    Where do I insert that? In the index where the table is?

Page 1 of 2 12 LastLast

Posting Permissions

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