Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






Object doesn't support this property or method in IE

No Tags
UserPost

15:16
29/09/2008


pjs67123

New Member

posts 1

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
30/09/2008


tony

Sofia, Bulgaria

Moderator

posts 7375

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 PHP, ASP.NET and ASP.NET MVC visit us at our commercial products site – trirand.net – by the very same guys that created jqGrid.

17:35
02/10/2009


dlee

Member

posts 15

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?

02:31
05/10/2009


tony

Sofia, Bulgaria

Moderator

posts 7375

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 PHP, ASP.NET and ASP.NET MVC visit us at our commercial products site – trirand.net – by the very same guys that created jqGrid.

15:16
05/10/2009


dlee

Member

posts 15

I'm using the development version of jqGrid 3.5.3, the one where the main script inserts <script> elements into head to load the other scripts.

07:48
06/10/2009


tony

Sofia, Bulgaria

Moderator

posts 7375

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 PHP, ASP.NET and ASP.NET MVC visit us at our commercial products site – trirand.net – by the very same guys that created jqGrid.

10:49
06/10/2009


markw65

Member

posts 179

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
07/10/2009


tony

Sofia, Bulgaria

Moderator

posts 7375

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 Wink )

Thanks again.

Best Regards

Tony

For professional UI suites for PHP, ASP.NET and ASP.NET MVC visit us at our commercial products site – trirand.net – by the very same guys that created jqGrid.

15:44
17/06/2011


beyazsapka

Member

posts 4

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,""];
            }
        }
    }

Thanks.

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

215


Currently Online:

38 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 10274

Posts: 30353

Membership:

There are 11038 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1210

markw65 – 179

kobruleht – 144

phicarre – 132

YamilBracho – 124

Renso – 118

Administrators: admin (60 Posts)

Moderators: tony (7375 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information