/[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

Annotation of /Webpacus/root/js/webpac.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 137 - (hide annotations)
Thu Nov 24 22:29:39 2005 UTC (18 years, 5 months ago) by dpavlin
File MIME type: text/cpp
File size: 914 byte(s)
 r9111@llin:  dpavlin | 2005-11-24 22:22:05 +0100
 move more design to css, minor tweaks

1 dpavlin 97 // WebPAC AJAX API
2     //
3     // Documented in this code only, I'm afraid. Beware of dragons!
4     // Dobrica Pavlinusic dpavlin(at)rot13(dot)org 2005-11-22
5    
6     function load_template(template_name) {
7 dpavlin 137 Logger.info('load_template '+template_name+' old template is '+$('template_name').value);
8 dpavlin 101
9     $('template_name').value = template_name;
10    
11 dpavlin 137 Logger.debug('results_form '+$('results_form'));
12    
13 dpavlin 104 new Ajax.Updater( 'results', '/results', {
14 dpavlin 101 parameters: Form.serialize( $('results_form') ),
15     asynchronous: 1,
16     onLoading: function(request) {
17 dpavlin 106 show_searching();
18 dpavlin 101 },
19     onLoaded: function(request) {
20 dpavlin 132 Element.hide('searching');
21     /* hide_searching(); */
22 dpavlin 101 }
23     } ) ;
24     return false;
25 dpavlin 97 }
26 dpavlin 106
27     function show_searching() {
28     Element.show('searching');
29 dpavlin 136 new Effect.Fade('results', { duration: 0.3 });
30 dpavlin 106 }
31    
32     function hide_searching() {
33     Element.hide('searching');
34 dpavlin 132 //new Effect.Highlight('results');
35 dpavlin 136 new Effect.Appear('results', { duration: 0.3 });
36 dpavlin 106 }
37    

Properties

Name Value
svn:mime-type text/cpp

  ViewVC Help
Powered by ViewVC 1.1.26