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

      0  

    Default


    this is the head of my html file:

    Code:
    <link rel="stylesheet" type="text/css" href="extensions/fileuploader/css/Ext.ux.IconCombo.css">
            <link rel="stylesheet" type="text/css" href="extensions/fileuploader/css/icons.css">
            <link rel="stylesheet" type="text/css" href="extensions/fileuploader/css/webpage.css">
            <link rel="stylesheet" type="text/css" href="extensions/fileuploader/css/filetree.css">
            <link rel="stylesheet" type="text/css" href="extensions/fileuploader/css/filetype.css">
            <link rel="stylesheet" type="text/css" href="extensions/fileuploader/css/famflag.css">
            <link rel="stylesheet" type="text/css" href="extensions/fileuploader/css/Ext.ux.IconCombo.css">
            <link rel="stylesheet" type="text/css" href="ext-2.1/resources/css/ext-all.css">   
            <link rel="stylesheet" type="text/css" href="ext-2.1/resources/css/xtheme-gray.css">
          
            <script type="text/javascript" src="ext-2.1/adapter/ext/ext-base.js"></script>       
            <script type="text/javascript" src="ext-2.1/ext-all.js"></script>
            <script type="text/javascript" src="extensions/fileuploader/js/Ext.ux.WebPage.js"></script>
            <script type="text/javascript" src="extensions/fileuploader/js/Ext.ux.form.BrowseButton.js"></script>
            <script type="text/javascript" src="extensions/fileuploader/js/Ext.ux.FileUploader.js"></script>
            <script type="text/javascript" src="extensions/fileuploader/js/Ext.ux.UploadPanel.js"></script>
            <script type="text/javascript" src="extensions/fileuploader/js/Ext.ux.ThemeCombo.js"></script>
            <script type="text/javascript" src="extensions/fileuploader/js/Ext.ux.IconCombo.js"></script>
            <script type="text/javascript" src="extensions/fileuploader/js/Ext.ux.LangSelectCombo.js"></script>
            <script type="text/javascript" src="extensions/fileuploader/local/en_US.js"></script>
    this is how my panel config looks :

    Code:
                                var uploadPanel = new Ext.ux.UploadPanel({
                                    title: 'Upload files',
                                    xtype:'uploadpanel',
                                    buttonsAt:'tbar',
                                    id:'uppanel',
                                    url:'ajax.php',
                                    path:'root',
                                    maxFileSize:1048576,
                                    enableProgress:false
                                });
                                
                                var uploadTabPanel= new Ext.TabPanel({
                                    activeTab: 0,
                                    border: false,
                                    frame: true,
                                    items: [uploadPanel]    
                                });
                                
                                var uploadWin = new Ext.Window({
                                    width:300,
                                    //minWidth:165,
                                    id:'winid',
                                    height:400,
                                    //minHeight:200,
                                    layout:'fit',
                                    border:false,
                                    closable:true,
                                    //closeAction: 'hide',
                                    title:'Window Title',
                                    iconCls:'window_icon',
                                    items:[uploadTabPanel]
                                 });
    and I in my Ext.ux.UploadPanel.js file I configured the busy icon class as follows:

    Code:
    /**
         * @cfg {String} workingIconCls iconClass to use for busy indicator
         */
        ,workingIconCls:'icon_waiting_ajax'
    
        // }}}
    The above 'icon_waiting_ajax' class works when applied to other iconCls configs, and never seems to attempt to get loaded when a file is uploaded...

  2. #332
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,138
    Vote Rating
    321
    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 found it. The mandatory class names for state icons are: ux-up-icon-{state}. States are done, failed, uploading, stopped, queued. These are used in template for DataView. If you want another icon, keep css class name and replace only url of the image.

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

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    I found it. The mandatory class names for state icons are: ux-up-icon-{state}. States are done, failed, uploading, stopped, queued. These are used in template for DataView. If you want another icon, keep css class name and replace only url of the image.

    You are the man Saki! Thanks so much for looking further into it for me, as I had left it aside and continued on the rest of my project planning to go back to it at the end.

    So it seems that regardless the class name setting in the uploadPanel.js config, the default state class will be used as defined in the template like you said:

    from UploadPanel.js

    Code:
    // create view
    Ext.apply(this, {
    items:[{
    xtype:'dataview'
    ,itemSelector:'div.ux-up-item'
    ,store:this.store
    ,selectedClass:this.selectedClass
    ,singleSelect:true
    ,emptyText:this.emptyText
    ,tpl: this.tpl || new Ext.XTemplate(
    '<tpl for=".">'
    + '<div class="ux-up-item">'
    // + '<div class="ux-up-indicator"> </div>'
    + '<div class="ux-up-icon-file {fileCls}"> </div>'
    + '<div class="ux-up-text x-unselectable" qtip="{fileName}">{shortName}</div>'
    + '<div id="remove-{[values.input.id]}" class="ux-up-icon-state ux-up-icon-{state}"'
    + 'qtip="{[this.scope.getQtip(values)]}"> </div>'
    + '</div>'
    + '</tpl>'
    Thanks again for your help.

    Now my other problem was getting IE7 to not attempt to open the file Im uploading to. I think it might have to do with the proper response header. I also remember seeing someone else having the same issue but can't seem to track down the post I read..

    -Ralph

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


    That config option is a relict of some stage of devel - it will be removed in final version.

    Your current problem is the server-side problem. Look at that direction..

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

      0  

    Default


    Ok, according to your instructions on supplying the correct JSON response from the server, I was setting the http response header like so:

    PHP Code:
    header('Content-Type: text/html, charset=utf-8'); 
    I just removed that line from my server script and it works fine...

    Should it not have been there in the first place?

  6. #336
    Sencha Premium Member hsurya's Avatar
    Join Date
    Feb 2008
    Posts
    12
    Vote Rating
    1
    hsurya is on a distinguished road

      0  

    Default FileTreePanel with Classic ASP back-end

    FileTreePanel with Classic ASP back-end


    I used to use classic ASP, with zero knowledge of PHP. So for a week I tried to make my own ASP back-end, and finally I got it.

    For those who is like me, only know classic ASP, I will share the work with a little donation. You then may ask through email further, and I will try to answer as long as I can, with the knowledge that brought me to make the FileTreePanel works. But I do not guarantee that the things may work on your server as it does on mine. So far it works well at least on IIS 5.1 Windows XP.

    The differences with Saki's example is that we can choose in which directory we want to upload using the UploadPanel.

    I will include on the script also the Ext JS tree working example using ASP generated JSON, i.e. two-trees and reorder examples.

    Sorry for everybody, especially Saki, that I wish some donation for sharing the ASP script. I am a poor student and I must do part-time work at the same time to cover my study expense. If you are not pleased or if this infringes the license, then I will remove this posting.

    See demo: http://hsurya.brinkster.net/filetree/filetree.asp

    Snapshot:

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


    No problem with asking for donation; I use the same for PHP backend.

    Good luck!

  8. #338
    Sencha Premium Member hsurya's Avatar
    Join Date
    Feb 2008
    Posts
    12
    Vote Rating
    1
    hsurya is on a distinguished road

      0  

    Default


    Quote Originally Posted by jsakalos View Post
    No problem with asking for donation; I use the same for PHP backend.

    Good luck!
    Thank you, Saki.. you are great!

  9. #339
    Ext User
    Join Date
    Jun 2008
    Posts
    11
    Vote Rating
    0
    calicoder is on a distinguished road

      0  

    Default form.submit() giving me problems

    form.submit() giving me problems


    I'm trying to hook this up to a servlet. I walked through the code and all looks well until I hit

    line 5222 in ext-all-debug.js
    Code:
    form.submit();
    On this line I get a dialog box from FF that asks if I'd like to save the file or open... behavior that is invoked when downloading files.

    I can't step into this call since the function part of the native JS libraries. Any help would be much appreciated

    Here is my client code
    Code:
    new Ext.Panel({ 
                            width:180
                            ,minWidth:165
                            ,id:'winid'
                            ,minHeigth:250
                            ,height:250
                            ,layout:'fit'
                            ,title:'UploadPanel'
                            ,iconCls:'icon-upload',
                            bodyStyle:'backgroundColor:#ffffff',
                            border:false,
                            items:[{
                                  xtype:'uploadpanel'
                                 ,buttonsAt:'tbar'
                                 ,id:'uppanel'
                                 ,url: 'admin?action=save-image'
                                 ,path:'root'
                                 ,maxFileSize:1048576  // 10 MB
                            }]
    })

  10. #340
    Ext User
    Join Date
    Jun 2008
    Posts
    11
    Vote Rating
    0
    calicoder is on a distinguished road

      0  

    Default


    FIXED my problem... classic contentType problem. I should've known

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