louiscooper
16 Apr 2012, 1:36 PM
var textFieldText = "folder\file";
var postData = {
'call': 'some_command',
'param': textFieldText,
};
Ext.Ajax.request({
url: "/rest/request/" + restSession,
method: 'POST',
params: JSON.stringify( postData ),
headers : {
'Authorization' : 'Basic ' + newBase64.encode(username+':'+password)
}
});
The problem with this is that in the header's form data has folder\\file instead of folder\file. My guess is that it's happening somewhere within Ext.Ajax.request.
Why the extra \ ???
How do I avoid ext JS from adding an extra \ ?
Thank you in advance for the help!
var postData = {
'call': 'some_command',
'param': textFieldText,
};
Ext.Ajax.request({
url: "/rest/request/" + restSession,
method: 'POST',
params: JSON.stringify( postData ),
headers : {
'Authorization' : 'Basic ' + newBase64.encode(username+':'+password)
}
});
The problem with this is that in the header's form data has folder\\file instead of folder\file. My guess is that it's happening somewhere within Ext.Ajax.request.
Why the extra \ ???
How do I avoid ext JS from adding an extra \ ?
Thank you in advance for the help!