-
24 Nov 2008 11:04 PM #591
Hi Saki,
it worked not on the download-command. I try this on your demo page http://filetree.extjs.eu/.
In the Filetree chose a file and then click open/download. After the file is downloaded the iframe is still there...
Bye, Dumbledore
-
25 Nov 2008 3:11 AM #592
Hmmm, it looks like browser doesn't fire the load event... No easy solution w/o digging in comes to my mind...
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
-
27 Nov 2008 9:08 AM #593
How can I hide folders
How can I hide folders
First, let me thank you for your extension. I made a donation and got back filetree.php and it works great.
The behaviour I would like to achieve is to show subtrees only to authorized users.
The subtree varies depending on the user
Root
|--Sub1
|--Sub2
Let say,
User1 can only see Sub1,
User2 can only see Sub2
As the filetree is only seen when connected, I can modifiy 'root' in path and rootPath in filetree.js so they will only see Sub1 (User1) or Sub2 (User2).
But when they double click on the file in order to see the file, then become able to see the complete url.
So User2 could change Sub2 in Sub1 in the url in order to find some files in Sub1 where he is not allow to go.
The properties on the server (LAMP) are set so he cannot list directories.
But he could still guess some commun names to get files normally forbiden for him.
-
28 Nov 2008 10:44 AM #594
Locate tree node by path
Locate tree node by path
Hi Saki,
I've been looking at this for some time, and I haven't been able to find a way to retrieve a node of the filetree by just having its path. I'm integrating the filetree with a dataview to achieve something similar to a windows-explorer like interface..
I am trying to keep your code untouched to make it easier to update later on and so far that has worked. Concisely, is there a way to retrieve a node by path?
Any help would be greatly appreciated.
-
28 Nov 2008 6:10 PM #595
-
2 Dec 2008 12:18 PM #596
Is there any possibility to fix the BrowseButton in Opera? It won't show up the dialog.
Thanks in advance
-
2 Dec 2008 1:09 PM #597
There have been some improvements of BrowseButton - try to see the BrowseButton's thread.
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
-
2 Dec 2008 2:12 PM #598
In case somebody is interested, I solved my original problem (referencing treenodes by filepath) by adding this function to the filetreepanel. Im sure there are easier ways to do so, but this seems to do the trick.
Note that this code will only detect nodes that have been loaded (e.g. it will not find a child node of a folder that has never been expanded.. Despite that, the function is useful if you are integrating the filetree with some other component that requires more advanced interaction.Code:getNodeByPath: function( path, rootNode ){ if( !rootNode ){ return null; } if( path[0] == '/' ){ path = path.substring(1); } if( this.getPath( rootNode ) == path ){ return rootNode; } if( rootNode.childNodes.length > 0 ){ for( childNode in rootNode.childNodes ){ if( typeof( rootNode.childNodes[childNode] ) == 'object' ){ foundNode = this.getNodeByPath( path, rootNode.childNodes[childNode] ); } if( foundNode != null ){ return foundNode; } } } return null; } ,selectNodeByPath: function( path, expand ){ treeNode = this.getNodeByPath( path, this.getRootNode() ); if( treeNode == null ){ return false; } treeNode.select(); if( expand ){ treeNode.expand(); } }
-
7 Dec 2008 4:31 PM #599
Cosmetic bug in latest Firefox version
Cosmetic bug in latest Firefox version
Hi,
I noticed that when a folder is marked as disabled, the upload menu does not render properly in Firefox. Instead of graying out the menu, a big white rectangle appears
Attached is a screenshot comparing IE7, Safari 3.2 and Firefox 3.0.4 (All in Windows)
Terrific job otherwise!
-
9 Dec 2008 8:16 AM #600
Removing uploaded files from the UpLoad panel ?
Removing uploaded files from the UpLoad panel ?
How to remove automatically from the Upload panel a file that is correctly uploaded?
(instead of keeping it in the Upload panel with an "Ok" icon)



Reply With Quote