1. #321
    Ext JS Premium Member
    Join Date
    Oct 2007
    Posts
    57
    Vote Rating
    0
    cafebabe is on a distinguished road

      0  

    Default folder icons

    folder icons


    I'm having an issue with folder icons .... disregard... it's because i had not linked the resources to the correct place... PEBKAC error ...

  2. #322
    Ext User
    Join Date
    Sep 2007
    Location
    Vancouver, BC
    Posts
    33
    Vote Rating
    0
    juandj is on a distinguished road

      0  

    Default


    Quote Originally Posted by rtrocc View Post
    Thanks saki,

    The only thing I can think of is that I'm not including the filetree files and resources. Would this be a probable cause?

    Another thing I forgot to mention is that it seems the "working" or "busy" icon does not work with any components for me, not just this extension. Im not sure why... but if anyone has an idea, please share it
    You're probably not including all the css files required.... If you are, then use firebug under "Net" to see if some of the icons may be in the wrong paths..

  3. #323
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,557
    Vote Rating
    383
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Thanks juandj, you've replied exactly what I would do...
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  4. #324
    Sencha User
    Join Date
    Feb 2008
    Posts
    36
    Vote Rating
    0
    johnrembo is on a distinguished road

      0  

    Exclamation some notices

    some notices


    saki,

    firstly, thank you for a useful ux

    secondly, some notices regarding FileTreePanel.js misbehavior when faulty response is received on certain ajax call (method cmdCallback). This usualy happens when filetree.php contains errors and cannot return correct json response - for example "Warning: Invalid argument supplied for foreach() in /opt/filetree/filetree.php on line 99 null".

    1: aditional check is required for line 603 to avoid browser complain:
    PHP Code:
    - if(true === o.success) {
    +if(
    && true === o.success) { 
    2.: shouldn't "undo" work as well instead of only showing error message? For example unsuccessful rename attempt should be reverted to original node's name:
    lines 628<->665 should be alternatively performed after line 673.

    most likely all of above are allready corrected in your current development branch - please ignore my post in such case.

  5. #325
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,557
    Vote Rating
    383
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Re 1) PHP, or any other backend, must always return valid JSON, not its own error messages.

    Re 2) I'm not quite sure what's happening in your case but still I think that javascript client cannot handle/display php errors.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  6. #326
    Sencha User
    Join Date
    Feb 2008
    Posts
    36
    Vote Rating
    0
    johnrembo is on a distinguished road

      0  

    Default


    you have misunderstood me

    1.
    here's how it looks when I try to delete a node and ajax request fails (it might be may reasons - web server failure, php/perl script failure etc...).


    you're expecting a valid ajax response, but it can fail - you have even noted that:
    PHP Code:
    // process Ajax failure
    else {
        
    this.showError(response.responseText); 
    everything's fine excep the fact that object "o" doesn't exist and browser returns JS error.

    2. after any kind of failure (it doesn't matter if json returns error, or ajax response fails at all) - any operations performed should be "undone" - renamed back, moved back, undeleted.

    I've tried to rename node here, and request has failed. "Alcatel-blah" should become "Alcatel" - but it did not because options.params.cmd isn't processed


    I imagine the code part should look like the following:
    PHP Code:
    ,cmdCallback:function(optionssuccessresponse) {
            var 
    ionode;
            var 
    showMsg true;

            
    // process Ajax success
            
    if(true === success) {

                
    // try to decode JSON response
                
    try {
                    
    Ext.decode(response.responseText);
                }
                catch(
    ex) {
                    
    this.showError(response.responseText);
                }

                
    // process command success
                
    if(&& true === o.success) {
                    switch(
    options.params.cmd) {
                        case 
    'delete':
                            if(
    true !== this.eventsSuspended) {
                                
    this.fireEvent('delete'thisthis.getPath(options.node));
                            }
                            
    options.node.parentNode.removeChild(options.node);
                        break;

                        case 
    'newdir':
                            if(
    true !== this.eventsSuspended) {
                                
    this.fireEvent('newdir'thisoptions.node);
                            }
                        break;

                        case 
    'rename':
                            
    this.updateCls(options.nodeoptions.params.oldname);
                            if(
    true !== this.eventsSuspended) {
                                
    this.fireEvent('rename'thisoptions.nodeoptions.params.newnameoptions.params.oldname);
                            }
                        break;
                    }
                } 
    // eo process command success
                // process command failure
                
    else {
                    
    this.undoTasks(options);            
                    
    // show default message box with server error
                    
    this.showError(o.error response.responseText);
                } 
    // eo process command failure
            
    // eo process Ajax success

            // process Ajax failure
            
    else {
                
    this.undoTasks(options);
                
    this.showError(response.responseText);
            }
        } 
    // eo function cmdCallback
        
    ,undoTasks:function(options) {
            switch(
    options.params.cmd) {

                        case 
    'rename':
                            
    // handle drag & drop rename error
                            
    if(options.oldParent) {
                                
    options.oldParent.appendChild(options.node);
                            }
                            
    // handle simple rename error
                            
    else {
                                
    options.node.setText(options.oldName);
                            }
                            
    // signal failure to onNodeDrop
                            
    if(options.e) {
                                
    options.e.failure true;
                            }
                            if(
    true !== this.eventsSuspended) {
                                
    this.fireEvent('renamefailure'thisoptions.nodeoptions.params.newnameoptions.params.oldname);
                            }
                        break;

                        case 
    'newdir':
                            if(
    false !== this.eventsSuspended) {
                                
    this.fireEvent('newdirfailure'thisoptions.params.dir);
                            }
                            
    options.node.parentNode.removeChild(options.node);
                        break;

                        case 
    'delete':
                            if(
    true !== this.eventsSuspended) {
                                
    this.fireEvent('deletefailure'thisoptions.node);
                            }
                            
    options.node.parentNode.reload.defer(1options.node.parentNode);
                        break;

                        
    //default:
                            //this.root.reload();
                        //break;
                    
    }
        } 
    got my point?

    ps: i would have preffered to inform you on this subject in private message istead of messing here, but this forums doesn't seems to support PM

  7. #327
    Sencha User
    Join Date
    May 2007
    Posts
    113
    Vote Rating
    1
    Fabyo is on a distinguished road

      0  

    Default


    It could provide an example filetree.php and progress.php?

    thank you very much

    And the example of the testing site of this error:

    "Cannot Decode JSON Object"

  8. #328
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,557
    Vote Rating
    383
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  9. #329
    Sencha User
    Join Date
    Feb 2008
    Posts
    54
    Vote Rating
    0
    rtrocc is on a distinguished road

      0  

    Default


    Quote Originally Posted by juandj View Post
    You're probably not including all the css files required.... If you are, then use firebug under "Net" to see if some of the icons may be in the wrong paths..
    I am watching the images tab (under the net tab) in firebug, and I see every icon from the upload panel get loaded successfully. Now when I click the button to initiate the transfer, I never see a request to the 'working icon' image.

    Could it be something in the filetree (not fileuploader) extension that would affect the upload panel working icon?

    I was under the impression that if I only want to use the the file uploader , I just need to include those files...

  10. #330
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,557
    Vote Rating
    383
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Take a look at http://filetree.extjs.eu/source.php?...s/filetree.css . You need to include this file as it contains css also for UploadPanel. All ux-up-* classes.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


Thread Participants: 173

  1. danvega (10 Posts)
  2. jay@moduscreate.com (1 Post)
  3. jweber (1 Post)
  4. jt (1 Post)
  5. slacker775 (2 Posts)
  6. vmorale4 (12 Posts)
  7. stever (2 Posts)
  8. Dumbledore (9 Posts)
  9. ismoore (1 Post)
  10. mystix (8 Posts)
  11. sdrew (3 Posts)
  12. mxracer (1 Post)
  13. Foggy (3 Posts)
  14. madrabaz (8 Posts)
  15. Thorsten (4 Posts)
  16. Fabyo (1 Post)
  17. mschaefer (11 Posts)
  18. tchitani (3 Posts)
  19. loeppky (11 Posts)
  20. damsfx (1 Post)
  21. cmendez21 (7 Posts)
  22. anjelika (3 Posts)
  23. randcasburn (3 Posts)
  24. mjlecomte (3 Posts)
  25. esoteric (10 Posts)
  26. pravin_bluebird (1 Post)
  27. ZooKeeper (4 Posts)
  28. george.antoniadis (1 Post)
  29. fermo111 (1 Post)
  30. glaforge (2 Posts)
  31. Spirit (1 Post)
  32. newc_k (1 Post)
  33. adam.jimenez (9 Posts)
  34. juandj (10 Posts)
  35. rballman (2 Posts)
  36. Michelangelo (6 Posts)
  37. kk_kkk (7 Posts)
  38. issomesmo (5 Posts)
  39. mashiki (1 Post)
  40. juljupy (2 Posts)
  41. cafebabe (1 Post)
  42. ferrenliu (1 Post)
  43. smartlit (14 Posts)
  44. chunkT (1 Post)
  45. mankz (6 Posts)
  46. luisparada (4 Posts)
  47. iDevelopment (4 Posts)
  48. cblin (9 Posts)
  49. ljaeren (2 Posts)
  50. endlichstudent (9 Posts)
  51. RacingTomcat (1 Post)
  52. lobo-tuerto (5 Posts)
  53. maximumcoder (1 Post)
  54. calavera (3 Posts)
  55. ningle (5 Posts)
  56. jbird526 (4 Posts)
  57. sekundek (8 Posts)
  58. GokhanNL (1 Post)
  59. markkl (1 Post)
  60. basshcm (2 Posts)
  61. dbraiden (2 Posts)
  62. incaic (2 Posts)
  63. silcreval (6 Posts)
  64. sirioz10 (2 Posts)
  65. iulian (2 Posts)
  66. hsurya (7 Posts)
  67. johnrembo (2 Posts)
  68. fraric (4 Posts)
  69. Silver Paladin (5 Posts)
  70. Rafael (2 Posts)
  71. treqx (1 Post)
  72. spectrus (6 Posts)
  73. JoyfulBobHome (2 Posts)
  74. fxlacroix (3 Posts)
  75. jove4015 (1 Post)
  76. rtrocc (12 Posts)
  77. carl23934 (1 Post)
  78. ClemsonJeeper (1 Post)
  79. lagos.tout (2 Posts)
  80. craigharmonic (3 Posts)
  81. siebertm (3 Posts)
  82. zombeerose (11 Posts)
  83. keckeroo (1 Post)
  84. dotchris (7 Posts)
  85. fallenone (4 Posts)
  86. yhwh (1 Post)
  87. harirama (2 Posts)
  88. scroll (1 Post)
  89. mlim1972 (4 Posts)
  90. Arthur.Blake (1 Post)
  91. nileshgund (1 Post)
  92. blow (1 Post)
  93. piyushjain7 (1 Post)
  94. njeriextjs (3 Posts)
  95. hileon (1 Post)
  96. bomka (15 Posts)
  97. --maty (1 Post)
  98. WhiteRussian (1 Post)
  99. kpopov (1 Post)
  100. captainfish (5 Posts)
  101. Gosa (5 Posts)
  102. extjsF4n (1 Post)
  103. Chida (1 Post)
  104. Nthalk (2 Posts)
  105. nescha (2 Posts)
  106. jorgemuza (3 Posts)
  107. Eric24 (1 Post)
  108. edui (1 Post)
  109. shadoi (4 Posts)
  110. acidfilez (1 Post)
  111. BrainDrain (2 Posts)
  112. dimitrij.zub (1 Post)
  113. ixnixnixn (2 Posts)
  114. calicoder (2 Posts)
  115. wes (1 Post)
  116. mammerman (1 Post)
  117. Voronchuk (3 Posts)
  118. jwmianzu (3 Posts)
  119. gnomie (2 Posts)
  120. pflammer (2 Posts)
  121. The0s (2 Posts)
  122. gogogo521 (1 Post)
  123. tegel (2 Posts)
  124. wulfshayde (2 Posts)
  125. mikecx (2 Posts)
  126. paul@demiduk.com (1 Post)
  127. romulodelazzari (1 Post)
  128. sabline (2 Posts)
  129. mikecc (8 Posts)
  130. dan.plifeye (2 Posts)
  131. JGALFO (1 Post)
  132. Stephan Schrade (3 Posts)
  133. khurri.saleem (1 Post)
  134. voidus (1 Post)
  135. Shockdoc1 (1 Post)
  136. dport (3 Posts)
  137. jahman (3 Posts)
  138. Pachat (4 Posts)
  139. BIS (1 Post)
  140. sanraj (4 Posts)
  141. deemonas (1 Post)
  142. jpipas (2 Posts)
  143. martinrame (2 Posts)
  144. MrEnirO (2 Posts)
  145. elona (1 Post)
  146. cwford (6 Posts)
  147. triptonemeister (2 Posts)
  148. gonzalez (1 Post)
  149. wallacer (1 Post)
  150. Natalie (2 Posts)
  151. Phatnine (2 Posts)
  152. js_coder (3 Posts)
  153. Bobrovnik (4 Posts)
  154. kender (1 Post)
  155. avsomeren (2 Posts)
  156. rkulkarni (2 Posts)
  157. lxfliu (2 Posts)
  158. pbaker99 (2 Posts)
  159. naf305 (2 Posts)
  160. cybervirax (1 Post)
  161. AmrMostafa (1 Post)
  162. tumbochka (1 Post)
  163. exdelierium (1 Post)
  164. toubeau (4 Posts)
  165. nosferatum (1 Post)
  166. Boy.Kortman (1 Post)
  167. erlinis (1 Post)
  168. nhocoi (2 Posts)
  169. varunach (1 Post)
  170. _DR_ (1 Post)
  171. rodenp (1 Post)
  172. tutuianu_daniel (1 Post)
  173. Shabneez (2 Posts)