Last change
on this file since 236 was
236,
checked in by nanardon, 13 years ago
|
- replace the form-observer based on timer by onChange functions
|
-
Property svn:keyword set to
Id
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | <!-- $Id$ --> |
---|
2 | <form action="[% c.uri_for('/', c.req.path) %]" id="explorer_d" method="POST"> |
---|
3 | <span id="distribselect"> |
---|
4 | [% INCLUDE 'ajax/forms/distribselect.tt' form = 'explorer_d' %] |
---|
5 | </span> |
---|
6 | <input type="submit" value="Update view..."> |
---|
7 | </form> |
---|
8 | |
---|
9 | <div id="explorer_form"> |
---|
10 | <form action="#" method="POST"> |
---|
11 | Filter to file starting by: |
---|
12 | <input type="text" id="explorer_filter" name="filename"> |
---|
13 | <span id="explorer_filter_ind" style="display: none;">Re-Loading...</span> |
---|
14 | </form> |
---|
15 | [% c.prototype.observe_field( |
---|
16 | 'explorer_filter', |
---|
17 | { |
---|
18 | url => dirurl, |
---|
19 | frequency => 2, |
---|
20 | update => 'exp_dir', |
---|
21 | with => '"ajax=1&filename=" + value', |
---|
22 | indicator => 'explorer_filter_ind', |
---|
23 | loading => 'document.getElementById("explorer_filter_ind").style.display = "";', |
---|
24 | complete => 'document.getElementById("explorer_filter_ind").style.display = "none";', |
---|
25 | } |
---|
26 | ) %] |
---|
27 | <hr> |
---|
28 | |
---|
29 | <div id="exp_dir"> |
---|
30 | Loading... |
---|
31 | </div> |
---|
32 | </div> |
---|
33 | <div id="exp_file"> |
---|
34 | Loading... |
---|
35 | </div> |
---|
36 | |
---|
37 | <script type="text/javascript"> |
---|
38 | new Ajax.Updater( |
---|
39 | 'exp_dir', |
---|
40 | '[% dirurl %]', |
---|
41 | { asynchronous: 1, parameters: 'ajax=1' } |
---|
42 | ); |
---|
43 | new Ajax.Updater( |
---|
44 | 'exp_file', |
---|
45 | '[% fileurl %]', |
---|
46 | { asynchronous: 1, parameters: 'ajax=1' } |
---|
47 | ); |
---|
48 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.