Hi,
I've included FCKEditor in my PHP-script, sample:
But I'd like to assign the ID for the default text area, how can it be done?
Next, I will interact with FCK in JavaScript through ID, because script uses document.getElementByID instead of getElementByName
I'd be very glad for any useful assistance ...
I've included FCKEditor in my PHP-script, sample:
$oFCKeditor = new FCKeditor('inputForm') ;
$oFCKeditor->Value = 'Place Your information here!' ;
$oFCKeditor->ToolbarSet = 'Default';
$oFCKeditor->Height = 450;
$oFCKeditor->Create() ;
But I'd like to assign the ID for the default text area, how can it be done?
Next, I will interact with FCK in JavaScript through ID, because script uses document.getElementByID instead of getElementByName
I'd be very glad for any useful assistance ...

Re: How can I assign ID for default text area?
<html> <head> <script language='javascript'> function getValue() { var str = document.getElementsByName('inputForm')[0].value; alert(str); } </script> </head> <table> <tr> <td> <?php $oFCKeditor = new FCKeditor('inputForm') ; $oFCKeditor->Value = 'sample' ; $oFCKeditor->ToolbarSet = 'Default'; $oFCKeditor->Create() ; ?> </td> <td><input type='button' value='Test' onClick='getValue();'></td> </tr> </table> </html>In this code, when I press button (Test) it calls the JavaScript function (getValue), which always return "sample", even though FCK's TextArea has been changed to another content ....
How can I solve this problem?