Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #751
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    I see the confusion - I was basing my changes off the ux code from the Ext 3.0.2 build. Here is the full file including those changes.

    Code:
    /*!
     * Ext JS Library 3.0.2
     * Copyright(c) 2006-2009 Ext JS, LLC
     * licensing@extjs.com
     * http://www.extjs.com/license
     */
    Ext.ns('Ext.ux.form');
    
    /**
     * @class Ext.ux.form.FileUploadField
     * @extends Ext.form.TextField
     * Creates a file upload field.
     * @xtype fileuploadfield
     */
    Ext.ux.form.FileUploadField = Ext.extend(Ext.form.TextField,  {
        /**
         * @cfg {String} buttonText The button text to display on the upload button (defaults to
         * 'Browse...').  Note that if you supply a value for {@link #buttonCfg}, the buttonCfg.text
         * value will be used instead if available.
         */
        buttonText: 'Browse...',
        /**
         * @cfg {Boolean} buttonOnly True to display the file upload field as a button with no visible
         * text field (defaults to false).  If true, all inherited TextField members will still be available.
         */
        buttonOnly: false,
        /**
         * @cfg {Number} buttonOffset The number of pixels of space reserved between the button and the text field
         * (defaults to 3).  Note that this only applies if {@link #buttonOnly} = false.
         */
        buttonOffset: 3,
        /**
         * @cfg {Object} buttonCfg A standard {@link Ext.Button} config object.
         */
    
        // private
        readOnly: true,
    
        /**
         * @hide
         * @method autoSize
         */
        autoSize: Ext.emptyFn,
    
        // private
        initComponent: function(){
            Ext.ux.form.FileUploadField.superclass.initComponent.call(this);
    
            this.addEvents(
                /**
                 * @event fileselected
                 * Fires when the underlying file input field's value has changed from the user
                 * selecting a new file from the system file selection dialog.
                 * @param {Ext.ux.form.FileUploadField} this
                 * @param {String} value The file value returned by the underlying file input field
                 */
                'fileselected'
            );
        },
    
        // private
        onRender : function(ct, position){
            Ext.ux.form.FileUploadField.superclass.onRender.call(this, ct, position);
    
            this.wrap = this.el.wrap({cls:'x-form-field-wrap x-form-file-wrap'});
            this.el.addClass('x-form-file-text');
            this.el.dom.removeAttribute('name');
            this.createFileInput();
    
            var btnCfg = Ext.applyIf(this.buttonCfg || {}, {
                text: this.buttonText
            });
            this.button = new Ext.Button(Ext.apply(btnCfg, {
                renderTo: this.wrap,
                cls: 'x-form-file-btn' //+ (btnCfg.iconCls ? ' x-btn-icon' : '')
            }));
    
            if(this.buttonOnly){
                this.el.hide();
                this.wrap.setWidth(this.button.getEl().getWidth());
            }
    
            this.bindListeners();
            this.resizeEl = this.positionEl = this.wrap;
        },
        
        bindListeners: function(){
            this.fileInput.on({
                scope: this,
                mouseenter: function() {
                    this.button.addClass(['x-btn-over','x-btn-focus'])
                },
                mouseleave: function(){
                    this.button.removeClass(['x-btn-over','x-btn-focus','x-btn-click'])
                },
                mousedown: function(){
                    this.button.addClass('x-btn-click')
                },
                mouseup: function(){
                    this.button.removeClass(['x-btn-over','x-btn-focus','x-btn-click'])
                },
                change: function(){
                    var v = this.fileInput.dom.value;
                    this.setValue(v);
                    this.fireEvent('fileselected', this, v);    
                }
            }); 
        },
        
        createFileInput : function() {
            this.fileInput = this.wrap.createChild({
                id: this.getFileInputId(),
                name: this.name||this.getId(),
                cls: 'x-form-file',
                tag: 'input',
                type: 'file',
                size: 1
            });
        },
        
        reset : function(){
            this.fileInput.remove();
            this.createFileInput();
            this.bindListeners();
            Ext.ux.form.FileUploadField.superclass.reset.call(this);
        },
    
        /**
         * Detaches the input file without clearing the value so that it can be used for 
         * other purposes (e.g. uploading).
         * 
         * The returned input file has all listeners applied to it by this class removed.
         * @return {Ext.Element} the detached input file element.
         */    
        detachFileInput : function(){
            var result = this.fileInput;
            
            this.fileInput.removeAllListeners();
            this.fileInput = null;        
            this.id = Ext.id(); //avoid dom conflicts
            this.createFileInput();
            this.bindListeners();
            
            return result;
        },
        
        /**
         * @return {Ext.Element} the input file element
         */
        getFileInput: function(){
            return this.fileInput;
        },  
        
        // private
        getFileInputId: function(){
            return this.id + '-file';
        },
    
        // private
        onResize : function(w, h){
            Ext.ux.form.FileUploadField.superclass.onResize.call(this, w, h);
    
            this.wrap.setWidth(w);
    
            if(!this.buttonOnly){
                var w = this.wrap.getWidth() - this.button.getEl().getWidth() - this.buttonOffset;
                this.el.setWidth(w);
            }
        },
    
        // private
        onDestroy: function(){
            Ext.ux.form.FileUploadField.superclass.onDestroy.call(this);
            Ext.destroy(this.fileInput, this.button, this.wrap);
        },
        
        onDisable: function(){
            Ext.ux.form.FileUploadField.superclass.onDisable.call(this);
            this.doDisable(true);
        },
        
        onEnable: function(){
            Ext.ux.form.FileUploadField.superclass.onEnable.call(this);
            this.doDisable(false);
    
        },
        
        // private
        doDisable: function(disabled){
            this.fileInput.dom.disabled = disabled;
            this.button.setDisabled(disabled);
        },
    
    
        // private
        preFocus : Ext.emptyFn,
    
        // private
        alignErrorIcon : function(){
            this.errorIcon.alignTo(this.wrap, 'tl-tr', [2, 0]);
        }
    
    });
    
    Ext.reg('fileuploadfield', Ext.ux.form.FileUploadField);
    
    // backwards compat
    Ext.form.FileUploadField = Ext.ux.form.FileUploadField;
    I don't know if the CSS also changed so let me know and I could post that if necessary.

  2. #752
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    93
    Vote Rating
    0
    Stephan Schrade is on a distinguished road

      0  

    Default


    Thanks very much, that was a quick answer
    I did update my whole project to 3.0.2 now.
    (and experienced some issues with statusbar because the location of files did change, but thats another story )

    Now it looks like the upload panel works.

    But I should know how the server has to react.
    As I'm using the upload panel by its own (rather than within the filetree) I can't find any documentation about this.
    Perhaps you know an example somewhere (I'm running php on the server).

    Many Thanks,
    Stephan

  3. #753
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    93
    Vote Rating
    0
    Stephan Schrade is on a distinguished road

      0  

    Default


    I managed to get the whole panelupload running (without filetree) with ExtJs3.0
    with all your help here, thanks very much.

    @Saki:
    May I suggest one extension:
    Is it possible to have an event raised at the end of all uploads ?
    So that I can make a refresh of the underlying element (in my case a grid).
    Otherwise the user may be wondering where alle the files are.

    CU Stephan

  4. #754
    Sencha User
    Join Date
    Jul 2007
    Location
    Italy
    Posts
    134
    Vote Rating
    0
    fermo111 is on a distinguished road

      0  

    Default


    Quote Originally Posted by jpipas View Post
    Excellent. The menu.render() actually goes in FileTreePanel.js - after the line (1467)

    Code:
    menu.getItemByCmd('sep-collapse').setVisible(this.enableNewDir || this.enableDelete || this.enableRename);
    Now the menu renders - however, the upload panel within the menu is missing. The upload panel shows - but theres no buttons, or anything inside, as if it were blank.

    I'll see if I can do some more investigating myself.
    I have added the line in red in the UploadPanel.js and it seems to fix it.

    Code:
    	,onRender:function() {
    		// call parent
    		Ext.ux.UploadPanel.superclass.onRender.apply(this, arguments);
    		this.getTopToolbar().doLayout(false, true);
    
    		// save useful references
    		var tb = 'tbar' === this.buttonsAt ? this.getTopToolbar() : this.getBottomToolbar();
    		this.addBtn = Ext.getCmp(tb.items.first().id);
    		this.uploadBtn = Ext.getCmp(tb.items.itemAt(1).id);
    		this.removeAllBtn = Ext.getCmp(tb.items.last().id);
    	} // eo function onRender
    	// }}}

  5. #755
    Sencha User calavera's Avatar
    Join Date
    Jan 2008
    Posts
    119
    Vote Rating
    0
    calavera is on a distinguished road

      0  

    Default


    Does this work with ExtJS 3 ?

  6. #756
    Sencha User
    Join Date
    Apr 2008
    Posts
    19
    Vote Rating
    0
    --maty is on a distinguished road

      0  

    Default


    My issue is not really related to Saki's upload panel but anyways... i'm trying to create my own much more simple but a bit specific fileupload panel based on jsakalos code, using Ext.ux.form.FileUploadField instead of Ext.ux.BrowseButton by loeppky. The filebutton has been created before going to a panel's toolbar, something like that:
    Code:
    var fbutton = {
      buttonCfg: {
        hideLabel: true
        ,iconCls:'save'
      }
      ,buttonText:'Add file...'
      ,buttonOnly: true //no textfield
      ,listeners: {
                    fileselected: {fn:this.onAddFile, scope:this}
      }
      ,style: { display: 'none' } //IE hack - can't use visibility b/c IE buffers the space
      ,xtype:'fileuploadfield'
    };
    
    ...
    
    tbar:[fbutton,,'->',yetAnotherClearAllButton]
    So the button text and icon appears in the toolbar but looks like it's not the button. Just a label. It has no borders and cursor remain the same instead of being pointer. But it works when you click on it...
    Looks like the fileupload css has missing a class for toolbar buttons or maybe it's me who missing how to properly put the fileupload button into the toolbar. Any ideas?
    P.S. Ext 2.1

  7. #757
    Sencha User
    Join Date
    Mar 2007
    Location
    Florida
    Posts
    16
    Vote Rating
    0
    slacker775 is on a distinguished road

      0  

    Default


    Quote Originally Posted by zombeerose View Post
    I see the confusion - I was basing my changes off the ux code from the Ext 3.0.2 build. Here is the full file including those changes.

    I don't know if the CSS also changed so let me know and I could post that if necessary.

    Incorporating all of these bits to make this work with Ext 3.0 is almost working for me. If I do not incorporate the FileUploadField, it sort-of works but when I add a file, the window doesn't expand to display the file and it's transfer status. I can upload however. If I try to use FileUploadField, The window ends at the 'Upload file' button. Nothing appears underneath.

    I suspect that it's either my FileTreeMenu or my UploadPanel that is missing something. Any suggestions?

  8. #758
    Ext User
    Join Date
    Jun 2008
    Location
    Heidelberg, Germany
    Posts
    10
    Vote Rating
    0
    gnomie is on a distinguished road

      0  

    Default


    Stephan,

    would you mind sharing the FileUploadField.js and the UploadPanel.js you ended up with? In my case, on Extjs 3.0.0. I do not seem to get that <input type="file"> hidden. I.e. it is still showing up, while the upload panel technically works (i.e. it's all fine but that stupid input field). Is there anything in the style sheets I am missing?

    Thanks,
    henning

  9. #759
    Ext User
    Join Date
    Jun 2008
    Location
    Heidelberg, Germany
    Posts
    10
    Vote Rating
    0
    gnomie is on a distinguished road

      0  

    Default


    Got it fixed: Didn't have fileuploadfield.css. Btw. I believe there is a bug in FileUploader. In FileUploader.uploadCallback, line 581, it says:

    // process command failure
    else {
    this.processFailure(options, response, o);
    }
    As o is the decoded response, potentially having the properties error and success, it should actually be

    // process command failure
    else {
    this.processFailure(options, response, o.error);
    }
    as processFailure expects the actual error message as its third parameter.

    Thanks,
    Henning

  10. #760
    Sencha User
    Join Date
    Mar 2007
    Location
    Florida
    Posts
    16
    Vote Rating
    0
    slacker775 is on a distinguished road

      0  

    Default


    Ok, using Ext 3.0.3 and FileUploadField from 3.0.3 with the two added methods, the successful upload JSON response is not being handled properly. The file is uploaded, and the backend is returning '{"success":true}' but uploadCallback just isn't handling it properly. I've thrown some console.log() calls in uploadCallback and I've found that the "If(true === o.success)" winds up false, so it winds up calling processFailure as a command failure.

    Any ideas as to what is borked?

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)