views:

175

answers:

0

I will be calling a jQuery dialog from various parts of a page. Each call is initiated by an onClick event of the calling object where I firstly call a function to create the dialog, write the close event binding to the dialog and then call the dialog. For the close event, I wish to have multiple commands to be performed, but different for each calling object. The close event binding is executing only the first command - command1 in the .bind('dialogclose', function(event){command1; command2}). Is there a way to make it accept more commands? I am not interested in writing different functions to be called for each initializing object as I will be using the dialog create and destroy functions in different pages and am not interested in filling up my page with a function to serve one object.