rendered paste body<?php echo form_tag('admin_tournament/approve'); ?><div id="tablefoo" class="yui-skin-sam"><?php // this will be filled with teh table by JS ?></div><input type="submit" value="save" /></form><<<<<<< .mineuse_helper('Javascript');include_partial('tournament/tourneyTable', array( 'tableId' => 'customUnapprovedPrefill', 'aRowData' => $tournaments, 'jsObjectName' => 'ctCustomUnapproved',));=======<script type="text/javascript">var myDataSource = new YAHOO.util.DataSource( <?php echo $tournaments; ?> );myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;myDataSource.responseSchema = { fields: [ "tpl_id", "date", "player", "buyin", "rake", "payout" ]};>>>>>>> .r313var myColumnDefs = [{key:"tpl_id", label:"ID", formatter: myFormatCheckbox},{key:"date", label:"Date", sortable: true},{key:"player", label:"Player", sortable: true},{key:"rake", sortable: true},{key:"buyin", sortable: true},{key:"payout", sortable: true}];function myFormatCheckbox(elCell, oRecord, oColumn, oData){ var id = 'row[' + oData + ']'; elCell.innerHTML = '<input type="checkbox" id="' + id + '" name="' + id + '" value="1" />';}var myDataTable = new YAHOO.widget.DataTable("tablefoo", myColumnDefs, myDataSource, {});</script>