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:
$(document).ready(function() {
$("#chaincrewDialog").dialog({ autoOpen: false });
});
Here is how I'm calling the dialog box:
$('.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);
});
My click button works fine, and there are no js or firebug error messages. My dialog is called with the following parameters:
$(function() {
$('#chaincrewDialog').dialog({
resizable: 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')
}
}
});
I'm sure I'm missing something easy, but I can't get my dialog to even display....