1. #141
    Ext User
    Join Date
    Oct 2007
    Posts
    5
    Vote Rating
    0
    issomesmo is on a distinguished road

      0  

    Default


    i've done that. what should do i do to refresh the filetreepanel?
    //uppanel -> uploadpanel
    var u = Ext.getCmp('uppanel');
    u.on('allfinished', function(event, target) {
    //webUploadFiles -> FileTreePanel
    var FileTreePanel = Ext.getCmp('webUploadFiles').getContextMenu();
    });

  2. #142
    Ext User
    Join Date
    Oct 2007
    Posts
    5
    Vote Rating
    0
    issomesmo is on a distinguished road

      0  

    Default


    the error response..is not working....even the example in your page...
    i tried with {"success":false,"error":"asdasd"} and {"success":false,"errors":["extFileGeneratedName":"error message"]}

  3. #143
    Ext User
    Join Date
    Mar 2008
    Posts
    32
    Vote Rating
    1
    dotchris is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    Do you mean file type icons? I so, make please sprites and css rules and contribute it to the community. It will be very welcome.
    I will work a bit on this in my free time. I would be glad to share. Any chance I can get a example on the listening method you mentioned earlier. I am fairly new to JS and EXTJS but am learning as fast as possible. Example would help greatly.

  4. #144
    Sencha - Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    26,262
    Vote Rating
    86
    jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold

      0  

    Default


    Quote Originally Posted by issomesmo View Post
    i've done that. what should do i do to refresh the filetreepanel?
    //uppanel -> uploadpanel
    var u = Ext.getCmp('uppanel');
    u.on('allfinished', function(event, target) {
    //webUploadFiles -> FileTreePanel
    var FileTreePanel = Ext.getCmp('webUploadFiles').getContextMenu();
    });
    You need to find the node you want to reload and then node.reload().

  5. #145
    Sencha - Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    26,262
    Vote Rating
    86
    jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold

      0  

    Default


    Quote Originally Posted by issomesmo View Post
    the error response..is not working....even the example in your page...
    i tried with {"success":false,"error":"asdasd"} and {"success":false,"errors":["extFileGeneratedName":"error message"]}
    What does it mean "is not working"? I have just tried it on demo page and it worked as expected. See attached image.
    Attached Images

  6. #146
    Sencha - Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    26,262
    Vote Rating
    86
    jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold

      0  

    Default


    Quote Originally Posted by dotchris View Post
    I will work a bit on this in my free time. I would be glad to share. Any chance I can get a example on the listening method you mentioned earlier. I am fairly new to JS and EXTJS but am learning as fast as possible. Example would help greatly.
    What listener do you mean? I'm losing track among all these posts...

  7. #147
    Ext User
    Join Date
    Mar 2008
    Posts
    32
    Vote Rating
    1
    dotchris is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    Listen to allfinished event of UploadPanel and refresh the tree from the handler.
    This one. I need to have my tree updated when a upload is completed. They are setup like the filetree in a sidebar and the uploadpanel in the main content area.

  8. #148
    Sencha - Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    26,262
    Vote Rating
    86
    jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold

      0  

    Default


    Once again, tree node you upload to refreshes automatically if you use embedded context menu. If you use separate upload panel then something like this:
    PHP Code:
    uppanel.on('allfinished', function() {
        
    // find node you've uploaded to
        
    node.reload();
    }); 

  9. #149
    Ext User
    Join Date
    Oct 2007
    Posts
    5
    Vote Rating
    0
    issomesmo is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    What does it mean "is not working"? I have just tried it on demo page and it worked as expected. See attached image.
    i know it looks right..but if i use error... it says unknown error and do not catch the error message.... and if i use errors...it does not decode the json message...yesterday at your site it wasnt catching the error message and showing unknown error....what should be the the json format for a single file/multiple files when it throws an error?

  10. #150
    Ext User
    Join Date
    Oct 2007
    Posts
    5
    Vote Rating
    0
    issomesmo is on a distinguished road

      0  

    Default


    i got it to work well...took a look at the json response today and i could figure out...
    {"success":false,"errors":{"extName":"ErroMsg"}}
    thank you.