Line | |
---|
1 | |
---|
2 | <form action="[% c.uri_for('/', c.req.path) %]" id="explorer_d" method="POST"> |
---|
3 | <span id="distribselect"> |
---|
4 | [% INCLUDE 'ajax/forms/distribselect.tt' %] |
---|
5 | </span> |
---|
6 | <input type="submit" value="Update view..."> |
---|
7 | </form> |
---|
8 | [% c.prototype.observe_form('explorer_d', |
---|
9 | { |
---|
10 | url => c.uri_for('/ajax/forms/distribselect', { 'ajax' => 1 }), |
---|
11 | frequency => 1, |
---|
12 | update => 'distribselect', |
---|
13 | } |
---|
14 | ) %] |
---|
15 | |
---|
16 | |
---|
17 | <div id="exp_dir" style="float: left; border: outset; width: 30%"> |
---|
18 | Loading... |
---|
19 | </div> |
---|
20 | <div id="exp_file" style="float: left; border: outset; width: 60%"> |
---|
21 | Loading... |
---|
22 | </div> |
---|
23 | |
---|
24 | <script type="text/javascript"> |
---|
25 | new Ajax.Updater( |
---|
26 | 'exp_dir', |
---|
27 | '[% dirurl %]', |
---|
28 | { asynchronous: 1, parameters: 'ajax=1' } |
---|
29 | ); |
---|
30 | new Ajax.Updater( |
---|
31 | 'exp_file', |
---|
32 | '[% fileurl %]', |
---|
33 | { asynchronous: 1, parameters: 'ajax=1' } |
---|
34 | ); |
---|
35 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.