source: trunk/grails-app/views/importer/common/_refresh_flow.gsp @ 1430

Last change on this file since 1430 was 1430, checked in by work@…, 10 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Author Date
File size: 924 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  20101206
20 *
21 * Revision information:
22 * $Rev: 1430 $
23 * $Author: work@osx.eu $
24 * $Date: 2011-01-21 20:05:36 +0000 (vr, 21 jan 2011) $
25 */
26%>
27<script type="text/javascript">
28function refreshFlow() { 
29        <af:ajaxSubmitJs form="#wizardForm" name="refresh" afterSuccess="onPage()" />
30}
31</script>
Note: See TracBrowser for help on using the repository browser.