Is there any way of speeding up an iframe's loading?

Discussion in 'HTML & Website Design' started by egdcltd, Nov 1, 2007.

  1. #1
    Okay, I have a page and part of this page uses an iframe to load another php file into it

    	<tr>
    		<td align="center" class="row1" valign="top" colspan="3">
    			<iframe width="100%" height="200" left="0" frameborder=0 src="{S_CHATBOX}" class="row1"></iframe>
    		</td>
    	</tr>
    Code (markup):
    {S_CHATBOX} is the location of the php file.

    Now, the iframe loads a few seconds slower than the rest of the page. Is there any way of speeding up the load time? I don't mind using something other than an iframe if it works.
     
    egdcltd, Nov 1, 2007 IP
  2. wdstuff54

    wdstuff54 Well-Known Member

    Messages:
    639
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    110
    #2
    If your page is done in PHP what about using <?php include("file.php"); ?>

    Best of luck!
     
    wdstuff54, Nov 1, 2007 IP
  3. egdcltd

    egdcltd Peon

    Messages:
    691
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Unfortunately, include won't work. Using it in the template file causes one lot of errors, using it in the php file causes another lot.
     
    egdcltd, Nov 2, 2007 IP
  4. webdesigner

    webdesigner Well-Known Member

    Messages:
    489
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Include should work fine. Just sounds like you didn't have the external php file coded right. Try again, we're all here to help :)
     
    webdesigner, Nov 2, 2007 IP
  5. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #5
    why are you using frames? Really bad usability issues with them.
     
    twistedspikes, Nov 2, 2007 IP
  6. egdcltd

    egdcltd Peon

    Messages:
    691
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm using iframe because that's how the script was written, but I don't like how it's working, that's why I'm looking to change it.

    Doing the include in the tpl file creates far too many errors and doesn't work. I can get rid of the error from doing the include in the php file by a minor edit; however, it still doesn't work.
     
    egdcltd, Nov 2, 2007 IP