Forum


13:12

10/08/2009

Hello,
the described error there are typically if an error in one from JavaScripts take place. If you would start Developer Tools of IE (press F12 key) and run the scripts under the debugger control (choose "Script" tab and "Start debugging" button) you will see in "Console" tub on the right side the place where the error or exception take place.
Regards
Oleg
13:50

03/11/2010

Sorry, it's an intranet site not accesible from the outside 🙁 Here is the JS code (first grid is Ok, the second and the third are not):
$(function () {
$("#list5").jqGrid({
url: 'js/JQgrid/gridAneks.php',
editurl: 'js/JQgrid/gridAneks.php',
datatype: 'json',
mtype: 'POST',
toolbar: [false, "top"],
colNames: ['Број', 'Датум', 'ДелатноÑÑ‚', 'Рок закупа:', 'Почетак кор.', 'Уг. казна', 'Отказни рок', 'Површина'],
colModel: [{
name: 'broj_dokumenta',
index: 'broj_dokumenta',
width: 90,
editable: true,
search: true
},
{
name: 'datum_dokumenta',
index: 'datum_dokumenta',
width: 90,
editable: true,
search: false
},
{
name: 'delatnost',
index: 'delatnost',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'rok_zakupa',
index: 'rok_zakupa',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'datum_pocetka',
index: 'datum_pocetka',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'ugovorna_kazna',
index: 'ugovorna_kazna',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'otkazni_rok',
index: 'otkazni_rok',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'povrsina_m2',
index: 'povrsina_m2',
width: 80,
align: 'right',
editable: true,
search: false
}],
pager: '#pager5',
rowNum: 10,
rowList: [10, 20, 30],
sortname: 'zd.broj_dokumenta',
sortorder: "asc",
rownumbers: true,
autowidth: true,
viewrecords: true,
postData: {
sortiraj: '1234',
customVar2: 'customVal2'
},
caption: 'Преглед докумената'
});
jQuery("#list5").jqGrid('navGrid', '#pager5', {
del: false,
add: false,
edit: false
});
jQuery("#t_list5").append("<input type='button' value='Кликни ме' style='height:20px;font-size:-3'/>");
$("input", "#t_list5").click(function () {
alert("Поздрав, Ñамо теÑтирамо!!!!");
});
$("#list2").jqGrid({
url: 'js/JQgrid/griddok.php',
editurl: 'js/JQgrid/griddok.php',
datatype: 'json',
mtype: 'POST',
colNames: ['Број', 'Ð’Ñ€Ñта док.', 'Ðазив'],
colModel: [{
name: 'interni_broj',
index: 'zo.interni_broj',
width: 55,
editable: true,
search: true
},
//{
// name: 'zakupac',
// index: 'km.naziv_kom',
// width: 90,
// editable: true,
// search: false
//},
{
name: 'vrdok',
index: 'vrdok',
width: 80,
align: 'right',
editable: true,
search: false
},
{
name: 'naziv',
index: 'naziv',
width: 80,
align: 'right',
editable: true,
search: false
}],
pager: '#pager2',
rowNum: 10,
rowList: [10, 20, 30],
sortname: 'zda_id',
sortorder: "asc",
rownumbers: true,
autowidth: true,
viewrecords: true,
postData: {
sortiraj: '1234',
customVar2: 'customVal2'
},
caption: 'Преглед докумената'
});
$("#list2").jqGrid('navGrid', '#pager2', {
add: false,
edit: false,
del: false
});
jQuery("#t_list2").append("<input type='button' value='Click Me' style='height:20px;font-size:-3'/>");
$("input", "#t_list2").click(function () {
alert("Hi! I'm added button at this toolbar");
});
$("#list3").jqGrid({
url: 'js/JQgrid/gridOglas.php',
editurl: 'js/JQgrid/gridOglas.php',
datatype: 'json',
mtype: 'POST',
colNames: ['Објављено', 'ИÑтиче', 'Штампа/Сајт','Линк', 'Садржај'],
colModel: [
{
name: 'datum_objavljivanja',
index: 'datum_objavljivanja',
width: 55,
editable: true,
search: true
},
{
name: 'datum_isteka',
index: 'datum_isteka',
width: 55,
editable: true,
search: true
},
{
name: 'objavljeno',
index: 'objavljeno',
width: 90,
editable: true,
search: false
},
{
name: 'link_oglasa',
index: 'link_oglasa',
width: 90,
editable: true,
search: false
},
{
name: 'datoteka',
index: 'datoteka',
width: 255,
editable: true,
search: false
}
],
pager: '#pager3',
rowNum: 10,
rowList: [10, 20, 30],
sortname: 'datum_objavljivanja',
sortorder: "asc",
rownumbers: true,
autowidth: true,
viewrecords: true,
postData: {
sortiraj: '1234',
customVar2: 'customVal2'
},
caption: 'Преглед оглаÑа'
});
$("#list3").jqGrid('navGrid', '#pager3', {
add: false,
edit: false,
del: false
});
//za aneks ugovori
$("#list7").jqGrid({
url: 'js/JQgrid/grida2.php?q=1',
datatype: 'xml',
mtype: 'GET',
height: 80,
colNames: ['Број', 'Датум', 'ОпиÑ', ' Валута', 'Позив на број'],
colModel: [{
name: 'zao_id',
index: 'zao_id',
width: 135,
search: true
},
{
name: 'interni_broj',
index: 'interni_broj',
width: 135,
search: true
},
{
name: 'napomena',
index: 'napomena',
width: 135,
align: 'right',
search: true
},
{
name: 'interni_broj',
index: 'interni_broj',
width: 135,
search: true
},
{
name: 'napomena',
index: 'napomena',
width: 135,
align: 'right',
search: true
}],
rowNum: 30,
search: true,
rowList: [10, 20, 30],
sortname: 'zao_id',
sortorder: 'asc',
viewrecords: true,
caption: 'ÐнекÑи Уговори',
multiselect: false,
subGrid: true,
subGridUrl: 'js/JQgrid/subgrida2.php?q=2',
subGridModel: [{
name: ['Бр. уговора', 'Датум', 'ДелатноÑÑ‚', 'Рок закупа:', 'Почетак коришћења', 'Уговорна казна', 'Отказни рок', 'Валута плаћања', 'Површина'],
width: [60, 60, 60, 70, 100, 90, 100, 110]
}]
}
);
});
14:22

