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

      0  

    Default


    hi, Saki:

    after straight 2 day , i've finished the most function except upload ,it make me crazing.
    so ,i come here to look for your help.

    it is very strange. i know that you code is server side independent.

    so I selected java servlet as my serverside laguage. the structure of processing fuction of serverside was just like this:
    Code:
    function_name(.....){
        String cmd = request.getParameter("cmd");  // get the cmd parameter from client.
        if(cmd.equal("get")){
              ..... //refreshing the tree view.
        }
        if(cmd.equal("download")){
            ....//downloading the selected file..
        }
        if(cmd.equal("upload")){
        ....//upload files....
        }
    }
    all the operation used this entrance function ,i tested most operation except upload, they worked well, but when i tried to test the file upload by selecting the file , and clicking the button "upload",,exception happened.
    it jumped the function precisely but it can not even get the value of 'cmd' parameter, so it can not enter the related code to going on ....(comment: i don't modified any js code except filetree.js , pointing my root and url by constructor)

    after tracked the code with firebug. i find something in the fileuploader.js
    Code:
    ,uploadFile:function(record, params) {
    		// request upload
    		Ext.Ajax.request(o);
    		// todo:delete after devel
    		this.getIframe.defer(100, this, [record]);
    	} // eo function uploadFile
    It caused by the line "COLOR="Red"]Ext.Ajax.request(o);[/COLOR]" .. i check the object 'o' by firebug, and find ,when excute this line. every element and their values was well ,but when it was excuted , it jumped the funtion mentioned above, and can not get any values of any parameter from the client ,such as the value of 'cmd' and 'dir' was null.... that makes me sadly.
    finally ,i insteaded that line with following code:
    Code:
    var temp = '../../../../../ext/filetree.do?method=loadFiles'+'&cmd='+'upload'+'&path='+this path
    	// request upload
    		Ext.Ajax.request(o);
    thus,it works when runing. i can get the value the parameters via this . but , only those parameters connected by char '&'..

    is this a bug? or it's my faults?

    i coundn't sure if i expressed clearly .

    so any useful tip and help is appreciated!!!

    thanks in advance,, Bye

    kk_kkk

  2. #522
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    652
    Vote Rating
    0
    Dumbledore is on a distinguished road

      0  

    Default error when use close in allfinished (IE6)

    error when use close in allfinished (IE6)


    Hi,

    i try to use automaticly close of the uploadpanel in the allfinished event:

    Code:
    					listeners: {
    						'allfinished': {
    							fn: function(e){
    								this.fileStore.reload();
    								
    								uploadWin.close();
    							},
    							scope: this
    						}
    					}
    With firefox all runs fine, with IE a Error occurs in updateButtons(). Can someone confirm this?

    Bye, Dumbledore

  3. #523
    Ext User
    Join Date
    Jul 2008
    Posts
    9
    Vote Rating
    0
    mikecc is on a distinguished road

      0  

    Default


    Hey Saki, I've been slowly getting your FileTreePanel to work with my Ruby on Rails setup.

    There is one thing that I am doing that I probably shouldn't be doing: passing more than is required than the "text" "leaf" and other fields that your plugin uses. The reason being is I am converting my objects in Ruby on Rails to straight JSON, and there are other fields in the model that are used for other parts of the code. I figured FileTreePanel would just ignore these other fields, and it has. But lately I have been getting some weird errors when having more than one leaf (which has a ton of extra info) and I am getting this error:

    I.attributes[F] is undefined

    It doesn't let me open up the Root by pressing the '+'. Firebug has more info below, with all the "undefined" words highlighted.

    TreeDropZone()([Node 194] loaded=false loading=false childrenRendered=false, [Node ynode-41] loaded=false loading=false childrenRendered=false)ext-all....217306295 (line 107)
    clearGrouping()(function(), undefined)ext-all....217306295 (line 55)
    AsyncTreeNode()(function(), undefined)ext-all....217306295 (line 102)
    TreeDropZone()([Node ynode-7] loaded=true loading=false childrenRendered=false)ext-all....217306295 (line 107)
    EventManager()()ext-all....217306295 (line 12)
    EventManager()()ext-all....217306295 (line 12)
    TreeEventModel()("beforechildrenrendered", [Node ynode-7] loaded=true loading=false childrenRendered=false, undefined, undefined, undefined, undefined, undefined)ext-all....217306295 (line 99)
    clearGrouping()("beforechildrenrendered")ext-all....217306295 (line 55)
    AsyncTreeNode()(undefined)ext-all....217306295 (line 102)
    AsyncTreeNode()(undefined, undefined, undefined)ext-all....217306295 (line 102)
    TreeNodeUI()(undefined, undefined, undefined)ext-all....217306295 (line 103)
    TreeNodeUI()(undefined, undefined, undefined)ext-all....217306295 (line 103)
    getViewWidth()()ext-base...217306295 (line 9)
    TreeFilter()(Object tId=0 status=200 statusText=OK)ext-all....217306295 (line 105)
    TreeFilter()(undefined, undefined, undefined)ext-all....217306295 (line 105)
    TreeFilter()(Object tId=0 status=200 statusText=OK)ext-all....217306295 (line 105)
    getViewWidth()(function(), Object baseParams=Object url=/account/ftp events=Object, Object 0=Object 1=Object, undefined)ext-base...217306295 (line 9)
    Updater()(Object tId=0 status=200 statusText=OK)ext-all....217306295 (line 17)
    getViewWidth()(Object conn=XMLHttpRequest tId=0, Object scope=Object argument=Object timeout=30000, undefined)ext-base...217306295 (line 10)
    getViewWidth()()ext-base...217306295 (line 10)

    [Break on this error]
    Ext.tree.TreeSorter=function(B,C){Ext.ap...dered){this.doSort.defer(1,this,[B])}}};

    Can you shed any light on what could be going on?

  4. #524
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,135
    Vote Rating
    322
    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 cannot spot the error from the above stack trace. First, include ext-all-debug.js for development phase - it can give you more human readable output.

  5. #525
    Ext User
    Join Date
    Jul 2008
    Posts
    9
    Vote Rating
    0
    mikecc is on a distinguished road

      0  

    Default


    Saki, I fixed it. Basically, my JSON response was kind of broken, or least not one that FileTreePanel wanted. It was [ {json..............} ], []. The empty brackets were screwing things up.

  6. #526
    Ext User
    Join Date
    Jul 2008
    Posts
    9
    Vote Rating
    0
    mikecc is on a distinguished road

      0  

    Default


    Is there a way to pass the "node" number that gets passed along with folders? What field do I have to populate to get that node passed for files as well?

  7. #527
    Ext User
    Join Date
    Jan 2008
    Posts
    28
    Vote Rating
    0
    sekundek is on a distinguished road

      0  

    Default


    A while ago I was asking about controling downloading. I manage to get this work in FF but not with IE. In file FileTreePanel.js in function downloadFile:function(path) there is

    Ext.EventManager.on(frame, 'load', callback, this);

    I add some code in this callback but in IE this load is not fired at all. If I output clasic text or html in my download backend instead of binary download file event is fired.

    Maybe I set the wrong Headers while downloading. I'm pulling my hair the last hours so I would be glad if someone have any clue what might be wrong here.

    regards

    Uros

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


    You can pass anything - it is added to node.attributes, the only question is how do you want to process it at client side.

  9. #529
    Ext User
    Join Date
    Jul 2008
    Posts
    9
    Vote Rating
    0
    mikecc is on a distinguished road

      0  

    Default


    Well then my question becomes, is there an easy way for leaves to also send the server their node # like for folders? I'm sorry, I do not understand how I would use node.attributes

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


    @sekundek, yes it can be because of headers. First of all, you have to send Content-Disposition: attachment header.

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)

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar