/** * Renders the ajax grid * @param ajax_grid_pager $pager */ public function render($pager = null) { $sortdir_name = $this->sortdir->client_id(); if (!$this->_isExternalBuffer) { $this->buffer->start(); } if (!is_null($this->pager) && $this->_renderPagerTop) { echo $this->pager->render(); } echo parent::render(array('buffer' => $this->buffer->client_id(), 'sortdir_name' => $this->sortdir->client_id(), 'sorting_name' => $this->sorting->client_id())); if (!is_null($this->pager)) { echo $this->pager->render(); } if (!$this->_isExternalBuffer) { $this->buffer->end(); } }
<script type="text/javascript" src="../../js/jquery/jquery.js"></script> <script type="text/javascript" src="../../js/jquery/jquery.scrollTo-min.js"></script> <script type="text/javascript"> jQuery.noConflict(); </script> <script type="text/javascript" src="../../js/ajax/engine.js"></script> </head> <body> Channel loading (Mbps): <?php $left = $ind_count->get_value() * 11; $height = rand(30, 100); ?> <div id="chart"> <?php $ajaxbuf->start(); ?> <div class="indicator" style="left: <?php echo $left; ?> px; height: <?php echo $height; ?> px"></div> <?php $ajaxbuf->end(); ?> </div> <label><input type="checkbox" id="chbScroll"/>Scroll graph</label> <script type="text/javascript"> function update()