View Full Version : Newbie question: Object doesn't support this property or method
Axel Goldbach
5 Jun 2007, 7:36 AM
Hi,
For evaluation I installed ext on my web server and tried out the "XML Form" example.
I clicked on the button "Load" and the error "Object doesn't support this property or method" raised.
My debugger showed me the third line of ext-all.js. But because the code is "minified" I cannot see what went wrong.
Is there anywhere a "non-minified" version of ext (I use the LGPL)?
Or how can I debug this example to find the problem?
Thanks in advance,
Axel
Animal
5 Jun 2007, 7:44 AM
Use ext-all-debug.js
Hi Axel,
for debugging purposes, always use ext-all-debug.js instead of ext-all.js. It's a bigger file, but you get better error messages. :)
BernardChhun
5 Jun 2007, 7:45 AM
the unminified file is ext-all-debug.js
good luck on finding what went wrong. if you have any further troubles don't hesitate to post here.
Axel Goldbach
6 Jun 2007, 12:27 AM
Great, thank you very much.
Now I know the sample document "xml-form.xml" could not be loaded. The error occurs while ext tries to access an attribute of an empty XML document.
For testing reasons I changed the relative URL to an absolute.
fs.addButton('Load', function(){
fs.load({url:'xml-form.xml', waitMsg:'Loading'}); // xml-form.xml to absolute URL
});
Before that I checked the absolute URL with my browser showing me the document.
What can ext prevent from loading the doc?
Is there any logging during the framework steps that I can switch on?
Thanks in advance,
Axel
jsakalos
6 Jun 2007, 2:30 AM
What can ext prevent from loading the doc?
Is there any logging during the framework steps that I can switch on?
Re 1: It's client-server communication so it can be server problem, client problem, connectivity problem. Then, error in document, etc.
Re 2: AFAIK Ext doesn't log - logging to file is not possible as javascript has no access to the filesystem - but you can send your debug messages to the console.
console.log("message");
See: http://www.getfirebug.com/logging.html
Axel Goldbach
6 Jun 2007, 4:47 AM
Thank you.
My questions were too general. My mistake :-(
I'm talking about the "XML Form" example. I've installed ext on my web server and tried out the sample. And it doesn't work. Neither with the original code nor with the correct absolute URL. It's not an application developed by myself.
Does anybody know where in ext-all-debug.js I have to place some debug code to see what went wrong. I'm not so familiar with the framework yet.
The points of my interest are:
sending a request to the server and receiving the response
creation of the XML doc from the response
Thanks in advance,
Axel
jsakalos
6 Jun 2007, 5:58 AM
Thank you.
My questions were too general. My mistake :-(
I'm talking about the "XML Form" example. I've installed ext on my web server and tried out the sample. And it doesn't work. Neither with the original code nor with the correct absolute URL. It's not an application developed by myself.
Look in Firebug console tab what is the server response.
Does anybody know where in ext-all-debug.js I have to place some debug code to see what went wrong. I'm not so familiar with the framework yet.
It's not necessary to modify Ext to be able to debug your app. You can place a breakpoint in you application just before an Ext call and then you can step-in into the Ext.
The points of my interest are:
sending a request to the server and receiving the response
creation of the XML doc from the responseThanks in advance,
Axel
You can see both content of the server request and the server response in Firebug's console or net tab.
Axel Goldbach
11 Jun 2007, 5:44 AM
Thanks again.
With Firefox I don't have problems, everything works fine. IE doesn't work properly.
I'm a step further to the root of the problem: The XML document contained in the response from the server is empty:
Ext.form.Action.Load.success is the callback used by YAHOO.util.Connect.handleReadyState
handleReadyState has a parameter o. Amongst others this contains the loaded XML as a string and as an XML document.
The string is OK.
The XML document exists but it is empty.
After that I tried the following:
YAHOO.util.Connect =
{
_msxml_progid:[
// 'MSXML2.XMLHTTP.3.0',
// 'MSXML2.XMLHTTP',
'Microsoft.XMLHTTP'
],
...
Normally requests using 'Microsoft.XMLHTTP' work fine on my side.
But the result is the same: The field responseXML is still an empty XML document.
Thanks in advance,
Axel
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.