Hello
I have a simple problem with loading form by Ajax Using prototype.js v1.5.0:: This progress can inform four different stages: Loading, Loaded, Interactive, or Complete. You can make the Ajax.Request object call a custom function in http://www.sergiopereira.com/articles/prototype.js.htmlHOME | ExtJS 2.1 and Java Demo - ExtJS Ajax Communication Best Practices :: 10 posts - Last post: Jun 11Here is the code that handles a successful Form load (although you Set the configuration option failure with a function to call if the http://extjs.net/forum/showthread.php?t=35014HOME |
I use next code to load form
form.load({
url:'userDetails.htm',
success: this.onLoadSuccess, Ajax.InPlaceCalendarEditor = Class.create() Object.extend(Object :: stripTags()); }, callback: function(form) { return Form.serialize(form); }, handleLineBreaks: true, loadingText: 'Loading. http://laurentbois.files.wordpress.com/2007/11/in_place_calendar_editorjs.txtHOME |
failure: this.onLoadFailure, Pimping A PHP Login/Registration System With AJAX:: This function handles the status changes from the login form AJAX request. So, the first thing we have to do when the function is called is check the status http://webforumz.com/resources/pimping-a-php-loginregistration-system-with-ajax-38.htmlHOME | AJAX UpdatePanel Callback And Expired Forms Auth Ticket:: Just by doing this you should be able to load the page that you AJAX-ified in your browser and see . Technorati : AJAX UpdatePanel Forms Authentication http://geekswithblogs.net/bcaraway/archive/2007/06/02/112942.aspxHOME |
scope: this,
params:{
actionName: 'populateUserForm',
loginName: this.loginName
}
});
This is json response:
{"success":"false","errors":[{"errorCode":"nl.site.UnknownUser"}]}
Beacause success = false - failure method should be executed
But instead on executing this.onLoadFailure - it is calling this.onLoadSuccess.
May be response format is incorrect. Please advice
Pass the 'success' property as a boolean instead of a string. "false" will evaluate to a boolean true, while false (without the quotes) will properly evaluate to false.
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|