Internet Explorer error JQuery undefined

435 views
Skip to first unread message

DB

unread,
Nov 10, 2008, 11:08:23 AM11/10/08
to Flexigrid for jQuery
Anyone ever got an error on internet explorer?

it says that on line 11 Jquery is undefined.

It works perfectly on firefox, but throws script errors on internet
explorer.

Anyone has any tips on what can cause this and what can be done to fix
it?

vivian

unread,
Nov 11, 2008, 9:32:39 AM11/11/08
to Flexigrid for jQuery
some times i had this error and in my case was because i had the
declaratio of the parameters ending with a ,

for example the code below works with ie and with ff

1 $j('#llistaAutors').flexigrid({
2 url: 'authors.php',
3 dataType: 'xml',
4 colModel : [
5 {display: '<?php __('Id');?>', name : 'Author.id', width : 40,
sortable : true, align: 'left', hide: false},
6 {display: '<?php __('Nom');?>', name : 'Author.name', width :
100, sortable : true, align: 'left', hide: false}
7 ],
8 usepager: true,
9 useRp: true,
10 rp: 10,
11 sortname: "Author.name",
12 sortorder: "desc",
13 height:150,
14 buttons : [
15 {name: 'Nou', bclass: 'add', onpress : autors},
16 {name: 'Editar', bclass: 'edit',
onpress : autors},
17 {name: 'Esborrar', bclass: 'delete', onpress : autors}
18 ],
19 title: 'Autors'
20 });

but if you end the line 17 with a , ({name: 'Esborrar', bclass:
'delete', onpress : autors},) or line 19 with , ( title: 'Autors',)
it only works on ff

maybe is what happens

vivian

Cesar .

unread,
Nov 11, 2008, 9:42:21 AM11/11/08
to flex...@googlegroups.com
thanks a ton, appreciate the help.
 
will see if this is one of my problems.

潘伟

unread,
Nov 11, 2008, 9:58:21 AM11/11/08
to flex...@googlegroups.com
well, you should make sure that the last property in the object declaration can't end with ",".  this is a syntax error.

2008/11/11 Cesar . <deadb...@gmail.com>
Reply all
Reply to author
Forward
0 new messages