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?
I'm also getting this error in IE8. However, I'm not using formedit at all, just loading grid.formedit.js. Perhaps there's an problem where if you load grid.formedit.js and never use it, it breaks something?
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.
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:
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).
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 )
Post edited 15:45 – 17/06/2011 by beyazsapka Post edited 16:04 – 17/06/2011 by beyazsapka
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,""]; } } }