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