Announcement

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

#1 2005-09-18 23:18:53

darkbluesun
New member
Registered: 2005-09-18
Posts: 6

cannot get POST data from xarea in Firefox

Hi,
I'm a newbie trying to get Xinha to work for the first time. I'm replacing HTMLArea in a crm application.
The area displays correctly in Firefox and IE, but in firefox, the form submission doesnt seem to get any data from the htmlarea.
It works fine in IE
I've tried switching to HTML view, but it still doesnt provide any data.
Any ideas?

Offline

#2 2005-09-19 01:52:18

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: cannot get POST data from xarea in Firefox

does your textarea work? (without htmlarea or xinha?)

please provide a demo-site!


Niko

Offline

#3 2005-09-19 08:15:24

kimss
Xinha Pro
From: Sweden
Registered: 2005-04-05
Posts: 99
Website

Re: cannot get POST data from xarea in Firefox

Could be your using some javascript using to move the content of your textfield area (the value) to another field by a javascript function which doesnt accually work in Firefox. I rememeber there was some functions for this in htmlArea, IE has alot of error correcting so faulty javascript often works like a charm in IE while buggering out in Firefox, hence "Firefox problems". Kinda in reverse really, big_smile

Providing a demo is otherwise a good idea so that we can accually look at your setup to possibly identify your problem.

Mvh,
Kim Steinhaug
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Easy CMS - Et brukervennlig publiseringssystem - Easy Webshop - Nettbutikk med krefter

Last edited by kimss (2006-02-27 19:20:20)

Offline

#4 2005-09-19 08:55:21

darkbluesun
New member
Registered: 2005-09-18
Posts: 6

Re: cannot get POST data from xarea in Firefox

Hi,
The textarea works fine when it is not an xarea or htmlarea.
Relevant code for the textarea is
<form name='editpage' action='/webdev/smartsite/page.php' method='post' enctype='multipart/form-data'>
<textarea name='body' id='xarea' cols='75' rows='15' />
And <input type='submit' name='submit' value='apply' />

I will try to create a simple demonstration, since the current one requires a login and lots of clicking.

Offline

#5 2005-09-19 11:46:51

kimss
Xinha Pro
From: Sweden
Registered: 2005-04-05
Posts: 99
Website

Re: cannot get POST data from xarea in Firefox

darkbluesun wrote:

I will try to create a simple demonstration, since the current one requires a login and lots of clicking.

I would guess you could solve this by doing a "view source" from within your system, and set up a new html page with that source without a loggin. Then we would get the exact "look and feel" of the Xinha instance in your environment - and we dont need all those clicks as you mentioned, big_smile

Offline

#6 2005-09-20 21:29:48

darkbluesun
New member
Registered: 2005-09-18
Posts: 6

Re: cannot get POST data from xarea in Firefox

Offline

#7 2005-09-20 23:22:28

darkbluesun
New member
Registered: 2005-09-18
Posts: 6

Re: cannot get POST data from xarea in Firefox

This is what I get if I change the form metod to GET.
page.php?pageid=1&page=5&section=2&name=Home&filename=&title=Home&subtitle=&description=home+page&picture=home.jpg&uppicture=&addtosection=&accesslevel=0&submit=Apply
The distinct lack of the textarea called 'body' in the get statement concerns me.

Offline

#8 2005-09-21 16:52:05

kimss
Xinha Pro
From: Sweden
Registered: 2005-04-05
Posts: 99
Website

Re: cannot get POST data from xarea in Firefox

Hmm.. Some quick notes on markup.

1. Move your <form tag and the first hidden ones outside the <table element. At the moment they are in between the <table>...<tr>
   I know you do this since the form element has margin and padding which affects your layout, but this is easily solved with this css

form {
  padding:0;
  margin:0;
}

2. Move your JS includes for Xinha in the Head section.

3. Where is your <body> tag?
   And when you get this placed you could use the default Xinha way of loading the editor, big_smile
   Im referring to the onload="xinha_init()"

Fix theese problems, and for all I know your problems may dissapair. Post your findings.

Offline

#9 2005-09-22 10:27:47

cappi
New member
Registered: 2005-09-22
Posts: 1

Re: cannot get POST data from xarea in Firefox

I have the same problem. If the enctype of the form is "multipart/form-data", Firefox obviously submits something strange. I will create a ticket for this.

Ciao cappi

Offline

#10 2005-09-22 20:47:21

darkbluesun
New member
Registered: 2005-09-18
Posts: 6

Re: cannot get POST data from xarea in Firefox

kimss wrote:

Fix theese problems, and for all I know your problems may dissapair. Post your findings.

Would you believe, that seems to have fixed my problem
Thankyou very much.

Offline

#11 2005-11-03 15:18:19

viviotech
New member
Registered: 2005-11-03
Posts: 1

Re: cannot get POST data from xarea in Firefox

Just a note to anyone else reading this. I had the same problem as described above. The xinha text area would not post, but it would work great without xinha. As mentioned above, my <FORM> tags were placed between the <table> and <tr> tags. Simply moving the <form tags ourside the <table> tags fixed my problem right up.

Thanks to klmss for this fix!

-Jordan

Offline

Board footer

Powered by FluxBB