18 Mar 2008 2:22 AM #21
I stop the contextmenu event so it shouldn't propagate nor default action should be taken. Which version of FF? I've tested 22.214.171.124 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?
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 126.96.36.199 (spanish version) in Ubuntu 7.10.
Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:188.8.131.52) Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/184.108.40.206
18 Mar 2008 1:56 PM #23
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 220.127.116.11@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?
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.
18 Mar 2008 2:18 PM #25
19 Mar 2008 5:43 AM #26
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.
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!
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.
19 Mar 2008 12:15 PM #28
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!
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.php
19 Mar 2008 2:28 PM #30
I've added destroy stuff, hopefully haven't broken anything - please test and let me know.