redspider
User
Dec 31, 2002, 11:25 AM
Post #1 of 8
(291 views)
Copy Shortcut
|
HtmlArea with Image upload and extra functions
|
Can't Post
|
|
Hi Everyone, I have finished my version with the image-upload function. (sorry but it's in dutch) For the upload i use Aspupload that you can download for a free 30-days trail. For download see http://www.aspupload.com Only thing that i want to change is the insert_image dialog so you can select the images from the uploadfolder and get a preview. ------------------------------------------------------------- Modify these files and lines to get the upload script working ------------------------------------------------------------- progress_upload.asp, line 44 replace the path to your upload path. n = Upload.Save("e:\Inetpub\wwwroot\z_testzone\HTMLarea_wme\uploads\") deletefiles.asp, line 40 replace the path to your upload path. Directory = "e:\Inetpub\wwwroot\z_testzone\HTMLarea_wme\uploads\" ' initial directory Add two custom buttoms in editor.js this.toolbar = [ ['custom2','custom3','separator'], this.btnList = { "custom2": ['custom2', 'Upload file', 'editor_action(this.id)', 'ed_image_up.gif'], "custom3": ['custom3', 'Verwijder files', 'editor_action(this.id)', 'ed_image_del.gif'], Custom buttom section. // Custom2 - upload files else if (cmdID.toLowerCase() == 'custom2'){ window.open('popups/upload/progress.Asp',null,'width=390,height=225,status=no,scrollbars=auto,toolbar=no,menubar=no,location=no'); } // Custom3 - Delete files else if (cmdID.toLowerCase() == 'custom3'){ window.open("popups/upload/deletefiles.Asp",null,"height='100',width='380',status=no,toolbar=no,scrollbars=yes,menubar=no,location=no"); } If you find bugs please let me know !!! If there are people who are working on a Table-function thats better then the function in version 2.03 (delete, insert, modify rows and collumns) or other functions please let me know ;-) This version contains also following extra functions: I hope you like it Greetz Redspider (Belgium) Still 3 hours and 40 minutes untill 2003 (in Belgium), enjoy
|