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

#1 2011-08-23 06:19:07

New member
Registered: 2011-01-04
Posts: 6

Xinha post with Mootools


I have a simple textarea to use with Xinha.
When I want to post my content (to a php file) with Mootools (v 1.3.2), the post var of my textarea have no content (I have the right var, but without content).

To send my content with Mootools, I use this javascript function :

document.addEvent('domready', function(){
var monForm = $('gestion_parametres_news');
monForm.addEvent('submit', function(e){
monForm.set('send', {
onSuccess : function(responseText, responseXML){
var afficheEtat=$('afficheInfosEtat');
afficheEtat.set('html', responseText);
(function() {

And my form :

<form name="gestion_parametres_news" id="gestion_parametres_news" action="./Ajax/gestion_parametres_news.php" method="post" enctype="multipart/form-data">
<input type="hidden" id="dirPointPage" name="dirPointPage" value="../">
<input type="hidden" id="langPage" name="langPage" value="fr">
<input type="hidden" id="modifFontSizePage" name="modifFontSizePage" value="10">
<input type="hidden" id="stylecssPage" name="stylecssPage" value="normal">
<textarea id="editeur" name="editeur" rows="25" cols="50" style="width: 100%"></textarea>
<input type="submit" name="valider" value="Valider" title="Valider" />

EDIT 1: When I don't call Xinha, I have my content in my php file.

EDIT 2: When I click two times on my submit button, it works, but not the first time


Last edited by yuccaone (2011-08-23 07:28:41)


#2 2011-09-05 19:47:10

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

Re: Xinha post with Mootools

You must call the DOM0 onsubmit of the form (ie yourform.onsubmit() ).  Or use yourxinha.getHtml() to get the HTML and add it into the textarea yourself.

James Sleeman


Board footer

Powered by FluxBB