You are not logged in.
I give up. I have worked on this for hours and hours. I have read everything concerning this topic I could find on this site. I still cannot get this to work. I have the lastest update of xinha I believe. The "nightly" from 5-2-05. Using IE everything works fine. I can submit with a regular button OR with the javascript function described in these threads (using form.submit() and form.onsubmit() ). With Firefox I can submit with a regular button but no data gets passed to the CGI. Totally frustrated! The javascript error message I get is
Error: document.formContainingTextArea.onsubmit is not a function
The page looks like this . . .
<html><head>
<style>
body {
font-family: Arial, Helvetica;
font-size; 12px;
text-align: left;
color: black;
background-color: #FFFFFF;
}
A { color: #000080 }
A:link { color: #000080 }
A:visited { color: #FF8000; font: 11px}
A:active { color: #000080 }
<!-- This defines the line between threads -->
.thread { width: 75%; color: #000080; }
<!-- This defines the box around marked messages -->
.marked { background-color: yellow }
</style>
<script type="text/javascript">
_editor_url = "http://auburn.nu/xinha/" // (preferably absolute) URL (including trailing slash) where Xinha is installed
_editor_lang = "en"; // And the language we need to use in the editor.
</script>
<script type="text/javascript" src="/xinha/htmlarea.js"></script>
<script type="text/javascript" src="/xinha/my_config.js"></script>
<script type="text/javascript">
function mySubmit() {
// document.edit.save.value = "yes";
document.formContainingTextArea.onsubmit(); // workaround browser bugs.
document.formContainingTextArea.submit();
};
</script>
</head>
<body>
<FORM name="formContainingTextArea" id="formContainingTextArea" METHOD=POST ACTION="/board/post.pl?setup">
<INPUT ID="subject" TYPE=TEXT NAME="subject" SIZE=50 MAXLENGTH=50>
<input type="submit" name="ok" value=" POST MESSAGE " /> <a href="javascript:mySubmit()">submit</a>
<TEXTAREA ID="theTextArea" NAME="theTextArea" style="width:100%" rows="20">
</TEXTAREA>
<a href="javascript:mySubmit()">submit</a>
</form>
</body></html>
Offline
Thanks for reminding me of first principles . . . KISS . . . Keep it simple stupid. Problem solved. Thanks.
Offline