Skip navigation
Currently Being Moderated

usage of cftextarea and get value

Sep 13, 2011 10:24 AM

I used the cftextarea to get the FCK editor, like :

<cftextarea name="txt_h_1" message="Insérer le texte d'Accueil !" height="400" width="700" disabled="No" required="Yes" toolbaronfocus="No" bindonload="No" html="No" enabled="Yes" visible="Yes" richtext="Yes" toolbar="Basic" skin="silver">#get_param.txt_home_1#</cftextarea>

 

So the name of the element is : TXT_H_1

 

Ans when I want to save the content via an update query, it says that :

Element TXT_H_1 is undefined in FORM

 

All other FORM elements are well returned.

 

then how to get the value of the cftextarea ?

 

(I used a CFFORM with <input> inside instead of <cfinput>)

 

thanks for answer.

Pierre.

 
Replies
  • Currently Being Moderated
    Sep 13, 2011 12:36 PM   in reply to plarts

    What are you looking at to determine that you got every form element except the textarea?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 19, 2011 5:38 AM   in reply to plarts

    Here's the cause of the trouble: disabled="No" enabled="Yes".

    The browser probably disables the textarea the moment it encounters the word 'disabled'.  In any case, it is repetition to use the attribute 'disabled' as well as 'enabled'. In fact you could omit both!

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 20, 2011 10:20 AM   in reply to plarts

    Here is the test code that worked for me:

     

    <cfif isdefined("form.txt_h_1")>

    <cfdump var="#form#">

    </cfif>

     

    <cfset get_param.txt_home_1 = "blah blah blah">

    <cfform>

    <cftextarea name="txt_h_1" message="Insérer le texte d'Accueil !" height="400" width="700"  required="Yes" toolbaronfocus="No" bindonload="No" html="No" visible="Yes" richtext="Yes" toolbar="Basic" skin="silver"><cfoutput>#get_param.txt_home_1#</cfoutput></cftextarea >

     

    <cfinput name="sbmt" type="submit" value="send">

    </cfform>

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 20, 2011 1:53 PM   in reply to plarts

    plarts wrote:

     

    My problem now is under CF9  :

    my sites are on disk D:  and Coldfusion is on disk C:

     

    And the FCK toolbar does not appear.

    there is something to do somewhere about FCKeditor location,

    I presume in CF admin.

     

    The system files for the FCKEditor are in \CFIDE\scripts\ajax\FCKeditor\. What happens when you copy that directory to your site? If it works, then you should find a way to make the CFIDE directory accessible to your site. It could be that, unbeknownst to you, other functionalities besides FCK are not available to your site.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 21, 2011 12:51 AM   in reply to plarts

     

    If I copied the CFIDE (all files) in a website root, it does work

    Yes, you should copy CFIDE to the web root.

     

    But I cannot make a copy of CFIDE for each site,  (all  CXXXX / www)

    then I need a way to tell somewhere how to reach the CFIDE location.

    I can eventually make a single copy of it in the D:/wwwroot

    Do you think this can be managed in the CF admin ?

    Yes. In fact, doing it in the ColdFusion Administrator is probably the best way. Just create a mapping for CFIDE.

     

    During installation, ColdFusion usually creates a CFIDE mapping by default. If the mapping already exists, edit it to what you want.

     
    |
    Mark as:
  • Currently Being Moderated
    Calculating status...
    Sep 21, 2011 4:37 AM   in reply to plarts

    As you say "If I copied the CFIDE (all files) in a website root, it does work."

    You have no no need to copy it again and again. You can do it from IIS also. You need to add CFIDE under your virtual directory.

     

    Like if have site named "anysite", you need to right click on and choose add. After clicking add named the virtual directory as "CFIDE" and point it to actual CFIDE directory of coldfusion.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points