View Full Version : AjaxTiles Resolver and 'loading' message
maheshguruswamy
Jul 28th, 2010, 07:23 AM
Hey Guys,
I was wondering if there is a way to show a 'please wait' image/message when the Ajax tiles resolver is re rendering a particular tiles fragment. Is it possible using Spring JS decoration?
InverseFalcon
Jul 28th, 2010, 01:11 PM
I don't know of a Spring JS decoration that does this.
However, you can execute custom javascript before the ajax request and immediately after the response is received.
You can attach handlers with Dojo:
dojo.connect(Spring.RemotingHandler.prototype, 'submitForm', null, 'myBeforeSubmitFunction');
dojo.connect(Spring.RemotingHandler.prototype, 'handleResponse', null, 'myAfterResponseFunction');
maheshguruswamy
Jul 28th, 2010, 01:15 PM
Exactly what i was looking for..thx InverseFalcon.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.