X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6:/src/ext-core/src/data/Connection.js diff --git a/src/ext-core/src/data/Connection.js b/src/ext-core/src/data/Connection.js index 62f785d2..14cee019 100644 --- a/src/ext-core/src/data/Connection.js +++ b/src/ext-core/src/data/Connection.js @@ -1,8 +1,8 @@ /*! - * Ext JS Library 3.2.0 - * Copyright(c) 2006-2010 Ext JS, Inc. - * licensing@extjs.com - * http://www.extjs.com/license + * Ext JS Library 3.3.1 + * Copyright(c) 2006-2010 Sencha Inc. + * licensing@sencha.com + * http://www.sencha.com/license */ (function(){ var BEFOREREQUEST = "beforerequest", @@ -43,6 +43,7 @@ *

Be aware that file upload packets are sent with the content type multipart/form * and some server technologies (notably JEE) may require some custom processing in order to * retrieve parameter names and parameter values from the packet content.

+ *

Also note that it's not possible to check the response code of the hidden iframe, so the success handler will ALWAYS fire.

* @constructor * @param {Object} config a configuration object. */ @@ -243,7 +244,7 @@ Ext.Ajax.request({ failure: me.handleFailure, scope: me, argument: {options: o}, - timeout : o.timeout || me.timeout + timeout : Ext.num(o.timeout, me.timeout) }, form, serForm; @@ -261,7 +262,7 @@ Ext.Ajax.request({ if((form = Ext.getDom(o.form))){ url = url || form.action; - if(o.isUpload || /multipart\/form-data/i.test(form.getAttribute("enctype"))) { + if(o.isUpload || (/multipart\/form-data/i.test(form.getAttribute("enctype")))) { return me.doFormUpload.call(me, o, p, url); } serForm = Ext.lib.Ajax.serializeForm(form); @@ -355,20 +356,20 @@ Ext.Ajax.request({ action: form.action }; + /* + * Originally this behaviour was modified for Opera 10 to apply the secure URL after + * the frame had been added to the document. It seems this has since been corrected in + * Opera so the behaviour has been reverted, the URL will be set before being added. + */ Ext.fly(frame).set({ id: id, name: id, - cls: 'x-hidden' - - }); + cls: 'x-hidden', + src: Ext.SSL_SECURE_URL + }); doc.body.appendChild(frame); - //Reset the Frame to neutral domain - Ext.fly(frame).set({ - src : Ext.SSL_SECURE_URL - }); - // This is required so that IE doesn't pop the response up in a new window. if(Ext.isIE){ document.frames[id].name = id;