How to retrieve fck editor value in javascript?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,
 
I am using fck editor.My code is

In php

$oFCKeditor1 = new FCKeditor('textinputValues[6]') ;
$oFCKeditor1->ToolbarSet = 'Basic';
$oFCKeditor1->Width = 785;
$oFCKeditor1->Height = 350;
$oFCKeditor1->BasePath= $GLOBALS['rootRel'].'admin/includes/rte/';
$oFCKeditor1->Value=$invitationtext;
$view_prod->assign("EDITOR1",$oFCKeditor1->CreateHtml());

In html

<form action="{CURRENT_URL}" method="post" name="addtobasket" target="_self" enctype="multipart/form-data" onsubmit="return validator();">
{EDITOR1} //fck editor
</form>

In javascript

var itext = document.addtobasket.elements['textinputValues[6]'].value;'

alert(itext);

It shows 'document.addtobasket.elements['textinputValues[6]'].value' is null or not an object.
 
Thanks,
Gangadhar


      5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux