Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - RTE on two forms in one page?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedRTE on two forms in one page?

 Post Reply Post Reply
Author
public2 View Drop Down
Newbie
Newbie
Avatar

Joined: 06 November 2007
Location: Denmark
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote public2 Quote  Post ReplyReply Direct Link To This Post Topic: RTE on two forms in one page?
    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

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: 12 November 2007 at 7:19pm
You can only use 1 RTE area per page
Back to Top
public2 View Drop Down
Newbie
Newbie
Avatar

Joined: 06 November 2007
Location: Denmark
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote public2 Quote  Post ReplyReply Direct Link To This Post 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 :-)

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.