我需要首先调用一个URL来生成一个令牌,然后在它生成的令牌打开另一个(同一)网站的页面。它是生成令牌密切快,所以我无法获得Windows认证propertly如何在jQuery中调用ajax调用
这是我的实际代码的问题
function configurarClickLinkPromociones() {
$("#promocionesLink", contextoServicios).click(function() {
var winRef;
var seccionUrl = $(this).attr("data-url-seccion");
if (seccionUrl != "") {
showLoading();
$.ajax({
url: '/Support/GetToken',
type: "GET",
dataFormat: "text/json",
success: function (data) {
HideLoading();
winRef = window.open(data.Url + data.Token, '', 'menubar=0,resizable=1,location=1,scrollbars=1,width=976,height=505');
winRef.close();
winRef.open(seccionUrl, '', 'menubar=0,resizable=1,location=1,scrollbars=1,width=976,height=505');
},
error: function (XMLHttpRequest) {
HideLoading();
eval(XMLHttpRequest.responseText);
}
});
}
});
}
谢谢!这是我正在寻找的 – JorgeT