Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-05-06 16:29:35

wayneduck
New member
Registered: 2005-05-05
Posts: 2

Firefox 1.03 Won't Pass Data From Textarea To CGI

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

#2 2005-05-08 03:38:36

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Firefox 1.03 Won't Pass Data From Textarea To CGI

Please simplify to a test case, include your config and have a very simple perl/php script to dump what is posted back.


James Sleeman

Offline

#3 2005-05-09 12:40:30

wayneduck
New member
Registered: 2005-05-05
Posts: 2

Re: Firefox 1.03 Won't Pass Data From Textarea To CGI

Thanks for reminding me of first principles . . . KISS . . .  Keep it simple stupid.  Problem solved.  Thanks.

Offline

Board footer

Powered by FluxBB