sphpcompiler

Package: sphpcompiler Summary: Compile PHP scripts in a directory with bcompiler Groups: Code Generation Author: Frederico Mottinha de Figueiredo Description: This class can be used to compiler PHP scripts in a directory using bcompiler. It s...

UFrame: div meets iframe Print E-mail
User Rating: / 12
PoorBest 

Omar AL Zabir has posted about a new library called UFrame:

UFrame combines the goodness of UpdatePanel and iframe in a cross browser and cross platform solution. It allows a div to behave like an IFRAME loading content from any page either static or dynamic. It can load pages having both inline and external Javascript and CSS, just like an iframe. But unlike iframe, it loads the content within the main document and you can put any number of UFrame on your page without slowing down the browser. It supports ASP.NET postback nicely and you can have DataGrid or any other complex ASP.NET control within a UFrame. UFrame works perfectly with ASP.NET MVC making it an replacement for UpdatePanel. Best of all, UFrame is implemented 100% in Javascript making it a cross platform solution. As a result, you can use UFrame on ASP.NET, PHP, JSP or any other platform.

To use it you simply setup a div:

HTML:
  1.  
  2. <div class="UFrame" id="UFrame1" src="SomePage.aspx?ID=UFrame1">
  3.   <p>This should get replaced with content from Somepage.aspx</p>
  4. </div>
  5.  

This reminds me a little of purple includes which let you grab pieces of remote documents.

iframes are notoriously slow, and this is one reason why the Caja project exists. If we can trust code to be in the page itself, it can render a lot faster (think widgets in a page).

Also, sometimes I wish I could just say: <div nobleedingcss> around comments in a blog say, so no CSS or formatting from within can effect the outer page (e.g. bad closing of a tag).


Read more at: http://feeds.feedburner.com/~r/ajaxian/~3/298413382/uframe-div-meets-iframe.
 
< Prev   Next >