-
20 Nov 2012 12:27 AM #1
Ext.Connection.upload Bug
Ext.Connection.upload Bug
Hello dears
i added the following code
if(!Ext.fly(frame).self.cache){
Ext.fly(frame).self.cache={};
}
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 #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
You shouldn't have to. What error are you getting and when? With what version?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
20 Nov 2012 9:06 AM #3
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 #4
I get the same problem.
Here's a simple way to reproduce the bug:
You should get an error looking like:Code:var frame = document.createElement('iframe'); Ext.fly(frame).on('load', function() {alert('loaded');});
Tested against Sencha Touch 2.1.1 GPL.Code:Uncaught TypeError: Cannot set property 'ext-element-12' of undefined
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote