HTML Frames..

Discussion in 'HTML & Website Design' started by alfa145, Dec 7, 2005.

  1. #1
    Is it possible to have a frame (or other) on a page where the source is loaded server side, not client side? I'm sure I've seen it done somewhere but can't remember where...
     
    alfa145, Dec 7, 2005 IP
  2. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #2
    wait, what? source is loaded server-side? what, do you mean javascript or something?
     
    relixx, Dec 8, 2005 IP
  3. alfa145

    alfa145 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm sure I've seen it done without js.

    With a normal frame the page specified in the source attribute is loaded client side.

    I want to load the page specified in the source from the web server but embedded in a page, like a frame.
     
    alfa145, Dec 8, 2005 IP
  4. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can use css to create a fake iframe:
    
    <style type="text/css">
    <!-- 
    #fakeiFrame {
    	
    		width: 295px;
    		height: 125px;
    		overflow: auto;
    		border:1px solid #000000;
    		scrollbar-arrow-color: #003878; scrollbar-3dlight-color: #003878;
            scrollbar-highlight-color: #F0F0F0; scrollbar-face-color: #F0F0F0; scrollbar-shadow-color: #F0F0F0;
            scrollbar-darkshadow-color: #003878; scrollbar-track-color: #F0F0F0;
    	
    }
    -->
    </style>
    
    HTML:
    Then use php to populate the iframe with text from an external file:
    
    <div id="fakeiFrame">
    <?php
    include('framecontent.php3');
    ?>
    </div>
    
    PHP:
    Hope this helps.......
     
    dave487, Dec 8, 2005 IP