私はfancyboxを使用しており、フォームを送信した後、親ページを指定されたURLに再変換したいのですが、以下のようにfancyboxを使用しています
$(document).ready(function () {
$('[id*=addnewRequest]').fancybox({
'width': 760,
'height': 540,
'padding': 0,
'margin': 0,
'hideOnOverlayClick': false,
'scrolling': 'auto',
'autoScale': false,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe',
'centerOnScroll': true,
'onClosed': function () {
if ($.redirTo != null && $.redirTo.length > 0){
window.location.replace($.redirTo);
}
else {
parent.location.reload(true);
}
}
});
});
フォームを送信した後、以下の登録スクリプトを使用しています。ここで、「redirectTo」は、親ページがリダイレクトするURLです。
ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "add", "parent.jQuery.redirTo='" + redirectTo + "'; parent.jQuery.fancybox.close();", true);
今、私の親ページはどのように特定のURLにリダイレクトされますか?
ありがとう、