473,395 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How do I get my cftextarea richeditor to work in a subfolder

So this is the code I am using...
Expand|Select|Wrap|Line Numbers
  1. <cfform name="badassForm" method="post" action="saveBadassForm.cfm" id="badassForm">
  2. <cftextarea name="txtMessage" height="800" width="600" richtext="yes" value="#myText#"></cftextarea>
  3. </cfform>
  4.  
I am trying to use the cftextarea with the rich text editor on my site but it is not the root folder of the site. when I did a test page in the root folder it worked great, but when I added it to a sub folder it doesn't show up, it just looks like a normal textarea without any of the toolbars. I checked the source code for the page and it is trying to reference javascript files...

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>";
  2. _cf_contextpath="";
  3. _cf_ajaxscriptsrc="/CFIDE/scripts/ajax";
  4. _cf_jsonprefix='//';
  5. _cf_clientid='AC8C7239192C5A2E9A2640030EF324F8';</script><script type="text/javascript" src="/CFIDE/scripts/ajax/messages/cfmessage_en_US_.js"></script>
  6. <script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfajax.js"></script>
  7. <script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfrichtexteditor.js"></script>
  8. <script type="text/javascript" src="/CFIDE/scripts/ajax/FCKeditor/fckeditor.js"></script>
  9. <script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script>
  10. <script type="text/javascript" src="/CFIDE/scripts/masks.js"></script>
  11.  
I think that is where the problem is. How can I tell it where to find this CFIDE folder. I tried doing this...

Expand|Select|Wrap|Line Numbers
  1. <cfset strFullPath = GetBaseTemplatePath()>
  2. <cfset strServerDir = GetDirectoryFromPath(strFullPath)>
  3. <cftextarea name="txtMessage" height="800" width="600" richtext="yes" value="#myText#" basepath="#strServerDir#">
  4.  
Anyone had this problem or have a fix?
Dec 2 '10 #1
1 3070
acoder
16,027 Expert Mod 8TB
Try setting the basepath (cftextarea). Failing that, try the cfajaximport tag.

The CFIDE folder is relative to the web root.
Dec 4 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
2
by: | last post by:
Let me explain step wise. 1.. I have a site running on port 5555 2.. If contains web.config file with contains <Forms> authentication. 3.. The site contains a sub-folder named "MembersArea"...
4
by: Johnnie Norsworthy | last post by:
ASP.NET 2.0 How do I configure my web site to require forms authorization only for a subfolder off the root? I know how to set Web.config for forms authentication for the whole site, but I need...
3
by: walter | last post by:
Hi , I thought it's simple ,but end up come here for help(as lots of other times). --I have several HttpModule added in the root thru web.config, but I want to remove some and add some new ones in...
2
by: Jon Paal | last post by:
after submitting a form, I create and new subfolder and attempt to save images into that folder, two steps both as part of the form processing. works fine on my local machine .. fails on webhost....
1
by: Rolf Welskes | last post by:
Hello, I set in the configuration file of the application: <system.web> <pages styleSheetTheme="E01_Theme01" /> ...... This works.
1
by: interuser | last post by:
Hi. I have some values in web.config of a subfolder: <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="remoteFile" value="/TEST/ACCBALEXP.TXT" /> <add...
7
by: MarkusJNZ | last post by:
Hi, I have a website called www.websitename.com which is an ASP.NET 2.0 website. I need to create another application (Which I want to be totally seperate from the above website) but for...
5
by: woolls01 | last post by:
I am using the following code Sub Ck() Dim strStartPath As String strStartPath = "d:\workpack\rra" ListFolder strStartPath End Sub
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.