We have a jquery dialog that contains a cfform with the CF rich text
editor.  We're trying to populate it with theColdFusion.RichText.setValue(()
function, but we keep getting an error.

I've verified we're calling the setValue() function properly, and if I make
the div that contains the form not be a dialog, it works just fine.

Does anyone know of any issues with the rich text area and jquery dialogs?
(I don't see why it would matter -- the form field exists in the source code
regardless).

Here's the basic flow:

1) A user clicks "edit"
2) That calls a function that opens the dialog (with a "loading ..." message
displayed) and calls an ajax request to load data for the form
3) The success function then populates the form (including the text area)
and removes the "loading..." message and displays the form

However, this line in step 3:

ColdFusion.RichText.setValue(document.forms['socialEventForm'].elements['socialEventDescription'].id,responseData.socialEventDescription);

results in a JS error:
_38c is undefined
/CFIDE/scripts/ajax/package/cfrichtexteditor.js
Line 141

Thanks!

Scott
-- 
-----------------------------------------
Scott Brady
http://www.scottbrady.net/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334559
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to