473,465 Members | 1,419 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

2 New Member
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 3073
acoder
16,027 Recognized Expert Moderator MVP
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.