Page 54 of 84 FirstFirst ... 444525354555664 ... LastLast
Results 531 to 540 of 837

Thread: [Beta 1] Saki's FileTree for Ext 2.0

  1. #531
    Ext User
    Join Date
    Jan 2008
    Posts
    28
    Vote Rating
    0
      0  

    Default

    @jsakalos

    Here is my headers

    Response.AddHeader("Content-Type", type);
    Response.AddHeader("Content-Disposition", "attachment; filename=" + name + "; size=" + buffer.Length.ToString());

    code is aspx but this shouldn't be a problem.

  2. #532
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    I have no specific idea about aspx. Anyway, you can download files from demo page (http://filetree.extjs.eu - right click on a file, open, download) so you could analyze headers in Firebug.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  3. #533
    Ext User
    Join Date
    Jan 2008
    Posts
    28
    Vote Rating
    0
      0  

    Default

    Could you send me your code from php responsible for sending download files. I've checked header and I see no difference.

    regards

    Uros

  4. #534
    Ext User
    Join Date
    Jan 2008
    Posts
    28
    Vote Rating
    0
      0  

    Default

    I found the sollution on this forum and for the moment it works

    all you need to change is

    Ext.EventManager.on(frame, Ext.isIE ? 'readystatechange' : 'load', callback, this);

    Ie somehov does not work ok with load even when loading IFRAME. I found searching google, that manny folks have the same kinda problems and this one seams to solve it.

    regards,
    U

  5. #535
    Ext User
    Join Date
    Jul 2008
    Posts
    9
    Vote Rating
    0
      0  

    Default

    Saki, does "node" automatically store an id? If so, could I just append onto every command in the params section something like ,node:node.id ? I can't find in the code where the get command populates its node parameter to the server

  6. #536
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    Well, I'm quite lost here. What problem are you trying to solve?
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  7. #537
    Ext User
    Join Date
    Jul 2008
    Posts
    9
    Vote Rating
    0
      0  

    Default

    Saki, I am trying to write my upload action, and I noticed that when I upload a file, it is only sending the server the path, not the filename. How can I get the filename?
    Last edited by mikecc; 2 Oct 2008 at 9:57 AM. Reason: totally new question

  8. #538
    Ext User
    Join Date
    Aug 2007
    Posts
    8
    Vote Rating
    0
      0  

    Default Can't get Ext.ux.UploadPanel to work

    Hello,

    I found the Ext.ux.UploadPanel here and found it really awesome!
    So I decided to use in my application which uses Ext JS 2.2.

    I've created a page containing this:

    Code:
    <html>
        <head>
            <title>Title</title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
            <link rel="stylesheet" type="text/css" href="/js/ext/2.2/resources/css/ext-all.css" />
            <link rel="stylesheet" type="text/css" href="/js/ext/2.2/resources/css/xtheme-silverCherry.css" /
    
            
            <script type="text/javascript" src="/js/ext/2.2/adapter/ext/ext-base.js"></script>
            <script type="text/javascript" src="/js/ext/2.2/ext-all-debug.js"></script>
    
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.form.BrowseButton.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.FileUploader.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.UploadPanel.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.FileTreeMenu.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.FileTreePanel.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.ThemeCombo.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.IconCombo.js"></script>
            <script type="text/javascript" src="/js/ext/ux/js/Ext.ux.LangSelectCombo.js"></script>
            <script type="text/javascript" src="/js/ext/ux/locale/fr_FR.js"></script>
    
            <script type="text/javascript">
                Ext.onReady(function() {
    
                    Ext.QuickTips.init();
    
                    var panel = new Ext.Panel({
                        width: 400,
                        height: 250,
                        layout: 'fit',
                        title: 'Upload',
                        renderTo: 'mydiv',
                        items: [{
                            xtype: 'uploadpanel',
                            buttonsAt: 'tbar',
                            id: 'uppanel',
                            url: 'filetree.php',
                            path: 'root',
                            maxFileSize: 1048576
                        }]
                    });
                });
            </script>
        </head>
        <body>
            <div id="mydiv">
            </div>
        </body>
    </html>
    But when loading this page, I get the following error in FireBug:
    Code:
    types[config.xtype || defaultType] is not a constructor
    create()()ext-all-debug.js (ligne 12296)
    createComponent()(Object xtype=uploadpanel)ext-all-debug.js (ligne 14198)
    lookupComponent()(Object xtype=uploadpanel)ext-all-debug.js (ligne 14192)
    add()(Object xtype=uploadpanel)ext-all-debug.js (ligne 14104)
    initComponent()()ext-all-debug.js (ligne 14039)
    initComponent()()ext-all-debug.js (ligne 15815)
    Component()(Object width=400 height=250 layout=fit)ext-all-debug.js (ligne 12354)
    getViewWidth()()ext-base.js (ligne 9)
    getViewWidth()()ext-base.js (ligne 9)
    getViewWidth()()ext-base.js (ligne 9)
    (?)()()test (ligne 41)
    fire()()ext-all-debug.js (ligne 1488)
    fireDocReady()()ext-all-debug.js (ligne 1592)
    getViewWidth()()ext-base.js (ligne 10)
    
    [IMG]chrome://firebug/content/blank.gif[/IMG]            return new types[config.xtype || defaultType](config);
    So it seems I'm doing something wrong, but I've not idea what

    Can anyone shed some light on this?

    Thanks in advance for your help.

    Guillaume
    Last edited by mystix; 3 Oct 2008 at 6:53 AM. Reason: merged with main thread. in future, pls post ux related questions in their respective threads.

  9. #539
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Vote Rating
    403
      0  

    Default

    Check paths of include files.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  10. #540
    Ext User
    Join Date
    Aug 2007
    Posts
    8
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by jsakalos View Post
    Check paths of include files.
    You're spot on, this was indeed a problem with my include files.
    This was a stupid error

    Thanks a lot for your help and for this great upload system!

Page 54 of 84 FirstFirst ... 444525354555664 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •