-
1 Oct 2008 12:29 AM #531
@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.
-
1 Oct 2008 2:00 AM #532
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
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
1 Oct 2008 4:04 AM #533
Could you send me your code from php responsible for sending download files. I've checked header and I see no difference.
regards
Uros
-
1 Oct 2008 5:13 AM #534
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
-
1 Oct 2008 7:10 AM #535
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
-
1 Oct 2008 8:13 AM #536
Well, I'm quite lost here. What problem are you trying to solve?
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
1 Oct 2008 10:12 AM #537
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
-
3 Oct 2008 5:16 AM #538
Can't get Ext.ux.UploadPanel to work
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:
But when loading this page, I get the following error in FireBug: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>
So it seems I'm doing something wrong, but I've not idea whatCode: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);

Can anyone shed some light on this?
Thanks in advance for your help.
GuillaumeLast 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.
-
3 Oct 2008 3:20 PM #539
Check paths of include files.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
3 Oct 2008 3:24 PM #540


Reply With Quote

