Announcement

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

#1 2006-01-17 20:58:25

logart
New member
Registered: 2006-01-08
Posts: 7

POST textarea vars not populated

I have a page with a textarea in it. The xinha editor shows in the textarea, and I enter some text. But when I post the form, the textarea comes across blank.

The post variable name is there, but it is blank. I have a non-xinha textarea on the page that comes across fine.

Any ideas on what I can check for?

Offline

#2 2006-01-19 01:02:35

mokhet
Xinha Authority
From: Paris, France
Registered: 2005-04-03
Posts: 105
Website

Re: POST textarea vars not populated

how is submited your form, using a submit button or using javascript and form.submit() ? The content of Xinha is automatically put in the textarea when you submit your form using a submit, which is not true when submiting with javascript.

I think you are doing form.submit() so is ticket #450 or eventually ticket #633 resolve your problem ?

if yes, it is bad to not search and not read through, let's say, the FAQ which would have answer to the question "How do I update the data in the editor?" smile
if no, can you provide a few more information about your version and if possible the url of one of your page to let us test and see what is wrong ?

Offline

#3 2006-01-19 11:50:13

logart
New member
Registered: 2006-01-08
Posts: 7

Re: POST textarea vars not populated

I am just using a simple submit button.

I am in the process of trying FCKeditor now.

Offline

#4 2006-01-19 15:03:30

mokhet
Xinha Authority
From: Paris, France
Registered: 2005-04-03
Posts: 105
Website

Re: POST textarea vars not populated

Well without more information (url, code, etc) about your problem, noone can nothing for you.

If you prefer wasting your time with a far more complicated editor, well, good luck to you then.

Offline

#5 2006-01-19 15:38:17

logart
New member
Registered: 2006-01-08
Posts: 7

Re: POST textarea vars not populated

I have not given up on xinha, just trying to test out each editor to see which best fits into my system. I will post some code when I get ready to test xinha again.

Thanks for the help...

Offline

#6 2006-02-06 04:15:35

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

Re: POST textarea vars not populated

A common issue I've found is incorrect nesting of the form element, specifically people often nest it between <tr> tags or similar invalid locations.  This will cause problems for you.

i.e <table><form><tr> is invalid and very bad, <form><table><tr> is OK.


James Sleeman

Offline

#7 2006-02-06 05:22:50

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: POST textarea vars not populated

I always did that with my <form> because of the ehm, how do I say this, the extra carriage return a <form> gives.

Only yesterday I learned this trick : <form style="display:inline;">. No more empty lines in the form !

Offline

#8 2006-02-08 11:09:43

mokhet
Xinha Authority
From: Paris, France
Registered: 2005-04-03
Posts: 105
Website

Re: POST textarea vars not populated

Ecco wrote:

<form style="display:inline;">. No more empty lines in the form !

display:inline will do the job if you need an inline form, but i can't find any "realistic" reason to use an inline form

form {
padding:0px;
margin:0px;
}

this is imo much better than display:inline for a form element

Offline

#9 2006-02-09 05:15:13

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: POST textarea vars not populated

I didn't know that was possible as well, wooow...

To think that this was a problem of mine for years...

Offline

Board footer

Powered by FluxBB