PDA

View Full Version : Please help with an ajax request problem.



gevik
6 Dec 2009, 2:14 PM
(sorry for the repost)

Hi,

I have the following code:


var conn = new Ext.data.Connection();
conn.request({
url: window.location,
method: 'POST',
params: params,
success: function(response,options)
{
var params = options.params;
alert(response.responseText);
},
failure: function(response)
{
alert('failed:' + response.responseText);
}
});


This code works fine with adapter/ext/extjs-base.js but it fails to work with adapter/jquery/ext-jquery-adapter.js

Instead of a POST request, the jquery adapter sends a GET request without any parameters.

What am I doing wrong here?