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

Contents of /Webpacus/root/js/webpac.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 136 - (show annotations)
Thu Nov 24 22:29:34 2005 UTC (18 years, 5 months ago) by dpavlin
File MIME type: text/cpp
File size: 859 byte(s)
 r9110@llin:  dpavlin | 2005-11-24 19:08:10 +0100
 more improvements and restructuring

1 // 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 // alert('load_template '+template_name+' old template is '+$('template_name').value);
8
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 Element.hide('searching');
19 /* hide_searching(); */
20 }
21 } ) ;
22 return false;
23 }
24
25 function show_searching() {
26 Element.show('searching');
27 new Effect.Fade('results', { duration: 0.3 });
28 }
29
30 function hide_searching() {
31 Element.hide('searching');
32 //new Effect.Highlight('results');
33 new Effect.Appear('results', { duration: 0.3 });
34 }
35

Properties

Name Value
svn:mime-type text/cpp

  ViewVC Help
Powered by ViewVC 1.1.26