0
HTMLを開発しようとしています。そのページを送信した後、javascript window.location.hrefタグを使用して別のページにリダイレクトしますが、正しく動作しません。同じページ(または再読み込み)
感謝..リダイレクトウィンドウが共有ポイントで正常に動作していない
function submit(){
$().SPServices({
operation: "UpdateListItems",
async: true,
batchCmd: "New",
listName: "list",
valuepairs: [["ReportTitle",$('#txtTitle').val()],
["VerticalL1",$('#ddlL1 option:selected').text()],
["VerticalL2",$('#ddlL2 option:selected').text()],
["ReasonForSuggestingTitle",$('#txtReason').val()]],
completefunc: function(xData, Status) {
if (Status == 'success' && $(xData.responseXML).find('ErrorCode').text() == '0x00000000') {
alert('Thank you for responding to our survey!');
var url ="www.stackoverflow.com";
window.location.href= url;
}
}
});
}