我正在使用 fusionCharts 套件中的 fusionmaps。我已经搜索了他们所有的文档和知识库以了解如何做到这一点,但没有运气,所以我正在与你们联系。
我有一个地图(swf 文件),它从 xml 文档中获取数据来构建其数据。在该 xml 中,对于特定实体,我可以进行 javascript 调用。在 swf 所在的文件中,我有我的 JS 和 jquery 库。我最终试图让另一个 swf 文件在 UI 对话框中弹出。如果可能的话,我不知道该怎么做。我弹出对话框,但它是空的。我希望在其中放置的 swf 文件加载在我的其他 swf 文件之上。有什么建议么?
这是我的一些代码。
<script type="text/javascript"><!--
$(document).ready(function() {
$("#dialogContainer").dialog({
bgiframe: true,
height: 500,
width: 600,
modal: true,
autoOpen: false,
buttons: { "Close": function() { $(this).dialog("close"); }},
show: 'fold',
hide: 'fold'
});
}); //Close ready function
function loadDialog(continent) {
//var url = 'showDetails.cfm?region=' + continent;
//$("#dialogContainer").html('Loading. Please wait...');
$.ajax({
type: "post",
url: 'showDetails.cfm',
cache: false,
//dataType: 'html',
data: 'region=' + continent,
beforeSend: function() {$('#dialogContainer').html('Loading. Please wait...').dialog('open');},
success: function(msg) {$('#dialogContainer').html(msg);},
error: function(msg) {$('#dialogContainer').html(msg);}
});
}
我的 fusionmap 通话
<script type="text/javascript">
var map = new FusionMaps("Maps/FCMap_World8.swf", "Map1Id", "500", "300", "0", "0");
map.setDataURL("WorldData2.xml");
map.render("mapdiv");
</script>
我知道这是一个很长的问题,但只是希望。感谢您的浏览以及您可能有的任何建议。
克里斯