enhanced DHTML table

    Table of contents
    1. 1. other

    This page demostrates the dhtml_table_plus template.

    Here's the test code:

    dhtml_table_plus( "testChannel", [{label:"name",field:"name"},{label:"HTML",field:"someHTML"}]);
    
    pagebus.publish( "testChannel", { name:"non-image test", someHTML:"<b>this is some HTML</b>" } );
    pagebus.publish( "testChannel", { name:"image test", someHTML:<img src="http://developer.mindtouch.com/@api/deki/files/7054/=blue-question-marks.PNG"/> } );
    pagebus.publish( "testChannel", { name:"your gravatar (if you have one)", someHTML:<img src=(user.gravatar) /> } );

    Here's the result:

    nameHTML

    other

    <file id="7054" revision="1" res-id="11639" href="http://developer.mindtouch.com/@api/deki/files/7054/info">
      <filename>blue-question-marks.PNG</filename>
      <description>
      </description>
      <contents type="image/png" size="39740" width="165" height="170" href="http://developer.mindtouch.com/@api/deki/files/7054/=blue-question-marks.PNG" />
      <contents.preview rel="thumb" type="image/png" maxwidth="160" maxheight="160" href="http://developer.mindtouch.com/@api/deki/files/7054/=blue-question-marks.PNG?size=thumb" />
      <contents.preview rel="webview" type="image/png" maxwidth="550" maxheight="550" href="http://developer.mindtouch.com/@api/deki/files/7054/=blue-question-marks.PNG?size=webview" />
      <date.created>2011-07-07T20:17:12Z</date.created>
      <user.createdby id="2801" href="http://developer.mindtouch.com/@api/deki/users/2801">
        <nick>neilw</nick>
        <username>neilw</username>
        <fullname>
        </fullname>
        <email hidden="true" />
        <password hidden="true" />
        <hash.email>e397677a1a71f4bd0977c7da88c15aaa</hash.email>
        <uri.gravatar>http://www.gravatar.com/avatar/e397677a1a71f4bd0977c7da88c15aaa.png?d=http://developer.mindtouch.com/skins/common/images/default-avatar.png</uri.gravatar>
        <uri.avatar>http://www.gravatar.com/avatar/e397677a1a71f4bd0977c7da88c15aaa.png?d=http://developer.mindtouch.com/skins/common/images/default-avatar.png</uri.avatar>
      </user.createdby>
      <revisions count="1" totalcount="1" href="http://developer.mindtouch.com/@api/deki/files/7054/revisions" />
      <page.parent id="115745" revision="43" href="http://developer.mindtouch.com/@api/deki/pages/115745?redirects=0">
        <uri.ui>http://developer.mindtouch.com/User:Neilw/Testing/enhanced_DHTML_table</uri.ui>
        <title>enhanced DHTML table</title>
        <path>User:Neilw/Testing/enhanced_DHTML_table</path>
        <namespace>user</namespace>
        <language>
        </language>
      </page.parent>
    </file>
    Tag page

    Files 1

    FileVersionSizeModified 
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by