tabs - Yii ajaxLink jquery on view is not working -
on page have tab view of 3 pages.for using chtml::ajaxlink below
<li > <?php echo chtml::ajaxlink("manual billing", ccontroller::createurl('billing/manualbilling'), array('update' => 'html', 'type' => 'post',));?> </li> <li> <?php echo chtml::ajaxlink("billing history", ccontroller::createurl('billing/historybilling'), array('update' => 'html', 'type' => 'post', ));?> </li> <li> <?php echo chtml::ajaxlink("merchant wise billing status", ccontroller::createurl('billing/manualbilling'), array('update' => 'html', 'type' => 'post'), array(//htmloptions // 'class' => "reportlink" ));?> </li>
as given url pages loading problem had given jquery function inside view page implementing datatable not working.
$(document).ready(function() { $('#example').datatable( { "sscrolly": "400px", "bpaginate": false, "olanguage": { "semptytable": "no records display" }, "sdom": 't<"clear">lfrtip', "aasorting": [], "aocolumns": [ { "bsortable": false }, null, null, null, null, null, ], "otabletools": { "sswfpath": "<?php echo yii::app()->request->baseurl; ?>/media/js/tabletools/media/swf/copy_csv_xls_pdf.swf", "abuttons": [ { "sextends": "print", "sinfo": "please press escape when print completed." } // { // "sextends": "collection", // // "sbuttontext": "save", // "abuttons": [ "csv", "xls", "pdf" ] // } ] } } ); } );
its not entering on document.ready().please help
thanks @kevin higgins issue resolved using cjuitabs widget
$tabs = array(); $tabs['manual billing'] = array( 'id'=>'datafieldstab', 'class'=>'bill', 'content'=>$this->renderpartial('manualbilling',$paramsm,true), ); $tabs['billing history'] = array( 'id'=>'linkedchildrentab1', 'class'=>'bill', 'content'=>$this->renderpartial('historybilling',$paramsh,true), ); $this->widget('zii.widgets.jui.cjuitabs', array( 'tabs' => $tabs, 'options' => array( 'collapsible' => false, 'active' => 0, ), ));
thanks every 1 help
Comments
Post a Comment