10/08/2009

One should debug the code with the server data. I see small inconsistents in sortname: 'zd.broj_dokumenta' and index: 'broj_dokumenta', twice column 'interni_broj' and name: 'napomena' definition (4th and 5th columns probably should be deleted) in the $("#list7") table. Morover you use in the tables on the page many columns with the same information like 'broj_dokumenta'. It is not clear from the code which data in every coulmn you use as the row id. It is important that the row ids will be used as id attribute of <tr> elements of tables. So it is mot permitted to have any id duplicates on one page.
I am not sure that any from above listed problem follow to the error which you have. I recommend in any way to include loadError event handle in all grids. Moreover it is good to examine the server response in case of "Loading" error. You can use Fiddler or Firebug to see raw HTTP requests and responce send from the server.
Best regards
Oleg
12:21

27/04/2010

Hello there !
I just found the same bug in my code, and it seems to be a bug in jqgrid, happening when a grid is loaded into a "closed" tab or accordion part.
With exactly the same code and the same data from the server, everything is fine in FF and Chrome, but in IE (6 in my case) the "Loading..." message box remains on top of the grid, but only the box. The text message itself is hidden :
Again, this problem occurs only into a block not displayed while the grid is loading. For example, in the active tab of a tabs group, the message would properly disappear.
Hope these precisions will help to understand the problem.
13:50

10/08/2009

About the problems in IE compatibility mode I recommend to read this answer inclusive many comments.
@ganlhi: If there are exist any other problem you should post the demo example (possibly simple) which can be used to reproduce the problem. I recommend everybody to make the demo as simple as possible. Typically during simplification of your original example you will see that after one step the problem is away and you will find the bug in your code.
Best regards
Oleg
Most Users Ever Online: 715
Currently Online:
78 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66