viewtopic.php?f=62&t=5157#p23375
I slightly changed the function (removed the argument Queue):
Code: Select all
function toChange() {
var oEditor = FCKeditorAPI.GetInstance('RichText');
}
Code: Select all
$('#Dest').bind('change', function (Event) {
Core.AJAX.FormUpdate($('#NewEmailTicket'), 'AJAXUpdate', 'Dest', ['TypeID', 'NewUserID', 'NewResponsibleID', 'NextStateID', 'PriorityID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', 'To', 'Cc', 'Bcc', 'StandardTemplateID' $Data{"DynamicFieldNamesStrg"}]);
switch ( $('#Dest').val() ) {
case "5\|\|xxxx":
oEditor.SetHTML('this is line one<br/>and line2');
break;
.....
}