Govindscript / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

usepager:true results in uncought exception #69

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In connection with jquery-1.6.2

This is my code, from a example. Bug occurs with other examples also,

    $("#flex1").flexigrid({
    url: 'getFlights',
    dataType: 'json',
    colModel : [{display: 'sourceAsset', name : 'sourceAsset', width : 150, sortable : true, align: 'left'},
            {display: 'host', name : 'host', width : 100, sortable : true, align: 'left'},
            {display: 'Port', name : 'port', width : 100, sortable : true, align: 'left'},
            {display: 'statusCode', name : 'statusCode', width : 150, sortable : true, align: 'left'},
            {display: 'data', name : 'data', width : 100, sortable : true, align: 'left'},
            {display: 'dataType', name : 'dataType', width : 100, sortable : true, align: 'left'},
            {display: 'timestamp', name : 'timestamp', width : 200, sortable : true, align: 'right'}
            ],
    searchitems : [
            {display: 'sourceAsset', name : 'sourceAsset'},
            {display: 'statusCode', name : 'statusCode', isdefault: true}
            ],
    sortname: "sourceAsset",
    sortorder: "asc",
    usepager: true,
    title: 'xyz',
    useRp: false,
    showTableToggleBtn: false,
    width: 1000,
    height: 200
    });

Results in folling error on Chrome13
Uncaught Error: INVALID_STATE_ERR: DOM Exception 11 jquery-1.6.2.js:6111
jQuery.extend.clean jquery-1.6.2.js:6111
jQuery.buildFragment jquery-1.6.2.js:5958
jQuery.fn.extend.domManip jquery-1.6.2.js:5788
jQuery.fn.extend.append jquery-1.6.2.js:5599
$.addFlex flexigrid.js:1035
$.fn.flexigrid flexigrid.js:1193
jQuery.extend._Deferred.deferred.resolveWith jquery-1.6.2.js:1008
jQuery.jQuery.extend.ready jquery-1.6.2.js:436
jQuery.DOMContentLoaded jquery-1.6.2.js:915

And following error in FF5
Error: uncaught exception: [Exception... "An invalid or illegal string was 
specified"  code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)"  
location: "http://localhost:8080/js/jquery-1.6.2.js Line: 6111"]

Setting usepager: false
make the problem go away

Original issue reported on code.google.com by pizzaag...@gmail.com on 24 Aug 2011 at 2:23