Results 1 to 4 of 4

Thread: Ext.Connection.upload Bug

    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
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Vote Rating
    1271
      0  

    Default

    You shouldn't have to. What error are you getting and when? With what version?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    2
    Vote Rating
    0
      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
      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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •