Posted By

dvdrtrgn on 09/09/08


Tagged

testing unit


Versions (?)

trite.js


 / Published in: JavaScript
 

URL: http://homepage.mac.com/dr_turgeon/sources/trite.js

make this do dynamic load from snipplr using jquery

  1. /*---------------------------------------------------------------------------*/
  2. var log;
  3. var br = "<br />\n";
  4.  
  5. function trite(x){
  6. var str='<tr>';
  7. for (var i in x){
  8. str += ('<td><span>'
  9. + (typeof x[i])
  10. + ':</span> '
  11. + x[i]
  12. + '</td>')
  13. }; return str += '</tr>';
  14. }
  15.  
  16. /*---------------------------------------------------------------------------*/
  17. // http://snipplr.com/view.php?codeview&id=8260 textarea.copysource

Report this snippet  

You need to login to post a comment.