No title Revision 7e24fe8472b4 (Tue Dec 16 2008 at 17:05) - Diff Link to this snippet: https://friendpaste.com/3gzXIEsH91RYQ7M2fDRBSL Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:pure="http://beebole.com/pure"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Pure Render Engine Example by Just Talk About Web</title><link href="css/white.css" rel="stylesheet" type="text/css" title="white" /><script type="text/javascript" src="js/jqueryMin.js"></script><script type="text/javascript" src="http://beebole.com/pure/gitHubWiki/js/pure.js?javascriptly"></script><script type="text/javascript"> var directive = { 'tbody tr[class]+' : (function(context, items, pos) { return ( pos % 2 == 1 ) ? 'even' : 'odd'; })}; function render(){ $.getJSON('json.php', 'lang=' + $('#langList').val(), function(books){ $('#target').autoRender(books, directive, $('#templ')[0]); }); } $(document).ready(function(){ render(); $('#langList').change(render); });</script></head><body> <div class="demo"> <div class="htmlDoc"> Programming Language: <select id="langList"> <option value="java">Java</option> <option value="php">PHP</option> <option value="python">Python</option> </select> <div style="display:none"> <table class="books" id="templ"> <thead> <tr> <th class="title">Title</th> <th class="publisher">Publisher</th> <th class="price">Price</th> </tr> </thead> <tbody> <tr class="list"> <td class="title"> </td> <td class="publisher"> </td> <td class="price"> </td> </tr> </tbody> </table> </div> </div> <div class="transformation"> <hr size="1" color="#cccccc" /> Recommended Reading: <div id="target"></div> </div> </div></body></html>