Print Page | Close Window

using variables

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=17402
Printed Date: 29 March 2026 at 7:08am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: using variables
Posted By: amwin
Subject: using variables
Date Posted: 30 November 2005 at 6:40am
I have encountered 2 problems trying to use variables from my database for the configuration of the editor.

1. Changing the textarea background colour.

I have tried changing the strRTEbackgroundcolor variable in the RTE_skin_file.asp page. It works if I hardcode another colour value in but not using a variable from the database as the edit form I just displays the HTML code displayed and no RTE buttons.


2. Changing the image folder name.

I have tried changing the full URL path to:

Const strFullURLpathToRTEfiles = "http://www.hatherleigh.net/" & session("name") & "/images/"

I just get a blank page - no error

I have tried opening a database connection in both pages as well as adding the variables before the editor include file along with

     'Name of the HTML form the textarea is within
     strFormName = "editform"
     
     'ID tag name of HTML textarea being replaced
     strTextAreaName = "hometext"


Any help would be greatly appreciated, thanks.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 30 November 2005 at 10:50am
The path needs to be a path on the same server (no HTTP://)

-------------
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: amwin
Date Posted: 02 December 2005 at 4:02am
I am getting the error:

Expected literal constant

and am still having problems trying to crack issue 1 - getting the iframe background colour from the database


Posted By: WebWiz-Bruce
Date Posted: 02 December 2005 at 8:15am
The iframe is created on the fly in the RTE_javascript.asp file, if you apply the background colour in this section it should do the trick

-------------
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: amwin
Date Posted: 02 December 2005 at 8:21am
I've tried changing both the javascript file and RTE_skin_file.asp and it works ok if I hard code the colour but using a database variable.

Am still getting the error on the image path as well



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