Tob1as
30 Nov 2011, 6:42 PM
Hi,
I was trying to retrieve data from php through Ext.Ajax. First from a localhost, later I want to access a REST service.
The http://localhost/test.php file returns {success:true}, when I open it in my browser.
When I trigger the ajax request from extjs, my responseText is empty. firebug reveals: OPTIONS test.php is triggered. See below.
I am new to version 4.x. I realized in version 4.x, there are now actionMethods for proxies. In the API for Ext.Ajax, I can not find any actionMethods or proxy property. How would I approach this?
Best regards and thank you in advance,
Tobi
Here my code:
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.Ajax.request({
url: 'http://localhost/test.php',
params: {
id: 1
},
success: function(response){
var text = response.responseText;
}
});
29713
I was trying to retrieve data from php through Ext.Ajax. First from a localhost, later I want to access a REST service.
The http://localhost/test.php file returns {success:true}, when I open it in my browser.
When I trigger the ajax request from extjs, my responseText is empty. firebug reveals: OPTIONS test.php is triggered. See below.
I am new to version 4.x. I realized in version 4.x, there are now actionMethods for proxies. In the API for Ext.Ajax, I can not find any actionMethods or proxy property. How would I approach this?
Best regards and thank you in advance,
Tobi
Here my code:
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.Ajax.request({
url: 'http://localhost/test.php',
params: {
id: 1
},
success: function(response){
var text = response.responseText;
}
});
29713