Welcome Guest, Not a member yet? Register   Sign In
Flexigrid not display
#1

[eluser]Unknown[/eluser]
Hi,
I do not know why flexigrid is not display on browser. Please help.

My views/flexigrid is

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;title&gt;Flexigrid Implemented in CodeIgniter&lt;/title&gt;
&lt;link href="http://localhost/ci/flexgridci/public/css/style.css" rel="stylesheet" type="text/css" /&gt;
&lt;link href="http://localhost/ci/flexgridci/public/css/flexigrid.css" rel="stylesheet" type="text/css" /&gt;
[removed][removed]
[removed][removed]
&lt;/head&gt;
&lt;body&gt;
<hr/>
&lt;?=$js_grid;?&gt;
<table id="flex1" style="display:none"></table>
<hr/>
version &lt;?=$version?&gt;<hr/>
&lt;/body&gt;
&lt;/html&gt;

The return value of $js_grid is as follows:

[removed]$(document).ready(function(){$("#flex1").flexigrid({url: 'http://localhost/ci/flexigridci/ajax',dataType: 'json',sortname: 'id',sortorder: 'asc',usepager: true,useRp: true,width: 'auto',height: 400,rp: 15,rpOptions: [10,15,20,25,40],pagestat: 'Displaying: {from} to {to} of {total} items.',blockOpacity: 0.5,title: 'Hello',showTableToggleBtn: true,colModel : [{display: 'ID', name : 'id', sortable: true, width : 40, align: 'center'},{display: 'ISO', name : 'iso', sortable: true, width : 40, align: 'center'},{display: 'Name', name : 'name', sortable: true, width : 180, align: 'left'},{display: 'Printable Name', name : 'printable_name', sortable: true, width : 120, align: 'left'},{display: 'ISO3', name : 'iso3', sortable: true, width : 130, align: 'left'},{display: 'Number Code', name : 'numcode', sortable: true, width : 80, align: 'right'},{display: 'Actions', width : 80, align: 'right'}],searchitems : [{display: 'ID', name : 'id', isdefault: true},{display: 'Name', name : 'name'},{display: 'Number Code', name : 'numcode'}],buttons : [{name: 'Delete', bclass : 'delete', onpress : test},{separator: true},{name: 'Select All', bclass : 'add', onpress : test},{name: 'DeSelect All', bclass : 'delete', onpress : test},{separator: true}]}); })[removed]


Thank you very much for response.
new student
#2

[eluser]jalalski[/eluser]
It's probably a javascript error. In firefox you can open the javascript console and look at what the errors are.
#3

[eluser]HomersBrain[/eluser]
Type the URL of the JSON datafeed (http://localhost/ci/flexigridci/ajax) and see if there are any errors.

also

I had this problem when I was displaying a table with large text fields. I did a trim() around the text and it worked fine.




Theme © iAndrew 2016 - Forum software by © MyBB