I'm trying to figure out a way to pass a GET variable to a Jquery UI dialog in order to be processed by some PHP. This is what I have:
$('.userjudge').click(function(){
var user = getID($(this).attr('id'),'UserJudge');
$('#judgesMenu').dialog('open');
$('#judgesMenu').data('user', user);
$( "#judgesMenu" ).dialog({
minWidth: 330,
postition: top,
open: function(event, ui) {
$.ajax({
type: "GET",
url: "adminmenu.php",
data: "user="+user
});
}
});
$( "#judgesMenu" ).dialog( "option", "position", 'top' );
});
Can anyone tell me how to do this properly?
adminmenu.php?user=IDin #judgesMenu ? Have you tried to use$("#judgesMennu").load("adminmenu.php?user=ID")before opening dialog?