Forum


13:16

16/09/2009

Hello,
I have a jqGrid set up that works okay in Firefox but I get the following error in Internet Explorer:
———————————————————————————–
Message: Object required
Line: 12
Char: 7209
Code: 0
URI: http://ajax.googleapis.com/aja.....ery.min.js
———————————————————————————–
You can see the page here.
Note that if I change the grid parameter datatype: "local" and use array data, the grid with load the data okay.
Thanks for any help!
Juan
21:15

16/09/2009

Here's the code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LenderCleaner.aspx.cs" Inherits="LenderCleaner" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
<link href="css/ui.jqgrid.css" rel="stylesheet" type="text/css" />
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
google.setOnLoadCallback(function() {
});
</script>
<script src="js/grid.common.js" type="text/javascript"></script>
<script src="js/grid.formedit.js" type="text/javascript"></script>
<script src="js/grid.locale-en.js" type="text/javascript"></script>
<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
var gridimgpath = 'css/smoothness/images';
jQuery("#list").jqGrid({
url:'DupeCleaner.aspx?lender=CHASE',
datatype: "xml",
colNames:['Lender Name'],
colModel:[
{name:'lender',index:'lender', width:600}
],
rowNum:100,
rowList:[100,200,300],
imgpath: gridimgpath,
pager: jQuery('#pager'),
sortname: 'lender',
viewrecords: true,
sortorder: "desc",
multiselect: true,
caption: "Possible Duplicates",
height: "800px"
}).navGrid('#pager',{add:false,del:false,edit:false,position:"right"});
});
</script>
</head>
<body>
<table id="list" class="scroll" cellpadding="0" cellspacing="0"></table>
<div id="pager" class="scroll"></div>
</body>
</html>
04:03

Moderators
30/10/2007

Hello,
1. Try to load jquery from the loacl host, not via google.
2.Change this
<script src="js/grid.common.js" type="text/javascript"></script>
<script src="js/grid.formedit.js" type="text/javascript"></script>
<script src="js/grid.locale-en.js" type="text/javascript"></script>
<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
To
<script src="js/grid.locale-en.js" type="text/javascript"></script>
<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="js/grid.common.js" type="text/javascript"></script>
<script src="js/grid.formedit.js" type="text/javascript"></script>
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.
14:27

16/09/2009

tony,
Thanks for your input. I tried that but it made no difference. Could it be the xml from the ajax?
If I load array data locally it works fine.
When I google some keywords related to the javascript error, this is the first hit:
http://www.trirand.com/blog/?p.....mment-3069
Is there any relation here to my issue?
The error is ocurring here in the jquery code:
return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
!!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument );
}
elem.documentElement is null. Actually, elem.xml is an empty string. The xml is getting lost somewhere.
08:40

Moderators
30/10/2007

Hello,
Not sure but try to add header in your server response - the php code is this:
header("Content-type: text/xml;charset=utf-8");
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.
Most Users Ever Online: 715
Currently Online:
70 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66