Subject: [jquery-ui] Dialog - how to pass variables

I'm using UI 1.7 and jquery 1.3.2.

I have the dialog set up

autoOpen: false,
modal: true,
overlay: {
backgroundColor: '#000',
opacity: 0.5
buttons: {
'Close This Review': function() {
//pass id here
Cancel: function() {

var tmp ="-");
id = tmp[tmp.length-1];

I'm getting an id from the click function which I would like to pass
to id to the $("#review_update").dialog() (first function) so that i
can use it with the dialog buttons, but have no idea how to do this.
Any ideas would be appreciated.

You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to jquery-ui@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to

For more options, visit this group at