Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - RTE embedded into include file not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedRTE embedded into include file not working

 Post Reply Post Reply
Author
mbdev View Drop Down
Newbie
Newbie


Joined: 05 May 2007
Location: United Kingdom
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbdev Quote  Post ReplyReply Direct Link To This Post Topic: RTE embedded into include file not working
    Posted: 05 May 2007 at 1:15pm
Hi,
 
I have recently put together a pretty complex CMS for creating and managing xml files in asp.
 
Part of this needs to convert a standard textarea to an RTE, so I can post content into a CDATA tag within the appropriate xml file.
 
This in itself is fine. However, the way I have my code structured is that the <form> starts and ends in a parent html file. But, the textarea is held within an include file, dynamically loaded from within the <form> tag.
 
Essentially, outputted html is still rendered like this:
 
<form>
<textarea>
</form>
 
..so the RTE should work.
 
I have set up the RTE structure as it should be, and indeed get the demo default.asp RTE example working just fine (as supplied in the demo zip file). It just seems to be an issue with the RTE being defined in an include file within the <form> tag.
 
I've tried changing the rte_setup.asp file, defining absolute pathing. I have also tried a global find and replace to have virtual file pathing to the root of my web server, but no joy.
 
The error I am getting is:
 
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
functions/RTE_functions_common.asp, line 40
Private Function RTEenabled()
 
I've even moved the textarea out of the include file, and back into the parent html file (within the <form> tag), and it all works fine. Seems on face value to be some kind of pathing issue, but I really can't seem to figure it out!
 
Anyone got an idea of how to fix this?
Many thanks
Martin
Back to Top
somethumb View Drop Down
Newbie
Newbie


Joined: 10 June 2007
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote somethumb Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2007 at 10:06pm
Here's the answer. You can't put a function inside a sub. So if you are creating your page using a subroutine that includes a template that calls the sub, then the RTE_editor_inc.asp file can't be in that sub.
 
I haven't yet found out how to change that, but i'm still looking.
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.