Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - using variables
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum Lockedusing variables

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

Joined: 01 July 2003
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote amwin Quote  Post ReplyReply Direct Link To This Post Topic: using variables
    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.
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: 30 November 2005 at 10:50am
The path needs to be a path on the same server (no HTTP://)
Back to Top
amwin View Drop Down
Newbie
Newbie
Avatar

Joined: 01 July 2003
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote amwin Quote  Post ReplyReply Direct Link To This Post 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
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: 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
Back to Top
amwin View Drop Down
Newbie
Newbie
Avatar

Joined: 01 July 2003
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote amwin Quote  Post ReplyReply Direct Link To This Post 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
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.