You are not logged in.
Pages: 1
Hi,
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){
e.stop();
monForm.set('send', {
onSuccess : function(responseText, responseXML){
var afficheEtat=$('afficheInfosEtat');
afficheEtat.set('html', responseText);
(function() {
afficheEtat.empty();
}).delay(4000);
}
})
monForm.send();
});
});
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" />
</form>
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
Thanks
Last edited by yuccaone (2011-08-23 07:28:41)
Offline
Pages: 1