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_Related Related Topics sp_TopicIcon
Object doesn't support this property or method (IE)
Tags: ie
24/09/2010
10:53
Avatar
mars wang
New Member
Members
Forum Posts: 1
Member Since:
24/09/2010
sp_UserOfflineSmall Offline

Hi tony,

I encountered the error "Object doesn't support this property or method" when using jqgrid 3.8 in IE (FF is fine).

The error appears inside jquery-1.4.2.min.js, code segment underlined:

global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}

Here is the code in JSP:

<link href="css/themes/smoothness/jquery-ui.css" media="screen" type="text/css" rel="stylesheet">
<link href="css/ui.jqgrid.css" media="screen" type="text/css" rel="stylesheet">
<!-- 'grid.locale' js must come first -->
<script src="js/jqgrid/grid.locale-en.js" type="text/javascript" ></script>
<script src="js/jqgrid/jquery.jqGrid.min.js" type="text/javascript" ></script>
<script type="text/javascript" >    
    $(function(){
        $("#test").text('<s:property value="remoteurl" />');
        $("#list2").jqGrid({
            url:'<s:property value="remoteurl" />',
            datatype: "json",
            mtype: "POST",
            colNames:['Inv No','Colour','B Price'],
            colModel:[
                {name:'id',index:'id', width:55},
                {name:'colour', index:'colour', width:90},
                {name:'bottlePrice',index:'bottlePrice', width:90},
            ],
            jsonReader : {
                root:"resultList",
                page: "page",
                total: "total",
                records: "record",
                id: "id",
                repeatitems: false
            },
            ajaxGridOptions:{async:false},            
            rowNum:10,
            rowList: [15,30,60],
            pager: '#pager2',
            sortname: 'id',
            viewrecords: true,
            sortorder:"desc",
            caption:"Wine List"
        });
    });
</script>

I've used Struts2 tag lib, here is the "remoteurl":

/WineTrader/SearchWine.action?keyword=Grand+Puy+Lacoste&amp;amp;keywordOption=2&amp;amp;vintage=&amp;amp;region=&amp;amp;size=&amp;amp;colour=&amp;amp;minScore=0&amp;amp;minPrice=0&amp;amp;maxPrice=

One day has been passed and no progress is done. Please help, thanks!

01/10/2010
10:12
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

HEllo,

This will not work in IE sinc of the not needed comma

            colModel:[
                {name:'id',index:'id', width:55},
                {name:'colour', index:'colour', width:90},
                {name:'bottlePrice',index:'bottlePrice', width:90}, <===== ERROR
            ],

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
24 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