| Version 1 (modified by faisal, 16 years ago) |
|---|
var dropForm = new DropForm({source: 'survey_result'});
dropForm.addEvents({
'login': function(){
alert("LOGGED IN SUCCESFULLY");
},
show': function(){
alert("form is now displaying");
},
'hide': function(){
alert("form is now hidden");
}
});
//on some stufff that happened
dropForm.show($('some-block'), 'after'); //2nd arg by default is after
