Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





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

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Object doesn't support this property or method in IE
29/09/2008
15:16
Avatar
pjs67123
New Member
Members
Forum Posts: 1
Member Since:
29/09/2008
sp_UserOfflineSmall 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
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall 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 Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

02/10/2009
17:35
Avatar
dlee
Member
Members
Forum Posts: 15
Member Since:
24/09/2009
sp_UserOfflineSmall 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
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall 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 Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

05/10/2009
15:16
Avatar
dlee
Member
Members
Forum Posts: 15
Member Since:
24/09/2009
sp_UserOfflineSmall 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
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall 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 Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

06/10/2009
10:49
Avatar
markw65
Member
Members
Forum Posts: 179
Member Since:
30/07/2009
sp_UserOfflineSmall 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
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall 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 Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

17/06/2011
15:44
Avatar
beyazsapka
Member
Members
Forum Posts: 4
Member Since:
08/05/2011
sp_UserOfflineSmall 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: 715

Currently Online:
76 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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information