I think Its a very basic question. I am trying to develop a web page using Perl CGI. I have a text-editor(using iframe) in my form. Code:
<iframe id="textEditor" style="width:500px; height:170px;background-color:white">
</iframe>
I am trying to capture the content, which I am writing in text-editor on Submit of the form in my Perl CGI code, using param function. But failing!! Please help me out.
There is the code related to iframe:
<iframe id="textEditor" style="width:500px; height:170px;background-color:white">
</iframe>
<script type="text/javascript">
<!--
textEditor.document.designMode="on";
textEditor.document.open();
textEditor.document.write(\'<head><style type="text/css">body{ font-family:arial; font-size:13px; }</style> </head>\');
textEditor.document.close();
function def()
{
document.getElementById("fonts").selectedIndex=0;
document.getElementById("size").selectedIndex=1;
document.getElementById("color").selectedIndex=0;
}
function fontEdit(x,y)
{
textEditor.document.execCommand(x,"",y);
textEditor.focus();
}
-->
</script>
I am trying to capture the value written in text-editor using CGI param() function.