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


    Mike, just to explain better that empty file:

    Initially, there is one empty <input type="file"> element with opacity:0 positioned over add button. When you click Add you click this input in fact.

    Then you select a file from the dialog which goes to this first input. Second blank input is created after file selection, and so forth.

    This way you have always one extra input. Sure it could be deleted before upload and re-created upon upload success or failure but just ignoring NO_FILE error on the server side looked much easier to me.

    Cheers,
    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


  2. #92
    Ext JS Premium Member mikegiddens's Avatar
    Join Date
    Mar 2007
    Location
    Denver, Colorado
    Posts
    273
    Vote Rating
    1
    mikegiddens will become famous soon enough

      0  

    Default


    Understood. Just making sure you know it was there. Your design makes since.

    Any comment on the PECL package install serverside to get the progress.php working?
    Mike Giddens
    =======================
    Opportunity is missed by most people because it is dressed in overalls and looks like work - Thomas Edison

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


    Quote Originally Posted by mikegiddens View Post
    Understood. Just making sure you know it was there. Your design makes since.

    Any comment on the PECL package install serverside to get the progress.php working?
    I had no problems to install uploadprogress per manual. Beware, it doesn't work with suhosin (hardened PHP) extension.
    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. #94
    Sencha User
    Join Date
    Jul 2007
    Location
    Moscow, Russia
    Posts
    295
    Vote Rating
    0
    6epcepk is on a distinguished road

      0  

    Default


    PHP Code:
    <html>
    <
    head>
    <
    meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <
    title>Reorder TreePanel</title>
    <
    link rel="stylesheet" type="text/css" href="../lib/ext/resources/css/ext-all.css" />
         <
    script type="text/javascript" src="../lib/ext/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="../lib/ext/ext-all.js"></script>
        <script type="text/javascript" src="reorder.js"></script>
    </head>
    <body>

    <script type="text/javascript" src="/lib/ext/extensions/UploadForm/Ext.ux.UploadForm.js"></script>
    <div id="form-ct"><div id="form-ct-in"></div></div>

    <script type="text/javascript" src="uploadform.js"></script>
    <link rel="stylesheet" type="text/css" href="uploadform.css" />
    <link rel="stylesheet" type="text/css" href="filetree.css" />
    <link id="theme" rel="stylesheet" type="text/css" href="/lib/ext/resources/css/xtheme-default.css">
    <style type="text/css">
    #form-ct, #swfu-out {
        position: relative;
        left: 14px;
        width: 180px;
        padding: 10px;
        border: 1px solid silver;
        background-color: #D3E6EA;
        margin-bottom: 24px;
    }
    #swfu-out {
        font-size: 8pt;

    }
    #adsense-top {
        margin: 10px;
    }
    #info-column {
        position: absolute;
        top: 108px;
        right: 8px;
        width: 240px;
        border: 1px dotted silver;
        background-color: #efefef;
        margin: 4px;
        padding: 8px;
        font-size: 8pt;
    }
    #info-column ul {
        list-style-type: disc;
        list-style-position: inside;
    }
    #pg-target {
        position: absolute;
        left: 400px;
        top: 108px;
        width: 154px;
    }
    #float-form-ct {
    }
    </style>

    </body>
    </html> 

    But:


    And is this extension work with extjs 2?
    Thanks.

  5. #95
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,527
    Vote Rating
    379
    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 look: I just guess that the problem is how uploadform looks. If so, include uploadform.css.

    Re ext2: I don't know, I haven't tried. It was written for 1.1.
    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. #96
    Sencha User
    Join Date
    Jul 2007
    Location
    Moscow, Russia
    Posts
    295
    Vote Rating
    0
    6epcepk is on a distinguished road

      0  

    Default


    i Have already include css-file:
    PHP Code:
    <link rel="stylesheet" type="text/css" href="uploadform.css" /> 
    And the path is correct. I have changed path to images-file, but images doesn't showing.

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


    Quote Originally Posted by 6epcepk View Post
    i Have already include css-file:
    PHP Code:
    <link rel="stylesheet" type="text/css" href="uploadform.css" /> 
    And the path is correct. I have changed path to images-file, but images doesn't showing.
    Check iconPath and also, if you don't use famfamfam silk icons, icon names such as addIcon, uploadIcon, etc.
    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. #98
    Sencha User
    Join Date
    Jul 2007
    Location
    Moscow, Russia
    Posts
    295
    Vote Rating
    0
    6epcepk is on a distinguished road

      0  

    Default


    I think this extension doesn't work with extjs 2.0 =(
    I,m trying to change 'text' attribute in:
    PHP Code:
            this.browseBtn = new Ext.Button(bbtnCt, {
                
    text:this.addText '...'
                
    cls'x-btn-text-icon'
                
    iconthis.addIcon
                
    minWidth:this.buttonWidth
            
    }); 
    But it isn't dislay. (See screanshot at last.)

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


    Yes,
    I've seen screenshot and now I looked again. So:
    1. Different fonts/misalignments = missing/overriden uploadform.css
    2. No icons = icon files not found = wrong iconPath || wrong filenames || both
    Cheers,

    PS: There is no need to change code of the extension to get icons working. Just pass correct config options. If you change the code you're on your own as I don't know what the change was.
    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. #100
    Sencha User
    Join Date
    Jul 2007
    Location
    Moscow, Russia
    Posts
    295
    Vote Rating
    0
    6epcepk is on a distinguished road

      0  

    Default


    PHP Code:
    alert(this.addIcon); 
    was return correct path to icons where located 'add.png'.
    All scripts and css-files is originaly and was downloaded from your site.
    So, extension doesn't work correctly with ExtJs 2. You're in 'Premium Group' and also can check this 8)
    sry for my good English)