Changes between Initial Version and Version 1 of DropFormJS

Show
Ignore:
Timestamp:
09/10/09 22:00:47 (16 years ago)
Author:
faisal (IP: 216.214.144.156)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DropFormJS

    v1 v1  
     1 
     2{{{ 
     3var dropForm = new DropForm({source: 'survey_result'}); 
     4dropForm.addEvents({  
     5        'login': function(){ 
     6             alert("LOGGED IN SUCCESFULLY"); 
     7        }, 
     8        show': function(){ 
     9             alert("form is now displaying"); 
     10        }, 
     11        'hide': function(){ 
     12             alert("form is now hidden"); 
     13        } 
     14}); 
     15 
     16//on some stufff that happened 
     17dropForm.show($('some-block'), 'after'); //2nd arg by default is after 
     18 
     19}}}