I'm currently loading data from a mysql db - if a certain condition is met, a
volunteer button is displayed.  When the button is clicked I want to display
a dialog box, and a php file is called to populate the box.  First I
initialize the dialog:
[code]
$(document).ready(function() {  
        $("#chaincrewDialog").dialog({ autoOpen: false });      
});
[/code]

Here is how I'm calling the dialog box:

[code]
        $('.volunteer').live("click", function(){       
                // this gets the game number from the table to pass to the php 
file
                var gameno
=$(this).parent('td').prev("td").prev("td").prev("td").prev("td").prev("td").html();
              
$('#chaincrewDialog').dialog('open').load("popup.php?gameno="+gameno);
    });
[/code]

My click button works fine, and there are no js or firebug error messages. 
My dialog is called with the following parameters: 
[code]
 $(function() {
    $('#chaincrewDialog').dialog({
                resizable: true,
                //bgiframe: true,
        autoOpen:   false,
        resizable:  false,
        modal:      true,
                dialogClass:    'flora',
                title: 'Volunteer',
                overlay: {
                opacity: 0.5,
                background: "#A8A8A8"
        },
        height: 600,
        width: 700,
                buttons: {
                        'Close': function() {
                        $(this).dialog('remove')
                        }
                }
    });
[/code]

I'm sure I'm missing something easy, but I can't get my dialog to even
display....
-- 
View this message in context: 
http://www.nabble.com/jquery-.live-with-a-dialog-box-can%27t-get-dialog-to-work-tp23906786s27240p23906786.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to