如果在 JavaScript 中单击,则更新进度不会显示
简而言之,我的问题是:如何在单击按钮时但在页面完全加载时不触发?
当我单击母版页中的链接时,它应该在内容页面中显示报告。 我已经放置了一个 updateProgress 来显示“请稍候”,所以我在内容页面中放置了一个按钮,当单击时,它会用一个中继器填充报告,该中继器位于与 updateProgress 链接的 updatepanel 中,
因此单击该按钮可以工作,它会显示“请稍候” ”和报告 但我不想单击按钮,我想自动触发它,所以我把
<script type="text/javascript">
window.onload = function() {
var bouton = document.getElementById('<%= Button1.ClientID %>').click();
}
</script>
它设置为十分之一。
我想知道如何触发报告填充,然后自动显示更新进度页面已加载。
my question in a nutshell is: how not to fire when clicking a button but when the page is completely to loaded?
when I click a link in masterpage, it should show a report in content page.
I've put a updateProgress to show "please wait", so I put a button in content page which when onclick, its fill the report with a repeater which is in updatepanel linked with updateProgress
so clicking the button works, it shows "please wait" and the report
but I don't want to click the button, I want to fire it automatically, so I've put
<script type="text/javascript">
window.onload = function() {
var bouton = document.getElementById('<%= Button1.ClientID %>').click();
}
</script>
that works like 1 time out of 10.
I would like to know how to fire the report filling and so show the updateprogress automatically after page is loaded.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论