Forum

May 22nd, 2014
A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Object doesn't support this property or method in IE
29/09/2008
15:16
pjs67123
New Member
Forum Posts: 1
Member Since:
29/09/2008
Offline

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

30/09/2008
03:25
tony
Sofia, Bulgaria
Moderator
Forum Posts: 7641
Member Since:
30/10/2007
Offline

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.
02/10/2009
17:35
dlee
Member
Forum Posts: 15
Member Since:
24/09/2009
Offline

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?

05/10/2009
02:31
tony
Sofia, Bulgaria
Moderator
Forum Posts: 7641
Member Since:
30/10/2007
Offline

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.
05/10/2009
15:16
dlee
Member
Forum Posts: 15
Member Since:
24/09/2009
Offline

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.

06/10/2009
07:48
tony
Sofia, Bulgaria
Moderator
Forum Posts: 7641
Member Since:
30/10/2007
Offline

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.
06/10/2009
10:49
markw65
Member
Forum Posts: 179
Member Since:
30/07/2009
Offline

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

07/10/2009
02:27
tony
Sofia, Bulgaria
Moderator
Forum Posts: 7641
Member Since:
30/10/2007
Offline

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.
17/06/2011
15:44
beyazsapka
Member
Forum Posts: 4
Member Since:
08/05/2011
Offline

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 215

Currently Online:
55 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1233

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11309

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10520

Posts: 31066

Newest Members: HamidM, thaiphong.pham, walloud, theo121, trollbits, mbhosale.work

Moderators: tony: 7641, Rumen[Trirand]: 81

Administrators: admin: 61

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information