jQuery UI Dialog

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/base/jquery-ui.css">
<input type="button" value="Open Menu" class="button" />
<div class="my_dialog" width="70%" height="50%">
    <iframe src='http://cannafo.com/classifieds/dispMenu.php?slug=diamond-tree' />
</div>

JavaScript

$(function() {
    $('.button').live('click', function() {
        $('.my_dialog').dialog('open');
    });

    $('.my_dialog').dialog({
        autoOpen: false,
        modal: true,
        buttons: {
            'Ok': function() {
                var textValue = $(':txtValue').val();
                $.ajax({
                    url: '',
                    type: 'POST',
                    data: {
                        str: textValue
                    },
                    success: function(result) {
                        alert(result.val);
                    }
                });
            },
        }
    });
});