source: trunk/grails-app/views/setup/common/_on_page.gsp @ 1648

Last change on this file since 1648 was 1648, checked in by work@…, 11 years ago
  • advanced query page only shows previous query links if there are any
  • changed topnav
  • added base setup wizard
File size: 1003 bytes
Line 
1<%
2/**
3 * wizard refresh flow action
4 *
5 * When a page (/ partial) is rendered, any DOM event handlers need to be
6 * (re-)attached. The af:ajaxButton, af:ajaxSubmitJs and af:redirect tags
7 * supports calling a JavaScript after the page has been rendered by passing
8 * the 'afterSuccess' argument.
9 *
10 * Example:     af:redirect afterSuccess="onPage();"
11 *              af:redirect afterSuccess="console.log('redirecting...');"
12 *
13 * Generally one would expect this code to add jQuery event handlers to
14 * DOM objects in the rendered page (/ partial).
15 *
16 * @author Jeroen Wesbeek
17 * @since  20110318
18 *
19 * Revision information:
20 * $Rev:  67320 $
21 * $Author:  duh $
22 * $Date:  2010-12-22 17:49:27 +0100 (Wed, 22 Dec 2010) $
23 */
24%>
25<script type="text/javascript">
26        function onPage() {
27                if (console) {
28                        console.log('calling onPage() which can be used to attach generic javascript handlers to DOM elements of a rendered page / partial');
29                }
30        }
31</script>
32
Note: See TracBrowser for help on using the repository browser.