PDA

View Full Version : jQuery adapter is changing the form method


Lucian
07-26-2007, 07:38 AM
Hi!...

I'm using:
1. Ext version 1.1 RC1
2. ext-jquery-adapter.js
3. Windows xp
4. Firefox 2.0.0.5

Part of my code:

myForm.submit({
waitMsg: 'Pagina se salveaza...',
method: 'POST',
reset: false,
success: function() {
alert('Succes!')
},
scope: this
});

After submit, the method is changed automagically by the jQuery adapter to 'GET' instead of 'POST', and also the param vars are lost. Using FireBug I tracked the config object. It is modified after the adapter is getting into action.
Maybe I should point that the form is inside of a dialog window.

jgarcia@tdg-i.com
07-26-2007, 08:16 PM
Hi!...

I'm using:
1. Ext version 1.1 RC1
2. ext-jquery-adapter.js
3. Windows xp
4. Firefox 2.0.0.5

Part of my code:

myForm.submit({
waitMsg: 'Pagina se salveaza...',
method: 'POST',
reset: false,
success: function() {
alert('Succes!')
},
scope: this
});

After submit, the method is changed automagically by the jQuery adapter to 'GET' instead of 'POST', and also the param vars are lost. Using FireBug I tracked the config object. It is modified after the adapter is getting into action.
Maybe I should point that the form is inside of a dialog window.


Try this:
http://tdg-i.com/extjs/examples/formBugFix/Action.js

Append that file under your last ext-js include and see if that fixes it.

Lucian
07-27-2007, 08:36 AM
Problem solved.
Thank you very much....=D>