1. #511
    Ext User
    Join Date
    Jul 2008
    Posts
    3
    Vote Rating
    0
    wulfshayde is on a distinguished road

      0  

    Default


    Not suprisingly, it was programmer error at the end of the day. I was sending the upload to a non-existent file via the url attribute. Forgot I moved a folder which contained the CFC's. My bad. Awesome tool by the way, and thanks so much for putting so much of your time into it!

  2. #512
    Ext User
    Join Date
    Oct 2007
    Posts
    37
    Vote Rating
    0
    kk_kkk is on a distinguished road

      0  

    Default


    hi,saki
    does the jsonstring from backend must be like this:
    [{"text":"New listing notes in doc format","iconCls":"file-doc","disabled":false,"leaf":true,"qtip":"Size: 1047552"},{"text":"meeting notes in pdf format","iconCls":"file-pdf","disabled":false,"leaf":true,"qtip":"Size: 1047552"}]

    i mean ,if it's will work when like following:

    [{"text":"New listing notes in doc format","disabled":false,"leaf":true,"iconCls":"file-doc","qtip":"Size: 1047552"},{"text":"meeting notes in pdf format","disabled":false,"leaf":true,"iconCls":"file-pdf","qtip":"Size: 1047552"}]

    many thanks !

  3. #513
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,509
    Vote Rating
    374
    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


    I do not see any difference at the first glance.
    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. #514
    Ext User
    Join Date
    Oct 2007
    Posts
    37
    Vote Rating
    0
    kk_kkk is on a distinguished road

      0  

    Default


    well, it just change the order of the field.


    i meet a big problem that trouble me (refer attached pic)

    when i return the json string from backend like the following:

    [{"text":"a","disabled":false,"leaf":false,"cls":"folder"},{"text":"a.txt","disabled":false,"leaf":true,"cls":"file-txt","qtip":"Size: 1047552"}]

    the browser can show the right fold and file structure, so ,i think there is no errors in the backend although the order is a litter different from the one in the "FileTreePanel Client-Server Interface Specification" .

    but there are some errors when tree showed in front of the broswer.

    you may see from the attached pic, the tree looks strange.. i guess it's the errors of css file.so i try to del a line in the treefile.html
    <link rel="stylesheet" type="text/css" href="./css/filetype.css">
    when finished ,i find the leaf node of the tree is normal except showing the default icon of ext.

    and i change a line in the filetree.css
    from

    .folder {
    background-image:url(../ext/resources/images/default/tree/folder.gif) ! important;
    /* background-repeat:no-repeat; */
    }

    to
    .folder {
    background-image:url(../ext/resources/images/default/s.gif) ! important;
    /* background-repeat:no-repeat; */
    }
    well, everything is well when finished but when i create a new folder by the top menu, i notice there's no folder icon of the new line.

    i think ,this is not correct method to solve the questions that i meet.

    so any advices is kind. million thanks !

    kk_kkk
    Attached Images

  5. #515
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,509
    Vote Rating
    374
    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


    The order in Json doesn't matter. Your problem is related to missing/conflicting css.
    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. #516
    Ext User
    Join Date
    Oct 2007
    Posts
    37
    Vote Rating
    0
    kk_kkk is on a distinguished road

      0  

    Default


    hi,saki, thanks your quick reply and give the tip ,i'll try later

    I entirely downloaded the filetree.zip and edited only the filetree.js and FiletreePanel.js
    I doesn't change any other files.
    and, I tested the filetree.html in the same project that running the Desktop project published in the commutity.

    is it the css conflect in the desktop.html ?
    Code:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Ext 2.0 Desktop Sample App</title>
    
        <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
        <!-- GC -->
     	<!-- LIBS -->
     	<script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
     	<!-- ENDLIBS -->
    
        <script type="text/javascript" src="../../ext-all.js"></script>
    
        <!-- DESKTOP -->
        <script type="text/javascript" src="js/StartMenu.js"></script>
        <script type="text/javascript" src="js/TaskBar.js"></script>
        <script type="text/javascript" src="js/Desktop.js"></script>
        <script type="text/javascript" src="js/App.js"></script>
        <script type="text/javascript" src="js/Module.js"></script>
        <script type="text/javascript" src="sample.js"></script>
    
        <link rel="stylesheet" type="text/css" href="css/desktop.css" />
    ..... 
    other my own css...
    ...
    i think ,maybe i should first try to run the filetree.html in the new project and note if the errors will happen.

  7. #517
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,509
    Vote Rating
    374
    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


    Well, if you've changed FileTreePanel.js then you're on your own. Check with firebug if all your files are loaded from server.
    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


  8. #518
    Ext User
    Join Date
    Oct 2007
    Posts
    37
    Vote Rating
    0
    kk_kkk is on a distinguished road

      0  

    Default


    HI saka
    i try again , and solved the background of folder errors ,when i commented the code of the filetree.css like the following:
    Code:
    .folder {
    /*background-image:url(../ext/resources/images/default/tree/folder.gif) ! important;
     background-repeat:no-repeat; */
    }
    but errors related to the background of leaf node still existed. I notice that the icon of 'a.pdf' just the default icon of extjs. and not change at all during the whole process. I checked and tracked the code with firebug,but want to find what had hanppened when the json object was returned from the backend,but i failed.

    so ,could you show me some tips that how the json object returned from backend is used and read by the js file in order to show correct icon related to special file-type. Is the orginal load of tree only related to the filetreepanel.js? i really don't find any code Or Callback fuction to deal with any field of this json.


    Thanks in advance.



    kk_kkk

  9. #519
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,509
    Vote Rating
    374
    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


    I have no other example than that on demo page. If you enter the thin ice of modifying sources, including css, then you're on your own. I cannot handle modifications of all users.
    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


  10. #520
    Ext User
    Join Date
    Oct 2007
    Posts
    37
    Vote Rating
    0
    kk_kkk is on a distinguished road

      0  

    Default


    hi ,saki

    i solved the questions i meeted.by reading the code carefully

    i find that it's just the faults from the backend. and not be related to the source files in the treefile.zip. because I printed the json from backend like this

    Code:
    [
    {"text":"b","cls":"folder","disabled":false,"leaf":false},
    {"text":"a.txt","cls":"file-txt","disabled":false,"leaf":true,"qtip":"Size: 1047552"}
    ]
    not like this:
    Code:
    [
    {"text":"b","iconcls":"folder","disabled":false,"leaf":false},
    {"text":"a.txt","iconCls":"file-txt","disabled":false,"leaf":true,"qtip":"Size: 1047552"}
    ]
    thank your helps in advance!


    kk_kkk

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)