Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCRIPT5007 Exception IE9 with 2.2.0 version [problem] #231

Closed
Senger opened this issue Feb 12, 2013 · 4 comments
Closed

SCRIPT5007 Exception IE9 with 2.2.0 version [problem] #231

Senger opened this issue Feb 12, 2013 · 4 comments
Assignees
Labels
Milestone

Comments

@Senger
Copy link

Senger commented Feb 12, 2013

Hello!

My IE9 presents an exception:
SCRIPT5007: Unable to get value of the property 'html': object is null or undefined

The line in reference is 120 of jquery.jtabel.min.js: this._$pageInfoSpan.html(a)

How can I fix this?

Tks!!!!

@Senger
Copy link
Author

Senger commented Feb 12, 2013

$j(document).ready(function () {

        //Prepare jTable
        $j('#flex1').jtable({
            title: 'Clas',
            paging: false,
            actions: {
                listAction: 'address',
                createAction:  'address',
                updateAction: 'address',
                deleteAction:  'address'
            },
             toolbar: {
            items: [{
                tooltip: 'Click here ',
                icon: '/images/bulb.fw.png',
                text: 'test',
                click: function () {
                    alert('yes');
                }
            }]
        },
            fields: {
                id_class: {
                    key: true,
                    create: false,
                    edit: false,
                    list: false
                },
                uni: {
                    title: 'Uni',
                    width: '60px',
                    options: 'site_address'
                },
                id_cat: {
                    title: 'Cat',
                    list: false,
                    options: 'site_address2'
                },
                cate: {
                    title: '#Cate',
                    width: '80px',
                    edit: false,
                    create: false
                },
                name_cate: {
                    title: 'Cate',
                    width: '230px',
                    edit: false,
                    create: false
                },
                description: {
                    title: 'Description',
                    sorting: false,
                    width: '200px',
                    input: function (data) {
                    if (data.record) {
                        return '<textarea name=\"description\" rows=\"5\" id=\"description\" style=\"width:250px; height:50px;\" >' + data.record.descricao + '</textarea>';
                    } else {
                        return '<textarea name=\"description\" rows=\"5\" id=\"description\" style=\"width:250px; height:50px;\" ></textarea>';
                    }
}
                },
                valor: {
                    title: 'Valor',
                    width: '60px'
                },
                lote: {
                    title: 'Lote',
                    create: false,
                    sorting: false,
                    edit: false
                }
            },
            rowsRemoved: function(event, data){ 
                verificar_contabil((new Date()).getTime());
            },
        formClosed: function (event, data) {
            verif_cont((new Date()).getTime());
        },
        formCreated: function (event, data) {
            data.form.find('input[name=valor]').priceFormat({prefix: 'R$ ', centsSeparator: ',', thousandsSeparator: '.', clearPrefix: true});
        }
        });

        //Load person list from server
        $j('#flex1').jtable('load');

    });

@flahaut
Copy link

flahaut commented Feb 13, 2013

On firefox also : on child table i have this error => TypeError: this._$pageInfoSpan is null on line 97 jtable.min.

Maybe because there is no page info set for the child table ? :

/* Creates and shows paging informations.
*************************************************************************/
_createPagingInfo: function () {
if (this.totalRecordCount <= 0) {
this.
$pageInfoSpan.empty();
return;
}

        var startNo = (this._currentPageNo - 1) * this.options.pageSize + 1;
        var endNo = this._currentPageNo * this.options.pageSize;
        endNo = this._normalizeNumber(endNo, startNo, this._totalRecordCount, 0);

        if (endNo >= startNo) {
            var pagingInfoMessage = this._formatString(this.options.messages.pagingInfo, startNo, endNo, this._totalRecordCount);
            this._$pageInfoSpan.html(pagingInfoMessage);
        }
    },

@ghost ghost assigned hikalkan Feb 13, 2013
@hikalkan
Copy link
Member

Thanks for your report. It will be fixed in a very short time.

@hikalkan
Copy link
Member

It's fixed. Will be released with v2.2.1

hikalkan added a commit that referenced this issue Feb 13, 2013
Support for saving page size preference of user. [#219]
Fixed some issues. [#167, #214, #215, #216, #219, #231]
Added 'Dutch - The Netherlands' localization.
Updated some localization files.
gbisheimer pushed a commit to gbisheimer/jtable that referenced this issue Feb 13, 2013
Support for saving page size preference of user. [volosoft#219]
Fixed some issues. [volosoft#167, volosoft#214, volosoft#215, volosoft#216, volosoft#219, volosoft#231]
Added 'Dutch - The Netherlands' localization.
Updated some localization files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants