-
18 Mar 2008 2:22 AM #21
Hmmm,
I stop the contextmenu event so it shouldn't propagate nor default action should be taken. Which version of FF? I've tested 2.0.0.12 both on Linux and Windows and there is no browser context menu displayed in addition to FileTreePanel context menu. I haven't tested on Mac, I don't have one around.
Do you have any screenshot of it?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
-
18 Mar 2008 1:32 PM #22
Sure, here they are.
If you need me to try something, just tell me, I'll be happy to assist you.
BTW I'm using FF 2.0.0.12 (spanish version) in Ubuntu 7.10.
Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.8.1.12) Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/2.0.0.12
-
18 Mar 2008 1:56 PM #23
Hmmm,
funny part of it is that it must be browser dependent as you connect to the same page as I do (http://filetree.extjs.eu). I run Firefox 2.0.0.12@openSUSE-10.3+updates and I've never got that default browser context menu.
Try to clear cache, try Seamonkey (same engine as FF), try English version, ....
Could it be that Spanish version?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
-
18 Mar 2008 2:14 PM #24
Try that context menu now - I'm returning false from event handler now and I've put additional listener on tree.el that cancels the event.
Ctrl+Reload please...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
-
18 Mar 2008 2:18 PM #25
Tried it a few minutes ago with the English version, and it didn't pop the context menu, hard to know if you had already modified it heh.
And yes, it is working as expected now in my spanish Firefox, thanks a lot
-
19 Mar 2008 5:43 AM #26
FileTree
FileTree
First off I just want to say congrats on a great user extension. I think is going to help many people out including myself. I am having one issue though. When the tree loader runs I see a request run and it posts the following information.
cmd get
node ynode-44
path ext/air
When I do an upload I don't see any information being passed through firebug. I was able to dumb the form contents but still cant find the name of the file being passed. I need to handle the deletes / and upload methods. I am writing this in CF but if you could provide your php example for filetree.php I could probably figure it out.
Thanks Again for your great work!
DanDan Vega
http://www.danvega.org
-
19 Mar 2008 6:04 AM #27
Have you seen FileTreePanel Client-Server Interface Specification?
Just to explain: You cannot upload files with Ajax, therefore, uploads are handled by creating a hidden form (file input(s) appended to it), a hidden iframe and then the form is submitted traditional way with its target set to hidden iframe.
That is reason why you don't see any request/response in Firebug console.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
-
19 Mar 2008 12:15 PM #28
Hidden Form
Hidden Form
If I set a url to handle the file operations like so. The form still posts itself to filetree.cfm right? If so how do I know what the name of the form filed so I can upload the contents. I hope this makes sense. Your document was very helpful to get every other operation working ,this is last piece of the puzzle for me!
Thanks again.
Code:<script type="text/javascript"> Ext.BLANK_IMAGE_URL = 'ext/resources/images/default/s.gif'; Ext.onReady(function(){ Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'side'; Ext.state.Manager.setProvider(new Ext.state.CookieProvider); treepanel = new Ext.ux.FileTreePanel({ width:500, height:400, id:"ftp", title:"Directory Browser", renderTo:"treepanel", rootPath:"ext", rootText:"Root", topMenu:true, autoScroll:true, url:"filetree.cfm", singleUpload:false, enableProgress:false }); }); </script>Dan Vega
http://www.danvega.org
-
19 Mar 2008 12:27 PM #29
Field names are auto-generated. It doesn't matter for PHP and I'd suppose the same is true for cfm. In my PHP backend I just iterate through all elements of posted $_FILES array each containing one file array; I ignore field names.
Hopefully this can help although it is PHP: http://www.php.net/manual/en/features.file-upload.phpJozef 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
-
19 Mar 2008 2:28 PM #30
Hi all!
I've added destroy stuff, hopefully haven't broken anything - please test and let me know.
Cheers,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



Reply With Quote