dimanche 27 avril 2014

Ext.Ajax.request not working on IE

Hi..Need help with this block of code...

Code:



var postData = {}; postData.csrfi = csrfi; postData.data = Ext.JSON.encode(quotations); Ext.Ajax.on('beforerequest', function(conn, options){ //console.log(conn, options); }); Ext.Ajax.request({ url: UrlGenerator.getControllerActionUrl('RfqSE', 'sendQuotations', { media: 'json'} ), params: postData, callback: function(options, success, response) { var showErrorMsg = true; if (success) { var obj = Ext.decode(response.responseText); if (obj && obj.success === true) { showErrorMsg = false; } } if (showErrorMsg) { Ext.Msg.alert("{{#error_title##}", "{{#error#}}"); } callback.call(); } });

...for some reason params are not sent to the server side... it's not working on ie 7,8... Haven't tried 9+.. On chrome and mozilla works as excepted.... Url is fine, checked on chrome, params are fine.. Have no idea actually what is wrong... pls help


Aucun commentaire:

Enregistrer un commentaire