/[webpac2]/Webpacus/root/js/webpac.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/root/js/webpac.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 97 by dpavlin, Tue Nov 22 12:57:35 2005 UTC revision 106 by dpavlin, Tue Nov 22 19:34:33 2005 UTC
# Line 4  Line 4 
4  // Dobrica Pavlinusic dpavlin(at)rot13(dot)org 2005-11-22  // Dobrica Pavlinusic dpavlin(at)rot13(dot)org 2005-11-22
5    
6  function load_template(template_name) {  function load_template(template_name) {
7          alert('load_template '+template_name);  //      alert('load_template '+template_name+' old template is '+$('template_name').value);
8          return;  
9            $('template_name').value = template_name;
10    
11            new Ajax.Updater( 'results', '/results', {
12                    parameters: Form.serialize( $('results_form') ),
13                    asynchronous: 1,
14                    onLoading: function(request) {
15                            show_searching();
16                    },
17                    onLoaded: function(request) {
18                            hide_searching();
19                    }
20            } ) ;
21            return false;
22    }
23    
24    function show_searching() {
25            Element.show('searching');
26  }  }
27    
28    function hide_searching() {
29            Element.hide('searching');
30    }
31    

Legend:
Removed from v.97  
changed lines
  Added in v.106

  ViewVC Help
Powered by ViewVC 1.1.26