All pastes #1945028 Raw Edit

jqgrid in Chrome

public html v1 · immutable
#1945028 ·published 2010-09-20 13:39 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">  <head>    <script src="http://localhost/static/js/jquery-1.4.2.min.js" type="text/javascript"></script>    <script src="http://localhost/static/js/jquery-ui.js" type="text/javascript"></script>    <script src="http://localhost/static/js/jquery.layout.js" type="text/javascript"></script>     <script src="http://localhost/static/js/jquery.jqGrid.js" type="text/javascript"></script>    <script src="http://localhost/static/js/ui.multiselect.js" type="text/javascript"></script>    <script type="text/javascript">      $.jgrid.no_legacy_api = true;      $.jgrid.useJSON = true;          </script>    <script type="text/javascript">      jQuery(document).ready(function() {    w = jQuery("#tablediv").width();    jQuery("#toolbar").jqGrid({	url:'/table_script/',	  datatype:"json",	  	  colNames:['Username','Email','Status','Date joined','Last login'],	  colModel:[		    {name:'username',index:'username'},		    {name:'email',index:'email'},		    {name:'status',index:'status'},		    {name:'jdate',index:'jdate'},		    {name:'lldate',index:'lldate'},		    ],	  rowNum:10,	  rowList:[10,20,30],	  loadonce:true,	  mtype:"GET",	  gridview:true,	  pager:'#ptoolbar',	  sortname:'username',	  viewrevords:true,	  sortorder:"asc",	  caption:"Users",	  });    jQuery("#toolbar").jqGrid('navGrid','#ptoolbar',{del:false,add:false,edit:false,search:false});     jQuery("#toolbar").jqGrid('filterToolbar',{stringResult: true,searchOnEnter : false});        });    </script>    <link rel="stylesheet" type="text/css" media="screen" href="http://localhost/static/js/themes/redmond/jquery-ui-1.8.2.custom.css" />    <link rel="stylesheet" type="text/css" media="screen" href="http://localhost/static/js/themes/ui.jqgrid.css" />    <link rel="stylesheet" type="text/css" media="screen" href="http://localhost/static/js/themes/ui.multiselect.css" />  </head>  <body>    <div class="unit">      <div class="container">	<H2>Table</h2>	<div id="tablediv">	  <table id="toolbar"> </table>	  <div id="ptoolbar"> </div>	</div>	      </div>    </div>  </body></html>