source: trunk/grails-app/views/studywizard/common/_refresh_flow.gsp @ 1286

Last change on this file since 1286 was 1286, checked in by work@…, 10 years ago
  • BIG refactoring / rewrite of the wizard to use the ajaxflow plugin, part one of ticket #183
File size: 966 bytes
Line 
1<%
2/**
3 * wizard refresh flow action
4 *
5 * An example of a way to trigger a refresh in your ajax flow
6 * to refresh the rendered page. It will trigger the 'refresh'
7 * event in your webflow definition.
8 *
9 * I use this together with a select element, where the last
10 * option is 'add more'. When you select the last element a
11 * jquery-ui dialog opens where you will be able to add more
12 * elements to the select element. However, when the dialog
13 * is cloded, the select needs to be updated with the newly
14 * added options. So I call the refreshFlow(); JavaScript
15 * function to refresh the page and the select element will
16 * show the newly added options.
17 *
18 * @author Jeroen Wesbeek
19 * @since  20101220
20 *
21 * Revision information:
22 * $Rev:  66849 $
23 * $Author:  duh $
24 * $Date:  2010-12-08 15:12:54 +0100 (Wed, 08 Dec 2010) $
25 */
26%>
27<script type="text/javascript">
28function refreshFlow() {
29        <af:ajaxSubmitJs name="refresh" afterSuccess="onPage()" />
30}
31</script>
Note: See TracBrowser for help on using the repository browser.