1
私はjqueryのAjaxの負荷の呼び出しを介して、私のセレクタをロードすると、問題が生じていますが、以下を参照: -jqueryダイアログのajaxがセレクタ(div)ではなくページ全体をプルロードするのはなぜですか?
var $loading = $ ('<img src="/img/loading.gif" alt="loading">');
$("#addAddressBtn").click(function(){
var $dialog = $('<div></div>')
.append($loading.clone());
$dialog.load("/customer/profile#addressSel", [], function(response, status, xhr) {
if (status == "error") {
var msg = "Sorry but there was an error: ";
$dialog.html(msg + xhr.status + " " + xhr.statusText);
}
else{
$dialog.dialog({
title: "Add Address",
width: "auto",
height: "auto",
modal: "true"
});
$dialog.dialog('open');
return false;
};
});
});
私は、ダイアログに表示したいすべてがaddresssSel divの全体プロフィールページがなぜロードされているのですか?