addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

The Online ColdFusion Meetup Message Board › CF9 cftextarea, no controls

CF9 cftextarea, no controls

user 7520549
Bethlehem, PA
Post #: 27
Howdy all,

I am trying to use cftextarea but the richtext controls are not showing up. it looks like a big text box. In FF3 the toolbar does not show up but in IE8 at least the toolbar shows up. Any ideas are greatly appreciated. Here are the specs and what I think might be helpful

- Windows 2003, IIS 6, Coldfusion 9 multi server install
- CF installed in D:\apps\JRun4
- CFIDE is in D:\inetpub\wwwroot
- fckeditor resides in D:\Inetpub\wwwroot\CFIDE\scripts\ajax\FC­Keditor (and there actually is a mapping to it but I don't think it's required)
- Here is the template code, very basic

test cftextarea<br>
<cfform action="" method="post" name="inputForm">
<cftextarea name="xyz" enabled="no" richtext="yes" toolbar="Basic" rows="10" cols="90" >xyzzzz</cftextarea>
<input type="Submit">

IE8 gives the error "Coldfusion is undefined".
FireFox3 gives me the same error but I can click the error to view the offending lines in the file. here is the code I see when clicking on the error link in the FireFox3 error console. Hope it is not too much or too little info.

<head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/im­ages/loading.gif'/>";
_cf_clientid='4748221A7FF1790532A084CA­39E58AF7';/* ]]> */</script><script type="text/javascript" src="/CFIDE/scripts/ajax/messages/c­fmessage.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/package/cf­ajax.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/ajax/package/cf­richtexteditor.js"></script>­
<script type="text/javascript" src="/CFIDE/scripts/ajax/FCKeditor/­fckeditor.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/cfform.js"­></script>
<script type="text/javascript" src="/CFIDE/scripts/masks.js">­</script>

<title>test cftextarea</title>

<script type="text/javascript">/* <![CDATA[ */
/* ]]> */</script>

<script type="text/javascript">/* <![CDATA[ */

ColdFusion.RichText.initialize('cf_texta­rea1278000684820', 'xyz', 'xyzzzz', '/CFIDE/scripts/ajax/FCKeditor/', null, null, null, null, null, null, false, 'Basic', null, null, 'en');
/* ]]> */</script>
<script type="text/javascript">

user 7520549
Bethlehem, PA
Post #: 28
Issue resolved.

CFIDE is inC:\xyz\zyx\CFIDE. The website is D:\website. In cf administrator there was a mapping of CFIDE to the correct D:\xyz\zyx\cfide. Adding a mapping in CF administrator for /CFKeditor did not work. I added a virtual directory under the website that pointed D:\website\CFIDE to C:\xyz\zyx\CFIDE.

That fixed it.
A former member
Post #: 2

It's very risky to expose the contents of /CFIDE publicly. If you can, setup a standalone version of the editor instead and implement security specific to your business need.

See http://www.petefreita...­ and http://www.codfusion....­
user 25832282
Grasse, FR
Post #: 1
I have the same problem : FCK toolbar does not appear in CF9.

On CF8 , all in on the same disk C: , then it does work.

ON CF9 , CF is on disk C: , and my websites are on disk D:

How to solve this ?

Thanks for help.
Charlie A.
Group Organizer
Jamestown, KY
Post #: 211
What matters simply is whether the URL generated in the HTML, and being called from the browser, is finding what it needs on the server. What matters is not where you think/know the files are, but simply whether the browser can find them, the way it's being told to look at them. It could be a problem in your web server configuration, if it's either not pointing to the right folder, or the folder it's pointing to isn't the right version (of CF).

Do a "view source" in the browser, find the code that points to the editor (and/or the JS files that work with it), and then try to browse that URL yourself in your browser. You may see an error that is hidden by the controls or browser. If it fails, do whatever you need to do to make the request work.

Be sure also to watch out for browser caching problems, where even after you fix it, you may still see failures. Either clear your browser cache, or try the request from another browser/machine.
Denard S.
user 14618078
Mahomet, IL
Post #: 1
As another alternative, you can copy the CFIDE/scripts directory structure to your web application's document root, as only the CFIDE/scripts directory is required to make CF's Ajax/JS functions work. It's a hack, and it creates a nightmare situation if/when you upgrade so it's not the ideal solution. It is, however, a possible solution in a pinch.

I had a client running IIS v6 that had similar issues of misconfiguration in IIS and CF mappings that prevented CF from finding script tags where they resided, and we used the above solution to resolve the problem (mainly because they were also hosting over 800 live wordpress sites on the IIS server and reconfiguration for ColdFusion was impractical and too costly for the client <g>).

Be wary of this practice however, especially in environments such as yours (multi-server, muti-host) as upgrading CF (incl patches) can render your ajax implementation useless. That was especially true between 8.0 and 8.0.1, or maybe it was 8.0.1 to 8.0.2, for example, when the scripts had significant changes to them in any case.

IIS7 could be another potential solution as it adds functionality for URL rewrite, something IIS6 is lacking. This should allow you to place the CFIDE/scripts anywhere the web server can get to them and rewrite URLs for /CFIDE to that directory.
Charlie A.
Group Organizer
Jamestown, KY
Post #: 212
Denny's right in noting the potential significant risks of this work-around.

I'll add a different thought: you don't really need to wait for IIS 7 to implement the solution of "faking IIS" into finding the "right" directory. You can do to just as well by adding a "virtual directory" to your site.

Perhaps he didn't mention that because it would require changing every site. That's true, but not everyone has hundreds of sites, so we should note it could be the solution for folks with fewer sites. :-)

Also, even in IIS 6, there are free (and commercial) URL rewrite tools, if one wanted to try that as the solution instead. I list many at my CF411 site, specifically­.

But I'll say that finding and resolving the root cause problem (why are things mis-configured in the first place) may be the most important step one could take, though it may not be the most expedient. :-)
Powered by mvnForum

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy