View Full Version : [INFOREQ] Ext.Connection.upload Bug

20 Nov 2012, 12:27 AM
Hello dears
i added the following code

be fore calling this one:
Ext.fly(frame).on('load', Ext.Function.bind(this.onUploadComplete, this, [frame, options]), null, {single: true});

Am I right?:-?
thanks alot.

20 Nov 2012, 6:20 AM
You shouldn't have to. What error are you getting and when? With what version?

20 Nov 2012, 9:06 AM
Great you mitchel,
I'm really sorry for my hurring.
First of all Excuse me for bad English writing.
I was trying to upload a form with a file input. so i recieved an exception for first time that the cache (I think it is an static property). but for other times it works.
however it diddn't fire onload event of added iframe tag.
by this code i resolved the problem of first time exception. but i couldn't resolve the onload event problem.
if it's possible for you, plz test it on Ext.Connection.upload(form,url,param,options).
my email is mhdsherafat@(gmail|yahoo).com
i am realy interest to learn more things of you and help others.
Thank you alot.
With alot of Pretty Usefule wishes for you.
in the refuge of god.

8 Mar 2013, 2:07 AM
I get the same problem.

Here's a simple way to reproduce the bug:

var frame = document.createElement('iframe');
Ext.fly(frame).on('load', function() {alert('loaded');});

You should get an error looking like:

Uncaught TypeError: Cannot set property 'ext-element-12' of undefined

Tested against Sencha Touch 2.1.1 GPL.