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
Grid Will Not Load XML Data in Internet Explorer (Works in Firefox)
16/09/2009
13:16
Avatar
juan
Member
Members
Forum Posts: 4
Member Since:
16/09/2009
sp_UserOfflineSmall Offline

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

16/09/2009
21:15
Avatar
juan
Member
Members
Forum Posts: 4
Member Since:
16/09/2009
sp_UserOfflineSmall Offline

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>

18/09/2009
04:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

18/09/2009
14:27
Avatar
juan
Member
Members
Forum Posts: 4
Member Since:
16/09/2009
sp_UserOfflineSmall Offline

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:

isXMLDoc: function( elem ) {
        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.

21/09/2009
08:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

21/09/2009
11:08
Avatar
juan
Member
Members
Forum Posts: 4
Member Since:
16/09/2009
sp_UserOfflineSmall Offline

Tony,

Thank you so much for your time and suggestions.  I changed the Content-type like you suggested and that worked!

I was using "application/xhtml+xml;charset=utf-8".

Thanks again,

Juan

11/11/2009
18:22
Avatar
Victor Garcia
Guest
Guests

Thanks thanks thanks!!! 😀

15/02/2010
13:30
Avatar
biochoc
Member
Members
Forum Posts: 3
Member Since:
11/02/2010
sp_UserOfflineSmall Offline

What's wrong with this ? I have the same problem on IE Frown...

All is right in Firefox but IE6, always and always problems... And lost hours...

Please help...

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information