Print Page | Close Window

Search and stumped

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


Topic: Search and stumped
Posted By: stuey
Subject: Search and stumped
Date Posted: 19 September 2005 at 12:15pm
I keep getting errors on the page they're Javascript related.
 
I have the RTE folder and in there I have created a sub folder called incs
 
In the main RTE folder I have put my application file.  I design my forms in HTML and use ASP includes to pull them in based on functions/case select arguments
 
so Basically
 
i get I call an include (with a form)
and then within that I have an include to the RTE
 
when I turn on Debugging I get a javascript error here
 
    var textArea = document.getElementById(textAreaName);
-> var textAreaWidth = parseInt(textArea.offsetWidth);
    var textAreaHeight = parseInt(textArea.offsetHeight);
 
now in order to get round similar problems and the fact that RTE likes to live in its own folder and nowhere else I have previosuly copied another version into the includes folder and nothing!
 
this leaves me to assume that the problem is with my page and not with the rte
 
I have use another editor before hand and basically I had to put a prompt pause in the jscript to allow the page to load before the javascript kicked in.
 
Anythoughts or suggestions
 
 
 



Replies:
Posted By: WebWiz-Bruce
Date Posted: 20 September 2005 at 6:11am
Looks to me the line above the error line:-

var textArea = document.getElementById(textAreaName);

Isn't getting details of the textarea passed to it.

Try making sure that the include file has the name of the textarea entred correctly and if this fails try changing the name of the textarea


-------------
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: stuey
Date Posted: 21 September 2005 at 3:25am
too late I am afraid, I have migrated ( temporarily ) to the whizzywig editor, its not as cool as yours but it worked in time for me to go live with the project.
 
I've used your editor in other projects without problems and will probably continue to do so:)
 
stuart



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