Opened 12 years ago

Closed 12 years ago

#1237 closed defect (worksforme)

Form won't submit in FF with Xinha on the page

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords:



The form will not be submitted with a XINHA (Release: 0.95 (Do, 01 Mai 2008 14:33:36 +0200)) textarea on my page in Firefox ( I submit the form through javascript (see below). The form will not be posted and the page will not submit - just sit there doing nothing.
All works well in IE.

When I remove XINHA it posts fine in FF again.

I'm using the following code in the header:

<SCRIPT language="JavaScript?">
function SubmitForm?()
var form1 = document.getElementById('form1');

if (Spry.Widget.Form.validate(form1) != false)


return false;

I'm using a simple form as of:
<form action="somepage.htm" method="post" name="form1" id="form1">
<textarea id="webpage_body" name="webpage_body" style="width: 100%" rows="40">Some text</textarea>

Underneath the form I have a button as of:
<input name="btnSave" type="button" class="button" onclick="SubmitForm?()" value="Save" id="btnSave" />


Change History (1)

comment:1 Changed 12 years ago by gogo

  • Resolution set to worksforme
  • Status changed from new to closed

First you are using "Spry", any incompatability you will have to resolve yourslf.

Second "form1.submit();" does not call the onsubmit handler for the form, you must call the onsubmit() handler for Xinha to function correctly.

Note: See TracTickets for help on using tickets.