I've implemented dialogs on my pages with the ui dialog button set using this code snippet:
$('#pop_div').load("mypopname.php").dialog({
width: 880,
height: 650,
modal: true,
draggable: false,
resizable: false,
title: 'page title',
buttons: {
Cancel: function () {
$('#pop_div').dialog("close");
},
Submit: function () {
$("#frmname").submit();
}
}
});
Is there a way to apply these same buttons (theme) to any page outside of a dialog?