In our wicket application we are using a lot of Ajax links/forms. Sometimes, those requests take a second or two. We now want to give the user some feedback, that his request is being processed (to avoid double clicking or the impression that the webapp is slow).

What would be the best way to execute custom javascript methods BEFORE the request gets sent to the webapp? Those javascript methods would then show a progress bar, a message like "Your request is being processed.." etc.

For example: The user clicks an AjaxLink to delete an entry from the table and before the request gets sent to the server, some javascript method adds a small progress bar at the top of the table. Once the ajax request is done, the progress bar disappears.

Another example would be how Facebook handles sending private messages. As soon as I click the "send" button, the text area gets disabled / greyed out immediately and after the Ajax request has gone through, I get access again to the text area.


To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to