Im having problems with dialog box. I wanted to display inside the Dialog box the HTML content of the another page. for example.
index.php
var url = "/leave_ot/statistics.php?what="+type+"&item="+applicant;
//alert(url);
$.ajax({
type : 'GET',
url : url,
success : function(result)
{
$( "#dialog" ).dialog({
height: 140,
modal: true
});
}
})
applicant.html
some html codes
I wanted to put the html contents of applicant.html into the dialog box of index.php
applicant.html, why does the URL point tostatistics.php?$("#id_where_the_content_to_be_displayed").html(result);$("#dialog")...