Forum
15:16
29/09/2008
Hi Tony,
I was getting the error "Object doesn't support this property or method" in IE (but Firefox works fine). The problem relates to specifying a "onclickSubmit" or "afterSubmit" during a form add. I determined the problem is in grid.formedit.js on line 291:
if (!ret[2]) ret[2] = parseInt($($t).getGridParam('records'))+1;
ret is undefined at this point in my scenario. I changed line 291 to this:
if (!ret[2]) {
if ($.browser.msie) ret = [];
ret[2] = parseInt($($t).getGridParam('records'))+1;
}
I am probably doing something wacky since your examples seem to work in IE, but this did the trick for me. What are your thoughts?
-Paul
03:25
Moderators
30/10/2007
Hello,
I'm not sure, but ret array is defined at the begining (should check).
The most common problems in IE are that you have maybe unneeded
comma after the end of the properties.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
02:31
Moderators
30/10/2007
Hello,
Which version of jqGrid is used? How do yo load the files - do you use loader or minified version if it is 3.5?
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
07:48
Moderators
30/10/2007
Hello,
In some IE browsers you will have problems when you use the loader. Also load the needed modules in the head section of the html -one by one in order to work in all browsers.
Reagrds
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
10:49
30/07/2009
tony said:
Hello,
In some IE browsers you will have problems when you use the loader. Also load the needed modules in the head section of the html -one by one in order to work in all browsers.
Reagrds
Tony
Tony - you should be able to fix that in the loader by:
if (jQuery.browser.msie) {
document.write('<script type="text/javascript" src="'+filename+'"></script>');
} else {
IncludeJavaScript(filename);
}
The problem with IE and the IncludeJavaScript method, is that the resulting scripts get loaded "later" than inline scripts so any following inline scripts could execute before the grid code. (more accurately, I think they execute when the response is received from the server - so they /could/ execute before the following inline scripts, but dont usually do so).
Using document.write. the grid scripts are effectively inline, and so execute in the correct order with respect to each other, and with respect to other inline scripts (the document.write method also works for safari).
Mark
02:27
Moderators
30/10/2007
Mark,
Thanks.
Some history: The first releases of jqGrid come with the script as provided from you. This of course was before two years - so we do not have Sfari 4 and IE7 was just born. The script does not work correct with some IE6 and Safari versions < 4.
(I do not have time to investigate why it work ok with some IE6 and for some does not)
Instead I will put it again. (back to the future )
Thanks again.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
15:44
08/05/2011
Hi Tony,
jqGrid 4.0. I had written as a function custom_func Object does not support this property or method in IE7 and IE8 I get the error. How can I solve it. I wrote as follows fonkisyon.
function Kontrol(value, colname) {
var dizi = ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','h','i','x'];
if(value!=null || value!=''){
var varmi = dizi.indexOf(value);
if(varmi==-1){
return[false,"Girlen Değer 1 ile 30 arasında sayı veya h,i,x harfleri olmalıdır."];
}else{
return [true,""];
}
}
}
Thanks.
Most Users Ever Online: 715
Currently Online:
55 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