I am able to open a html page with jquery ui dialog.
This is my code
var openDialog = $( "#dialog" ).dialog({
height:500,
width:500,
modal: true,
buttons: {
Cancel: function() {
$( this ).dialog( "close" );
}
}
});
openDialog.load("testPage.html").data("userID",this.model.userID).dialog('open');
I need to send data [ a couple of values] to testPage.html and tried using the the data as shown above and tried retriveing it in my testPage.html using
var test = $("#dialog").data("userID");
alert(test);
Which clearly seems the wrong way to go. Is there a way to do this?