FileTreePanel with Classic ASP back-end
I used to use classic ASP, with zero knowledge of PHP. So for a week I tried to make my own ASP back-end, and finally I got it.
For those who is like me, only know classic ASP, I will share the work with a little donation. You then may ask through email further, and I will try to answer as long as I can, with the knowledge that brought me to make the FileTreePanel works. But I do not guarantee that the things may work on your server as it does on mine. So far it works well at least on IIS 5.1 Windows XP.
The differences with Saki's example is that we can choose in which directory we want to upload using the UploadPanel.
I will include on the script also the Ext JS tree working example using ASP generated JSON, i.e. two-trees and reorder examples.
Sorry for everybody, especially Saki, that I wish some donation for sharing the ASP script. I am a poor student and I must do part-time work at the same time to cover my study expense. If you are not pleased or if this infringes the license, then I will remove this posting.
See demo: http://hsurya.brinkster.net/filetree/filetree.asp
Snapshot:
http://hsurya.brinkster.net/filetree...s/snapshot.gif
form.submit() giving me problems
I'm trying to hook this up to a servlet. I walked through the code and all looks well until I hit
line 5222 in ext-all-debug.js
On this line I get a dialog box from FF that asks if I'd like to save the file or open... behavior that is invoked when downloading files.
I can't step into this call since the function part of the native JS libraries. Any help would be much appreciated
Here is my client code
Code:
new Ext.Panel({
width:180
,minWidth:165
,id:'winid'
,minHeigth:250
,height:250
,layout:'fit'
,title:'UploadPanel'
,iconCls:'icon-upload',
bodyStyle:'backgroundColor:#ffffff',
border:false,
items:[{
xtype:'uploadpanel'
,buttonsAt:'tbar'
,id:'uppanel'
,url: 'admin?action=save-image'
,path:'root'
,maxFileSize:1048576 // 10 MB
}]
})