Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - RTE 3 in JavaScript (Server side)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedRTE 3 in JavaScript (Server side)

 Post Reply Post Reply
Author
SubEvil View Drop Down
Newbie
Newbie


Joined: 07 December 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote SubEvil Quote  Post ReplyReply Direct Link To This Post Topic: RTE 3 in JavaScript (Server side)
    Posted: 18 March 2005 at 9:13am

I use JavaScript Server side instead of VBScript, any plans to release the code in JavaScript?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 18 March 2005 at 10:16am
Not at the present time.

However, as most files run on their own and it is decalered that VBScript is used at the top of the file (incase your server is set to JScript by default) then you should be able to get away with just changing the file 'RTE_editor_inc.asp' into JScript.

You may also need to change, or make a second copy in JScript of any files that are included into the RTE_editor_inc.asp file.
Back to Top
SubEvil View Drop Down
Newbie
Newbie


Joined: 07 December 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote SubEvil Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2005 at 3:01am
Hi,
 
Well, after spending considerable time this weekend making modifications to RTE 3, I'd like to post my findings.
 
First, I'd like to say, well done on such an extensive project. I've been aware of this project for some time and I know it's taken you months to complete, with many highs and lows! The fact is, so many projects start with good intent, but end before being completed. All-in-all, this is a great achievement and a great, comprehensive piece of work. When I showed my best friend your 'control', and the amount of files and code I would have to understand to make the kind of modifications I wanted, he thought I was crazy and was impressed with the shear size of the project! With that said, here is a summary of my goals for implementing and changing RTE:
  1. Make RTE easy to implement in hundreds of places on our intranet, each with their own configs.
  2. Reduce the amound of files that need to be copied among the different implementations.
  3. Clean the file structure, allowing RTE to run from it's own separate directory.
  4. Allow RTE to be implemented in more than 1 asp file in the same directory, with the possibility to have different configurations.

My modifications achieved all of the above. The last remaining frontier was implementing RTE more than once in the same asp file. But for my purposes, this is not yet important. My design modifications included:

  1. All common code is located in virtual=/rte/*.* common code includes all the images, in virtual=/rte/images/*.* directory. Since I will use the same images/style/toolbar/upload/iframes and many popups throughout all implementations of RTE, that directory contains a scaled down setup file (things like file upload directories are removed as each implementation can upload to different paths!). The directory with common code has about 25 files, excluding the images. I removed all sub directories from RTE and renamed almost all the files (the RTE_ prefix is no longer necessary since all RTE files are in their own separate directory with no other files!).
  2. All other code is located in "current directory"/"user specified RTE directory". eg: if I implement RTE3 in /test/ I copy 13 files into /test/rte. If I implement RTE3 in a different asp file (in the same directory) with a different config, I copy the 13 RTE3 files to /test/rte1 or any other location I define! These 13 files import/depend on the setup file in the same directory. The 13 files that need this setup file include file_browser, image_browser (a new file almost exactly the same as file_browser, I will explain why I needed it later!), popup_(adv_image/file_atch/image/open_file/save_file) etc.
  3. I added a few new variables. eg. strRTEpath = "rte/" located in setup, simply holds the sub directory I copied the current implementation to. strFullFileUploadPath = http://nitro/pinteq/faq/downloads/files/ and strFullImageUploadPath = http://nitro/pinteq/faq/downloads/images/. These 2 variables are quite important. I had a problem with your variable strFullURLpathToRTEfiles. My variable strFileUploadPath is defined as "../../../faq/downloads/files", when used in conjunction with strFullURLpathToRTEfiles, it produces a path like this http://nitro/pinteq/admin/faq/../../../faq/downloads/files/. Of course the file 'file_browser.asp' uses your variable, that was easy to change to my variable, but it couldn't implement my 'new' image path variable, so I created a duplicate called 'image_browser.asp'.

My conclusion

I understand that most people will only use RTE3 once or twice in their project. Even you only use it once on the forum and it's propably not a priority to make it easy to implement in more than one asp file. So I undertook a mommoth task this weekend! It took me 2 full days to implement, test and change the design. The result is RTE3 is much easier to implement in multiple locations with different configs, and it doesn't clutter the base folder! If I ever want to remove it, I just delete the directory. A side benefit of this is cache, I can set the 'common' directory cache to a few days. Since it's content won't change and the files in the 'common' directory are used in all implementations.
 
Best regards and a job well done on the best HTML Rich Text editor in the world!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.