Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Can there be more then one RTE in a single page?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedCan there be more then one RTE in a single page?

 Post Reply Post Reply
Author
Taco View Drop Down
Newbie
Newbie


Joined: 23 November 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Taco Quote  Post ReplyReply Direct Link To This Post Topic: Can there be more then one RTE in a single page?
    Posted: 23 November 2006 at 6:03am
I love this thing so far, unfortunately with my current structure I can't seem to get it to work in more then one place at a time.
.
Quick Outline of my script:
  gb.asp
  It takes care of reading and writing to a guestbook.
  Structure of the form is (admittedly) sloppy
CASE
  1. Read: Outputs guestbook
  2. Write: Lets you input to the guestbook, needs RTE
  3. Exit: abandons session and returns to the homepage
  4. Default case: Outputs write page, but does not go through the initial validation

I have duplication of the form inside the script: case 2 and default. I can't seem to figure a way to get it to work correctly with the instructions given:

If I put:

 Dim strFormName
 Dim strTextAreaName
up top of the code, and just put:
 
 strFormName = "form1"
 strTextAreaName = "comment"
 
 <!-- include the Web Wiz Rich Text Editor -->
 <!--#include file="RTE_editor_inc.asp" -->
 
in-front of each of the two cases it bombs out...
 
If I dim it each time I get a redefinition error...
 
I've tried pulling the form out, making it an include with all the code inside it... failed as well
 
What am I missing? Or am I asking of it something it just isn't designed to do? Should I redesign?
 
Source is available upon request, but it is constantly in a state of flux at the moment.
 
 
***Ended up just going with re-writing my own code... It is homework, so we wrote it in several small portions and it caused some shortcuts I had taken to become too difficult to continue to band-aid. I'd still like to know the answer to the above question though.
 
If you care to see what I am writing:
 
UN: a
PW: a
 
And I had to lock the Dbase, so you can't write it. After we finished our last guest book we looked a bit into security and had to break into our own and classmates scripts. My script had a bunch of holes, and anyone with the source could sql inject a user name and enter some javascript to get in. Only the referential integrity prevented a post in the database from a user that does not exist.
 
Leads me to another question: Does this RTE protect against manual html tags? If not, what is to prevent someone from jumping into javascript in the middle of this?


Edited by Taco - 23 November 2006 at 7:32am
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.