jQuery dialog not firing on submit confirm
<p>Ok, I've been working on this for a while, and I'm coming close to pulling my hair out. Here's the scenario.
I'm creating a discussion board, the posting form is called with AJAX, and when the user submits the form, I want a dialog to fire that has a warning and their comment in order to let them review and continue editing if needed.</p>

<p>The problem: I can't get the frickin' dialog to fire. I've tried most of the jQuery dialog answers posted here, but none of them have worked.</p>

<p>I'm posting the primary code here, but if needs be, I'll post the whole page. I'm using ckEditor and this form is originally called from an AJAX call itself.</p>

<p>Here's the code in question.</p>

<pre><code>$('#postComment_' + id).click( function() {
                // Warn the user about submitting. Let them review their comment.
CKupdate()
$('#confirmSubmit').dialog("destroy");
var commentTitle = $('#commentSubject_' + id).val();

// This is the warning dialog that isn't working!

var commentBody = CKEDITOR.instances['comment_' + id].getData();
var NewDialog = $('&lt;div&gt;You are about to submit your comment.&lt;/div&gt;'); 
// This will be where the user content will be. I stripped it out until I can get a simple warning to show.
$(NewDialog).dialog({
    modal: true,
    autoOpen: false,
    buttons: {
    'Submit': function() {
        $(this).dialog('close');
        // Just close and submit.
        $('#discussionComment_' + id).ajaxForm({
            beforeSend: function() {
                $('#discussionComment_' + id + ' input:submit').html('Sending...');
                $('#newEntry').attr('id', '');
                                },
            success: function(data) {
                $('#commentBox_' + id).after(data);
                $('#discussionComment_' + id).remove();
                $('#discussionComment_' + id).hide('puff', function() { $(this).remove() }, 'fast');
                $('#content_' + id + ' a.remove').removeClass('remove').addClass('respond').html('Respond');
                $('.expand').show();
                window.location + $('#newEntry');
                $('#newEntry').children().effect("highlight", {}, 3000);
            },
            error: function () {
                alert('There was a problem posting your comment. Please try again.');
            }
             }); // Form submit
            },
            'Edit': function() {
                $(this).dialog('close');
                return false; // Don't submit the form.
            }
            }
        }); 
        return false;
        });// Click to submit form.
</code></pre>

<p>Ok, let me say thanks to anyone who made it this far.
I'm also thick skinned for other crap I've screwed up, or poor form I've used. I'm trying to use good habits.</p>
