Oct 26, 2012, 10:32 AM
[CLOSED] Ext.net.DirectMethod.request returning [object Object] instead of string/RESPONSE is empty
function setBackground() {
Ext.net.DirectMethod.request({
url: "/Home/setStyleTest",
cleanRequest: true,
params: {
validNumber: 'txt_ES_SD'
},
success: function (styleString) {
console.log("Success : " + styleString);
Ext.getCmp('txt_ES_SD').setFieldStyle(styleString.toString());
}
});
//App.txt_ES_SD.setFieldStyle('background-color: red');
//console.log("style : " + App.txt_ES_SD.getFieldStyle());
}
public string setStyleTest(String componentId)
{
string styleString = "background-color: red";
return styleString;
}
console : [object Object] POST : validNumber txt_ES_SD
RESPONSE : {} <------ empty ???
So, why is the response empty ? It is set to "background-color: red"
Regards,
Holger
Last edited by Daniil; Oct 29, 2012 at 10:25 AM.
Reason: [CLOSED]