hi, i don't know if i'm missing something but firebug won't display my form submission details (headers, params, etc..) i am using FormPanel...
here is my sample source code...
when i submit this form, it gets submitted to the server alright...but i just can't view the details (the headers, params, returned message pass to and from the server..)...
is there something i'm missing, or is this the natural behavior of FormPanel?
joborder.app = function(){
var submitComplete_Joborder = function(formEl,action){
this.btnSubmit.enable();
}
var submitFailed_JobOrder = function(formEl,action){
this.btnSubmit.enable();
}
var btnSubmitJobOrder_Click = function(btnEl,e){
btnEl.disable();
this.joborderform.getForm().submit({url:'index.php ?module=foo&event=bar',
waitMsg: 'Processing..',
method: 'post'
});
}
return {
joborderformtitle:'Job Order Form',
init: function(){
this.btnSubmit = new Ext.Button({id:'btnSubmit', Ask a Jedi: Trouble with ColdFusion.Ajax.SubmitForm : Raymond Camdens :: Download Firebug and get used to doing your debugging there. However, Im trying to submit the form to a CFWindow through ColdFusion.Ajax. http://www.coldfusionjedi.com/index.cfm/2008/7/3/Ask-a-Jedi-Troub-ColdFusionAjaxSubmitFormHOME | Attach more detailed breadcrumb-like information on the panel pane :: display = $form[panels_display code that I plugged into FireBug to mock it up: title bar or down below the No title would help accelerate http://drupal.org/node/194415HOME |
text:'Create Job Order',
handler:btnSubmitJobOrder_Click,
scope:this
});
this.joborderform = new Ext.form.FormPanel({labelAlign: 'top',
waitMsgTarget: true,
title: this.joborderformtitle,
fileUpload : true,
items:[/*myitems*/],
buttons:[this.btnSubmit]
});
this.joborderform.getForm().on({actioncomplete: submitComplete_Joborder,
actionfailed: submitFailed_JobOrder, SCR37: Creating Custom Dialogs in a Device Independent Way | Techniques :: submit value=OK /> <input type=reset value=Cancel /> </div> </form> </div> Resources are for information purposes only, no endorsement implied. http://www.w3.org/TR/2008/WD-WCAG20-TECHS-20081103/SCR37HOME |
beforeaction: function(formel,action){
/*some codes here*/
},
scope:this
})
this.joborderform.render('form_joborder');
}//end init
};
}();
thanks tryanDLS
Set BPs in the Action.Submit.run fn and see if something is causing it to fail before sending the request.
didn't get it man...:D
i am able to sucessfully post in the server, it's just that that the submission details wouldn't appear on firebug..
anyway, i am using FFox 2.x with firebug on windows
i'm really sorry if i'm my ignorance bothers you..
here is my code though:
/*jsondata = is a variable i encode first using ext.util...i currently can successfully decode it in the server..
*/
this.joborderform.getForm().submit({url:'index.php ?module=joborder&event=save_joborder',
waitMsg: 'Saving Job Order...',
method: 'post',
params:'templates='+jsondata
});
this snippet is invoked when a button is clicked (as seen in the original code posted above)
thanks tryanDLS...:)
That is the case for me as well for some reason.
I had to check the params in the server-side script.
hi djliquidice, thanks for the reply,
sorry man, didn't get what you meant...:D
Firebug can monitor all XHR, HTTP/scripttag proxy requests. My question is - are you tracking that via firebug? If so, where in firebug :)
Are you running in a web server?
make sure that in the console tab "options" dropdown, "Show XMLHttpRequests" is checked.
tryanDLS:
no, i am still running on localhost, but will try to test soon my code in a web server...i suspect that running on a web server will display the submission details on firebug...
djliquidice:
yes i am tracking those in firebug; and in the console part...most of ext components making ajax calls i used (tree, dataview, grid via get/post) are reflected in the console part...which has the params, headers, POST/GET, Response sections..and sadly these are not appearing on my FormPanel configured to work with JSON whenever i submit it...
devnull:
yes, i had that checked and i still cannot see the post summary of my form...
thanks all for the help!
Set BPs in the Action.Submit.run fn and see if something is causing it to fail before sending the request.
I have no issues with this in Fx 2.x + fb windows
where are you looking to monitor the form submission details? Network/XHR?
hi djliquidice, thanks for the reply,
where are you looking to monitor the form submission details? Network/XHR?
sorry man, didn't get what you meant...:D
anyway, i am using FFox 2.0 with firebug on windows...and my FormPanel is configured to work with JSON (which is the default if unspecified, right?) instead of XML...the weird thing is that the example on this site with the FormPanel's Loading and Submitting of XML data, actually is reflected on my firebug...but as for my case, it's just blank...and it gives me pain in debugging...
Same here, but I ain't quite sure if it ever did... can't really remember :P
Get Smart About Monitoring Virtual Machines
Microsoft Gets Ex-Streamly Cozy with U.K.'s MediaWave
|