"リモート"コンテンツを読み込もうとしています。基本的に同じサイトのHTTPリクエストで送信された情報です。ただし、リモートコンテンツを表示するモーダルボックスのために、私はすでにmodal-body
クラスを示すべきであると信じていTwitter Bootstrapモーダル - ロード "リモート"コンテンツ
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">× </button>
<h3>Change Your Password</h3>
</div>
<div class="modal-body">
<form>
<fieldset>
<label>Your current password</label>
<input type="password" placeholder="password">
<label>Confirm current password</label>
<input type="text" placeholder="password">
<button type="submit" class="btn">Submit</button>
</fieldset>
</form>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-primary" data-dismiss="modal">Close</a>
</div>
:
<div class="modal fade hide" id="ajax">
<div class="modal-body">
<p>body content to be replaced</p>
</div>
</div>
行う方法返されるコンテンツ自体は、次のような情報をバックスロー私はこれを踏んで、完全なモーダルdivのコンテンツを提供し、それを適切に表示させますか?
このページはAJAXを介してモーダルに読み込まれるため、「同一元のポリシー」の制限が適用されます(つまり、myapp.comでホストされているdivにawesomesite.comを読み込むことはできません) 。 –
これは、hrefによる応答がAJAX応答であることを意味しますか?同じアプリケーションから別のページを作成することもできます。 – Mutant
@mutant:申し訳ありませんが、私はあなたの質問を理解するとは思わない。 –