Skip to main content
January 29, 2009
Question

cftextarea problem

  • January 29, 2009
  • 3 replies
  • 961 views
I have a page main.cfm which contains a cflayout using tabs.

One of the tabs displays a page details.cfm, which contains a cfform with a cftextarea with richtext set to yes.

The submit button runs an update.cfm page, which doesn't display anything, but instead redirects back to details.cfm after updating a record in a database.

After you click the submit button the application does its thing, but displays the following message:

Error: The TEXTAREA with id or name set to "cf_textarea1233196607205" was not found.

When you click OK the details.cfm page displays in the tab, with the updated information from the database, but the rich text editor has gone and been replaced with a default size HTML textarea control.

I'm new to all this so haven't a clue as to where to look to fix this, as everything seems to be working right apart from this particular error.

Any ideas?
    This topic has been closed for replies.

    3 replies

    February 1, 2009
    I had looked at ColdFusion.navigate() prior to writing this code. It escapes me why I didn't use it. ajaxonload() is a new one on me though, but I'll take a look. Thanks!!! I'm not familiar with all the ajax stuff yet, so I think you might be pointing me in the right direction.
    Inspiring
    January 29, 2009
    Step 1 in most debugging situations is to look at your data. Put these two lines at the top of your update page.

    <cfdump var="#form#">
    <cfabort>

    Inspiring
    January 29, 2009
    how exactly does your update.cfm page redirect back to details.cfm page?


    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    January 30, 2009
    @ Azadi:

    This is the last line of the file. If this isn't the best way to be doing this, please be kind with your response. :D

    <cflocation url="details.cfm?id=#id#" addToken="no">

    @ Dan:

    All the form fields and data appear to be correct, and I get the following additional members of the structure:

    _CF_CLIENTID 97FE244C44ECCAF73673FBE2BEF175B5
    _CF_CONTAINERID WO21503 (the correct name of the tab)
    _CF_NOCACHE true
    _CF_NODEBUG true

    It updates the database correctly, which is everything before the last line I posted in response to Azadi.