我尝试将html文件作为对象而不是SWF文件,但我真的无法弄清楚。有谁知道怎么做?这是我的请求功能:
function loadFolderStructure( strPath, $currentSelectItem ) {
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 );
}
});
} else {
rendSelects( $currentSelectItem, strPath );
}
}
答案 0 :(得分:0)
我并不完全理解您的要求,但如果您想将HTML页面作为对象,您可以尝试:
var x = document.documentElement