Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    2
    Vote Rating
    0
    mhdsherafat2 is on a distinguished road

      0  

    Default 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.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,408
    Vote Rating
    851
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You shouldn't have to. What error are you getting and when? With what version?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    2
    Vote Rating
    0
    mhdsherafat2 is on a distinguished road

      0  

    Default


    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.

  4. #4
    Sencha User
    Join Date
    Oct 2007
    Posts
    26
    Vote Rating
    0
    pgiraud is on a distinguished road

      0  

    Default


    I get the same problem.

    Here's a simple way to reproduce the bug:

    Code:
    var frame = document.createElement('iframe');
    Ext.fly(frame).on('load', function() {alert('loaded');});
    You should get an error looking like:
    Code:
    Uncaught TypeError: Cannot set property 'ext-element-12' of undefined
    Tested against Sencha Touch 2.1.1 GPL.

Thread Participants: 2

Tags for this Thread