Iframes within getblockcode_*

I'm still new to making mods, so the whole "getBlockCode_" function is new to me, and how or where the data goes once it's returned via: 

 

 $s = $this->oTemplate->parseHtmlByName('template_name', $aVars);
return array($s,null);

What I'm trying to do, is each block loads a lot of data, so the actual page load is excessive. I want to have the page load, then the blocks load their individual data sets on a delay basis. This way the user sees the page, and spinning loading icons while data fills up each block.

So I figure putting an iFrame in there is a good plan, and this works. the page load is faster. But now I lost all the pretty formatting done by parseHtmlByName, which, in the past, had grabbed my data, formatted it nice, put into fast loading pages (1, 2, 3...) and all. Now the data comes in as a single line list which extends well below the iframe, needless to say it's ugly. So here's some questions:

  1. Is there a way to get the column width of that particular block code to insert into the iframe element, or is 100% fine? The iframe element seems to stretch from the upper left corner of the block to well past the right edge, making content display funny. 
  2. for the iframe src attribute i set it to the module actionFuntion: (src=module/mine/Function). This function, i tried parsing the data through the below, but again, the output just doesn't come out right:

echo $this->_oTemplate->parseHtmlByName('friends_d2facebook', $aVars);

For now this is my major issue. I can get the data fine, do some pre-processing it into an <ol> list and try to pass to parsehtml, but something is missing. I just end up losing the pretty formatting. 

 

 

 

 

Quote · 19 Nov 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.