- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我不想在回发时显示下面的弹出消息。我的页面与定价无关,它显示的是在回发时更新的 ms 图表。如何在代码或 java 脚本中禁用?
to display the webpage again internet explorer needs to resend the information you've previously submitted.
这是我试过的 javascript:虽然不起作用。
<script type="text/javascript">
// <!--
function submitForm() {
window.opener.document.forms[0].submit();
}
// -->
</script>
并将函数附加到表单:
<body>
<form id="form1" runat="server" onsubmit="submitForm()">
最佳答案
我敢打赌你会在你的 JavaScript 中这样做:
FB.Event.subscribe('auth.login', function(response) {
window.location.reload();
});
FB.Event.subscribe('auth.logout', function(response) {
window.location.reload();
});
虽然上述代码来自 Facebook 文档,并且适用于实现 Facebook JavaScript SDK 的独立网站,但它会在 Internet Explorer 和 Firefox 中通过导致无限循环来破坏您的 Facebook 应用程序。
当 Facebook 加载应用程序时,它会通过 POST 发送有关用户身份验证状态的信息。 SDK 处理这些数据并对用户进行身份验证。
通过告诉 JavaScript SDK 在成功验证后重新加载页面,Firefox 和 Internet Explorer 将其解释为它们也应该再次发送 POST 数据。您的 App 再次收到 POST 数据,重新验证用户身份,并重新加载页面,导致死循环。
解决方案:不要使用 window.location.reload()
。相反,您需要设置 window.location.href
(或以其他方式从浏览器请求中删除 POST 数据)。
关于javascript - 不显示 : To display the webpage again internet explorer needs to resend the information you've previously submitted,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7029966/
我在像这样的 Angular 应用程序中有一个 $http promise : this.data = $http.get('/api/foo', {}) 然后,我的应用程序的其他部分将成功和错误处理
我有一个按钮,它应该会在 30 秒后出现。倒计时从 30 秒开始。当它达到 0 时,应出现/启用重新发送代码按钮。 最佳答案 您可以使用 Timer 这样做来自 dart:async .. class
我有 2 个 UAC 连接到 FreeSWITCH。第 1 方调用第 2 方。第 2 方拒绝调用(使用“拒绝”或“此处忙”)。但 FreeSWITCH 不会向第 1 方发送“拒绝”。相反,它通过 SD
我是 C# 的新手,所以请多多包涵。 我正在编写一个 TCP 客户端服务器应用程序,我必须确保客户端发送的所有消息都传送到服务器。客户端将发送数据,服务器将发回 ACK(在应用程序级别实现)。 我知道
奇怪的问题在这里。我使用默认 Auth::routes(['verify' => true]);在 Laravel 6. 所以我注册(自定义注册表)并且一切正常(添加到数据库等)然后我被带到验证页面,
我有一个自定义邮件程序 (UserMailer.rb) 和一些方法来覆盖欢迎电子邮件和忘记密码电子邮件的默认 Devise 方法。邮件程序使用自定义模板来设置电子邮件的样式——效果很好。 在 conf
我有一个自定义邮件程序 (UserMailer.rb) 和一些方法来覆盖欢迎电子邮件和忘记密码电子邮件的默认 Devise 方法。邮件程序使用自定义模板来设置电子邮件的样式——效果很好。 在 conf
我想知道是否有人知道如果他们选择重新订阅,是否可以仅通过使用 API v3 向用户重新发送确认电子邮件。到目前为止,除了使用 mailchimps 自己的表单之外,我找不到其他方法。 干杯, 最大限度
我有一个带有表单的父站点,并且有通过 open.window 打开弹出窗口的链接。 我想在 Jquery .unload 事件 中使用 opener.location.reload() 重新加载父站点
我是 Python 的新手(不知何故我 2 天前开始关注 python)。 我尝试用 CGI 编写一个简单的交互式网页,并使用 HTML 表单获取用户输入。但是,殊不知,如果我刷新网页,表单数据又会重
我有一个未经确认的 aws cognito 用户,他在注册过程中没有验证他的电子邮件。当他尝试使用以下代码登录时: Auth.signIn({ username:email, pass
我有一个父页面 asp.net,在弹出窗口中我有这个: 问题是当弹出窗口关闭时,它总是用 IE 和 Firefox 询问这个确认信息: to display the website ag
我不想在回发时显示下面的弹出消息。我的页面与定价无关,它显示的是在回发时更新的 ms 图表。如何在代码或 java 脚本中禁用? to display the webpage again intern
鉴于用户正在等待确认电子邮件或已收到确认电子邮件,我如何确保他们不使用重置密码过程和强制 他们填写标准确认表格(使用确认 电子邮件)。 在我的例子中,用户必须在确认后选择一个用户名,而密码重置很烦人地
我正在使用 Ruby on Rails 构建网络应用程序。我正在使用 Mailgun 作为这个应用程序的邮件程序。当我使用 Facebook 注册时它工作正常但是当我尝试使用电子邮件和密码注册时,我不
我是一名优秀的程序员,十分优秀!