You are not logged in.
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
does your textarea work? (without htmlarea or xinha?)
please provide a demo-site!
Niko
Offline
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,
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
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
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,
Offline
Here we go, I hope this helps.
Offline
This is what I get if I change the form metod to GET.
page.php?pageid=1&page=5§ion=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
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,
Im referring to the onload="xinha_init()"
Fix theese problems, and for all I know your problems may dissapair. Post your findings.
Offline
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
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
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