faster loading iframe or better way

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

faster loading iframe or better way

 
0
  #1
Feb 21st, 2007
Im using an iframe to display data (recent topics) but im wondering if there is a better way to do this that will not slow page loading as much?

hereis current code

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <table width="83%" td align="center" cellspacing="0" id="submenu">
  2. <tr>
  3. <td align=left>
  4.  
  5. <table width="100%" height="80px" border="0" cellspacing="0" cellpadding="0">
  6. <tr>
  7. <td class="row1" width="100%" style="text-align:center"><marquee behavior=scroll direction=up scrollamount=4 onmouseover=this.stop() onmouseout=this.start() id="activetomar"></marquee></td>
  8. </font>
  9. </td></tr></table></td></tr></table>
  10. <script language="javascript" type="text/javascript">
  11. <!--
  12. if(self.location.href.match('http://herproom.5.forumer.com/index.php?act=Search&CODE=getactive')){
  13. actm = document.getElementById('activetomar');
  14. actm.innerHTML += "<table class='tableborder'>Active Topics Removed</table>"
  15. }
  16. else {
  17. document.write("<iframe name='activetopmarq' src='{ibf.script_url}act=Search&CODE=getactive' style='display:none;' onload='latemarqHarvest()'></iframe>");
  18. //-->
  19. function latemarqHarvest()
  20. {
  21. martab = window.frames["activetopmarq"].document.getElementsByTagName("table");
  22. for(var i = 0; i < martab.length; i++){
  23. if(martab[i].className == "tablebasic" && martab[i].parentNode.className == "tableborder"){
  24. tabdiv = martab[i].innerHTML
  25. goingNav(tabdiv)
  26. }
  27. }
  28. }
  29. function goingNav(tabdiv)
  30. {
  31. actm = document.getElementById('activetomar');
  32. actm.innerHTML += "<table class='tableborder'>" + tabdiv + "</table>";
  33. }
  34. }
  35. //-->
  36. </script>
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: faster loading iframe or better way

 
0
  #2
Feb 22nd, 2007
BUMP! Faster way to load/display this? css perhaps?
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: faster loading iframe or better way

 
0
  #3
Feb 28th, 2007
Bump! some help here please? Anyway to make this function faster? is there a faster way to do this? Its just too slow!
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: faster loading iframe or better way

 
0
  #4
Mar 19th, 2007
Anyone Know a less time (loading) consuming way to do this?
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: faster loading iframe or better way

 
0
  #5
Mar 20th, 2007
No. It is still going to load the entire page. Code changes won't speed up data transfer.

The only thing I can think of is to break it into several loads, and display the first one before loading the others.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: faster loading iframe or better way

 
0
  #6
Mar 21st, 2007
It dosent display the whole page, only links inside an iframe.
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: faster loading iframe or better way

 
0
  #7
Mar 22nd, 2007
But the browser doesn't know that. It loads everything in the frame before it can render it.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: faster loading iframe or better way

 
0
  #8
Mar 22nd, 2007
oh could ajax be used to do faster???
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: faster loading iframe or better way

 
0
  #9
Mar 23rd, 2007
Could I use css to display this data?
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 83
Reputation: rgtaylor is an unknown quantity at this point 
Solved Threads: 2
rgtaylor rgtaylor is offline Offline
Junior Poster in Training

Re: faster loading iframe or better way

 
0
  #10
Mar 23rd, 2007
Why did you ask and answer your own questions? First, why are you using both iframes and tables...redundant much...?

You have to transfer the html, css, JS to the browser...BUT then the JS has to process the data and the iframe content must load... if it is loaded superfluous data prior to JS determining what to show, you have a couple options.... but loose the tables if at all possible...just use CSS to position the iframe...

You can use ajax or you can move some logic to the server, or you can break content into logical groups and have JS on client load smaller pieces, but only what is required for display...
You are using PHP it seems, so the PHP code on the server may also be running slow due design issues...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC