Bootstrap Modal von einer anderen Seite
Ich habe einige Probleme festgestellt, als ich versucht habe, sie zu verwendenBootstrap Modal
in meinem Code.
HTML:
<a href="http://another.page" data-toggle="modal">Another Page</a>
oder
<a href="http://another.page" data-toggle="modal" data-target="#myModal">Another Page</a>
Ich würde gerne modalanother.page
zu meiner Seite, aber es funktioniert nicht.
dasanother.page
sieht aus wie:
<html>
<body>
<div id="myModal" class="tm-modal hide fade" tabindex="-1" role="dialog" aria- labelledby="myModalLabel" aria-hidden="true">
<div class="tm-modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> </button>
<h6>Modal Heading</h6>
</div>
<div class="tm-modal-body">
<p>One fine body
<85>
</p>
</div>
<div class="tm-modal-footer">
<button class="tm-btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="tm-btn tm-btn-recommand">Save changes</button>
</div>
</div>
</body>
</html>
Ich möchte das nicht ladenanother.page
Als ein<div>
in meinem Code, weil es zu viele Stellen gibt, an denen ich modal verwenden muss.
Habe ich etwas Wichtiges verpasst?
Vielen Dank.