Print Page | Close Window

RTE on two forms in one page?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=24814
Printed Date: 28 March 2026 at 7:16am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: RTE on two forms in one page?
Posted By: public2
Subject: RTE on two forms in one page?
Date Posted: 12 November 2007 at 7:16pm

Hey everyone.

I'm having some difficulties trying to create a admin module for a homepage. The thing is that I've made one page in mode (request.querystring(mode)) where I've to forms and both of them I want to use the awesome RTE.

But it can't seem to work.

When I inserting the RTE code:

            <%

    'Declare the ASP variables used
    Dim strFormName
    Dim strTextAreaName
   
    'ID tag name of the HTML form the textarea is within
    strFormName = "edit"
   
    'ID tag name of HTML textarea being replaced
    strTextAreaName = "main"
   
    %>

I've only one variables declaration, and that is about the first form that I want to use the RTE on. On the second it looks like this:


            <%

    'Declare the ASP variables used
  
    'ID tag name of the HTML form the textarea is within
    strFormName = "edit"
   
    'ID tag name of HTML textarea being replaced
    strTextAreaName = "main"
   
    %>

And I've tried to change the second form and textarea name and also tried to have the same name in same textarea, but I always get the same result; this is returned:

Microsoft VBScript compilation (0x800A0411)
Name redefined
/kd/admin/rte/RTE_configuration/RTE_setup.asp, line 31, column 4
Dim blnAbout

I know what the error is about; that the variable blnAbout is declared twice, but HOW I can get around that problem, that is what I don't know.

Is there a logical solution to this problem? I've tempered with the code other than set some true to false under the functions of the RTE.

Thank you in advance
Public2




Replies:
Posted By: WebWiz-Bruce
Date Posted: 12 November 2007 at 7:19pm
You can only use 1 RTE area per page

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: public2
Date Posted: 12 November 2007 at 7:24pm

Okay that's too bad then I've to find out some way to migrate one textarea into two different tables depends what querystring that has been requested. But thanks none the less :-)




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net