Announcement

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

#1 2005-12-21 15:07:56

rwar
New member
Registered: 2005-12-21
Posts: 2

data disappears with xinha

I've been testing xinha as in the newbieguide and I was succesfull. But when I write code in a production environment, the other data just disappeared from the screen.

There are several textareas in this script, but I already have tested with 2 or 3 textareas, having as examples the newbieguide one.

Anyone has had problems like this?

Offline

#2 2005-12-21 20:31:33

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

Re: data disappears with xinha

Common causes...

  1. You are submitting the form directly using form.submit() (or similar), which will not call the onsubmit() function of the form, which means that Xinha never gets told to save the HTML into the textarea.  If you are not submitting with a submit button, then make sure you call form.onsubmit() first.
  2. You have incorrectly nested the form tags inside tables, or table rows... eg <table><form...>.....</form></table> or <table><tr><form...> ... </form></tr></table>.  This is invalid HTML, and sometimes browsers will not throw events (or something, whatever Xinha fails on it), you should use valid HTML, specifically form tags may not be children of table, or tr.


James Sleeman

Offline

#3 2005-12-22 08:35:59

rwar
New member
Registered: 2005-12-21
Posts: 2

Re: data disappears with xinha

Hi gogo.

Maybe I have not described the situation correctly. I am not submitting anything.

Let me explain: when I click on the button that should show me the form, the page is... empty... There are no labels and fields to fullfill. But a strange thing happens: the cursor is the position of the first field, and the select boxes appears - just this king of element. Veeeeery strange!

I'm gonna test a few fields in another script with xinha, but I hope it works :-)

Offline

Board footer

Powered by FluxBB