Hello readers,
When placing a textarea inside a form in the FCKeditor something strange occurs:
Placing this form:
<form id="form1" name="form1" method="post" action="">
<table width="350" border="0">
<tr>
<td width="70">name</td>
<td width="270">
<span id="sprytextfield1">
<label>
<input type="text" name="text1" id="text1" />
</label>
<span class="textfieldRequiredMsg">A value is required</span></span>
</td>
</tr>
<tr>
<td>text</td>
<td><textarea name="textarea" id="textarea" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td>
<label>
<input type="submit" name="button" id="button" value="Verzenden" />
</label>
</td>
<td><label>
<input type="reset" name="button2" id="button2" value="wissen" />
</label></td>
</tr>
</table>
</form>
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
//-->
</script>
The editor creates:
<form id="form1" method="post" action="" submit="function(){for ( var name in FCKeditorAPI.Instances ){var oEditor = FCKeditorAPI.Instances[ name ] ;if ( oEditor.GetParentForm && oEditor.GetParentForm() == this )oEditor.UpdateLinkedField() ;}this._FCKOriginalSubmit() ;}" name="form1">
<table border="0" width="350">
<tbody>
<tr>
<td width="70">name</td>
<td width="270"><span id="sprytextfield1"><label><input id="text1" name="text1" type="text" /> </label><span class="textfieldRequiredMsg">A value is required</span></span></td>
</tr>
<tr>
<td>text</td>
<td><input id="textarea___Config" type="hidden" style="display: none" value="StylesXmlPath=..%2F..%2F..%2FbitSites%2Fde-regie.nl%2Fwwwroot%2Ffckstyles.xml%3F1248179909671" /><iframe id="textarea___Frame" height="365" src="/fckeditor/editor/fckeditor.html?InstanceName=textarea&Toolbar=Default" frameborder="0" width="100%" scrolling="no" style="background-image: none; border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; height: 365px; border-top: 0px; border-right: 0px; padding-top: 0px"></iframe><textarea id="textarea" rows="5" cols="45" style="display: none" name="textarea"></textarea></td>
</tr>
<tr>
<td><label><input id="button" type="submit" name="button" value="Verzenden" /> </label></td>
<td><label><input id="button2" type="reset" name="button2" value="wissen" /> </label></td>
</tr>
</tbody>
</table>
</form>
<SCRIPT type=text/javascript>
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
//-->
</SCRIPT>
Notice the Form method post will be changed and the textarea!
How can this be turned off?
Thanks in advance for the replys
Shurek
When placing a textarea inside a form in the FCKeditor something strange occurs:
Placing this form:
<form id="form1" name="form1" method="post" action="">
<table width="350" border="0">
<tr>
<td width="70">name</td>
<td width="270">
<span id="sprytextfield1">
<label>
<input type="text" name="text1" id="text1" />
</label>
<span class="textfieldRequiredMsg">A value is required</span></span>
</td>
</tr>
<tr>
<td>text</td>
<td><textarea name="textarea" id="textarea" cols="45" rows="5"></textarea></td>
</tr>
<tr>
<td>
<label>
<input type="submit" name="button" id="button" value="Verzenden" />
</label>
</td>
<td><label>
<input type="reset" name="button2" id="button2" value="wissen" />
</label></td>
</tr>
</table>
</form>
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
//-->
</script>
The editor creates:
<form id="form1" method="post" action="" submit="function(){for ( var name in FCKeditorAPI.Instances ){var oEditor = FCKeditorAPI.Instances[ name ] ;if ( oEditor.GetParentForm && oEditor.GetParentForm() == this )oEditor.UpdateLinkedField() ;}this._FCKOriginalSubmit() ;}" name="form1">
<table border="0" width="350">
<tbody>
<tr>
<td width="70">name</td>
<td width="270"><span id="sprytextfield1"><label><input id="text1" name="text1" type="text" /> </label><span class="textfieldRequiredMsg">A value is required</span></span></td>
</tr>
<tr>
<td>text</td>
<td><input id="textarea___Config" type="hidden" style="display: none" value="StylesXmlPath=..%2F..%2F..%2FbitSites%2Fde-regie.nl%2Fwwwroot%2Ffckstyles.xml%3F1248179909671" /><iframe id="textarea___Frame" height="365" src="/fckeditor/editor/fckeditor.html?InstanceName=textarea&Toolbar=Default" frameborder="0" width="100%" scrolling="no" style="background-image: none; border-bottom: 0px; border-left: 0px; padding-bottom: 0px; background-color: transparent; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; height: 365px; border-top: 0px; border-right: 0px; padding-top: 0px"></iframe><textarea id="textarea" rows="5" cols="45" style="display: none" name="textarea"></textarea></td>
</tr>
<tr>
<td><label><input id="button" type="submit" name="button" value="Verzenden" /> </label></td>
<td><label><input id="button2" type="reset" name="button2" value="wissen" /> </label></td>
</tr>
</tbody>
</table>
</form>
<SCRIPT type=text/javascript>
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
//-->
</SCRIPT>
Notice the Form method post will be changed and the textarea!
How can this be turned off?
Thanks in advance for the replys
Shurek