I have a weird bug that I am hoping someone can help me with. We have built a discussion board in Java using FCKEditor as the editor. The implementation is that we have a frameset containing a message list on the top and the editor in the lower frame. Wrapping the editor is a form. The editor has a custom plugin called "Post Comment", that when pressed by the user invokes javascript in the lower frame that simply submits the form containing the editor to the server.
The problem is that the first time the user clicks the Post Comment button, an alert is displayed containing the message "TypeError: E has no properties". I have traced through the Javascript to verify that the custom plugin is calling the "form submit" javascript successfully (i.e., the javascript contained in the editor's frame). It seems however that the act of submitting the editor's form is causing the TypeError alert to be displayed.
I have a question that might shed some light on the problem. I know that the editor resides within an IFrame and that a hidden form field is used to contain the editor text entered by the user. The question is: when is the hidden field populated with the editor text? Upon form submission? If so could the act of submitting the form be causing an error within FCKEditor?
Any help would be much appreciated!
Steve
The problem is that the first time the user clicks the Post Comment button, an alert is displayed containing the message "TypeError: E has no properties". I have traced through the Javascript to verify that the custom plugin is calling the "form submit" javascript successfully (i.e., the javascript contained in the editor's frame). It seems however that the act of submitting the editor's form is causing the TypeError alert to be displayed.
I have a question that might shed some light on the problem. I know that the editor resides within an IFrame and that a hidden form field is used to contain the editor text entered by the user. The question is: when is the hidden field populated with the editor text? Upon form submission? If so could the act of submitting the form be causing an error within FCKEditor?
Any help would be much appreciated!
Steve