【发布时间】:2014-07-15 22:54:07
【问题描述】:
我有一个 SearchGoogle html 页面,它打开了一个谷歌地图。我想通过单击按钮将此 html 文件加载到模式对话框中。
在我的主 index.jsp 页面上定义了一个模式,并引用了 SearchGoogle.html。内容不加载。任何帮助? 下面的页面是我想在模态对话框中加载的远程页面。已经尝试远程内容加载。它不工作
<!DOCTYPE html>
<html>
<head>
<title>Search Map</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/googleMap.css" />
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places"></script>
<script src="script/googleMap.js"></script>
</head>
<body>
<input id="pac-input" class="controls" type="text"
placeholder="Enter a location">
<div id="type-selector" class="controls">
<input type="radio" name="type" id="changetype-all" checked="checked">
<label for="changetype-all">All</label> <input type="radio"
name="type" id="changetype-establishment"> <label
for="changetype-establishment">Establishments</label> <input
type="radio" name="type" id="changetype-geocode"> <label
for="changetype-geocode">Geocodes</label>
</div>
<div id="map-canvas"></div>
【问题讨论】:
-
请出示您的标记。您是否使用远程方法来加载模态内容?请阅读:getbootstrap.com/javascript/#modals 在选项的子标题下,有一个表格解释了远程选项并描述了从单独的 html 页面加载内容的正确方法。
-
请找到已编辑的代码。这是我想在模态对话框中加载的 remote.html。基本上它是一个谷歌地图 html。页面没有在模态中加载
标签: twitter-bootstrap-3 modal-dialog