Loans - Credit Cards - Bleach Episode - Duwayne Burnside - MPAA

PDA

View Full Version : Is there any way of speeding up an iframe's loading?


egdcltd
Nov 1st 2007, 6:38 pm
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>

{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.

wdstuff54
Nov 1st 2007, 9:00 pm
If your page is done in PHP what about using <?php include("file.php"); ?>

Best of luck!

egdcltd
Nov 2nd 2007, 4:45 am
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.

webdesigner
Nov 2nd 2007, 6:46 am
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 :)

twistedspikes
Nov 2nd 2007, 8:27 am
why are you using frames? Really bad usability issues with them.

egdcltd
Nov 2nd 2007, 3:07 pm
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.