PDA

View Full Version : Ext.Ajax.request return Ext.Ajax has no properties



etiennesamson
4 Aug 2007, 8:46 AM
Hi, I'm a new Extser,

I've a problem with the Ext.Ajax Class.
I try to trow a request with Ext.Ajax.request but I have the following error message in firebug: "Ext.Ajax has no properties".

I'm using standalone Extjs javascript, i'v well included the "ext-base.js" and "ext-all-debug.js" files in my html header and my ajax call is like this :

Ext.Ajax.request({
url :"json/arbo_config.php",
params : { action : 'getDate' },
method: 'GET',
success: function(){
alert("hi, how are you today");
}
});

If you have any ID, i'll be very gratefull.

Thanks

Etienne

jay@moduscreate.com
4 Aug 2007, 9:47 AM
try adding a failure function, does it work then?

Here is a wiki entry i did yesterday. see if it helps at all:
http://extjs.com/learn/Manual:Core:Ext.Ajax

etiennesamson
4 Aug 2007, 1:34 PM
Hi,

Thanks a lot, your answer helped me to open my mind :D

In fact I forgot to include the "ext-core.js" file.

It was normal firebug didn't reconise the Ext.Ajax's request method...

Thank you very much for your support

Etienne

mystix
4 Aug 2007, 11:43 PM
that's strange...

if your Ext includes are as you said


<script type="text/javascript" src="ext-base.js"></script>
<script type="text/javascript" src="ext-all-debug.js"></script>

then there's no need to include ext-core.js.

look the html files in the examples folder and you'll see what i mean.