o.robardet
20 Sep 2007, 6:33 AM
Hi,
I discovered Ext some days ago, and it's really a great lib =D>.
I'm using it to improve some of my apps UI with no problem until now.
I'm trying to submit a form using ajax. I'm using Ext.Ajax.serializeForm, which work fine in firefox (it returns the content of the form in a GET type URL), but not with IE7 (returns nothing).
The form is an HTML form, and I applied some Ext.form elements to its field. All field exists in the HTML code :
...
<form name="form_mailing" method="post" action="">
<input type="text" name="form_mailing_subject" id="form_mailing_subject" value="">
<textarea name="form_mailing_message" id="form_mailing_message"></textarea>
...
</form>
...
Appling Ext object on field onDocumentReady :
...
var fieldSubject = new Ext.form.Field({id: 'form_mailing_subject-cmp',allowBlank:false });
fieldSubject.applyTo('form_mailing_subject');
var mailEditor = new Ext.form.HtmlEditor({
id: 'form_mailing_message-edt',
width:640,
height:390,
enableSourceEdit: false
});
mailEditor.applyTo('form_mailing_message');
...
When clicking on my "submit" button (just a link with a jscript handler, not a submit input type in sens of html form):
...
alert(Ext.Ajax.serializeForm('form_mailing'));
...
Since the form exists as a DOM object, I think I can use Ext.Ajax.serializeForm, right?
Did I missed something or is there a bug with serializeForm() and IE7 (I'm using Ext 1.1)?
Does anyone already seen this problem (and maybe have a solution :p)?
Thanks.
I discovered Ext some days ago, and it's really a great lib =D>.
I'm using it to improve some of my apps UI with no problem until now.
I'm trying to submit a form using ajax. I'm using Ext.Ajax.serializeForm, which work fine in firefox (it returns the content of the form in a GET type URL), but not with IE7 (returns nothing).
The form is an HTML form, and I applied some Ext.form elements to its field. All field exists in the HTML code :
...
<form name="form_mailing" method="post" action="">
<input type="text" name="form_mailing_subject" id="form_mailing_subject" value="">
<textarea name="form_mailing_message" id="form_mailing_message"></textarea>
...
</form>
...
Appling Ext object on field onDocumentReady :
...
var fieldSubject = new Ext.form.Field({id: 'form_mailing_subject-cmp',allowBlank:false });
fieldSubject.applyTo('form_mailing_subject');
var mailEditor = new Ext.form.HtmlEditor({
id: 'form_mailing_message-edt',
width:640,
height:390,
enableSourceEdit: false
});
mailEditor.applyTo('form_mailing_message');
...
When clicking on my "submit" button (just a link with a jscript handler, not a submit input type in sens of html form):
...
alert(Ext.Ajax.serializeForm('form_mailing'));
...
Since the form exists as a DOM object, I think I can use Ext.Ajax.serializeForm, right?
Did I missed something or is there a bug with serializeForm() and IE7 (I'm using Ext 1.1)?
Does anyone already seen this problem (and maybe have a solution :p)?
Thanks.