I try to fetch some files but one of the format is HTML which should be embedded in iFrame. For this request I am using AJAX and JSON as data. Does anyone know how to call a HTML file? Now it is calling SWF files.
if ( 'undefined' === typeof(fsStructure[strPath]) ) {
$.ajax({
'url' : '../php/navigator.php',
'dataType' : 'json',
'data' : {'tarFolder':strPath},
success : function( respObj, textStatus, jqXHR ) {
if ( 'undefined' !== typeof(respObj['status']) ) {
if (
('success' === respObj['status']) &&
('undefined' !== typeof(respObj['subfolders'])) &&
('undefined' !== typeof(respObj['subswfs'])) ) {
processNewDFData( respObj, $currentSelectItem, strPath );
} else {
alert( conf.messages.bad_response_format );
}
} else {
alert( conf.messages.bad_response_format );
}
},
error : function( jqXHR, textStatus, errorThrown ) {
alert( conf.messages.failed_ajax_request );
}
});
}