How can I pass params to the open event of jquery.ui.dialog?

How can I pass params to the open event of jquery.ui.dialog?

Hello everyone:

In my project, I want to load a partial view dynamically which will be able to create and edit data.

The dialog can be triggered by create button. Also I want the dialog can be triggered by edit button in a data list.

so I write my code as below:

  1. $('#editorDialog').dialog({
  2.       autoOpen: false,
  3.       title: 'edit',
  4.       bgiframe: true,
  5.       width: 980,
  6.       position: "top",
  7.       modal: true,
  8.       open: function(event, ui) { //How can I pass params to here.
                $('#editorDialog').load('/Business/Order/Edit/', function() { 
                    //do something here
                });
          },



  9.       buttons: {
                "Submit": function() { //do something here},
                "Cancel": function() {
                    $(this).dialog("close");
                }
            },




  10. });
 In the part which I marked, I want to pass some params such as value of id.
How can I do that?