PDA

View Full Version : Problems loading data for edit_grid.html example in IE7



rajeev
20 Jul 2007, 12:57 PM
I downloaded the latest version 1.1 RC1 of Ext and tried the samples. They all work fine under FireFox. However, under IE7 I have trouble fetching/displaying xml data using the Ext.lib.Ajax.request() method. At first I was getting "Access denied..." errors. When I replaced the following code in edit-grid.js:

proxy: new Ext.data.HttpProxy({url: 'plants.xml'}),


with

proxy: new Ext.data.HttpProxy({url: 'http://localhost/plants.xml'}),

I was able to get past this error message. However, the data is still not displayed.
I have been able to use the XMLHttpRequest.onreadystatechange event to read the data from an XML file using the XMLHttpRequest object under IE7. But Ext.lib.Ajax does not use this method. It polls the status property of this object. It is returning 12029 for the status.

Am I missing some configuration setting under IE7? Or do I need to tweak something in Ext?

mystix
20 Jul 2007, 8:23 PM
http://getahead.org/bugs/browse/DWR-11

SSL?

rajeev
21 Jul 2007, 11:07 AM
Once I moved the xml files in the examples to a web server (in my case Tomcat) and changed the url to "http://localhost:8080/plants.xml", it all started working. It appears in IE7 (unlike FireFox) the XMLHttpRequest.open() method cannot load files from a local directory.

mystix
21 Jul 2007, 10:06 PM
huh :-/

all XHR (XML Http Request) examples require a webserver.
how did you manage to run them without one in the first place?