强制刷新浏览器 [英] force to refresh browser

查看:109
本文介绍了强制刷新浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试刷新浏览器,当数据库中有一些新信息时。

有没有办法强制刷新浏览器?

谢谢。


-Kev

解决方案

在文章< bp ******** **@msunews.cl.msu.edu>, no@spam.com 启发了我们

with ... < blockquote class =post_quotes>当我在DB中提供一些新信息时,我正在尝试刷新浏览器。
有没有办法强制刷新浏览器?
谢谢。



window.location.reload(true);


如果不在函数中,请注意无限刷新!


-

~kaeli~

是否有可能完全偏袒?
http://www.ipwebdesign.net/wildAtHeart
HTTP://www.ipwebdesig n.net/kaelisSpace


谢谢!


井,window.location.reload(真的)只要控制被击中那条线,

就会刷新。

我想做的是服务器端触发器向客户端浏览器发送消息到

刷新它。


-Kev


" kaeli" < TI ****** @ NOSPAM.comcast.net>在留言中写道

新闻:MP ************************ @ nntp.lucent.com ...

在文章< bp ********** @ msunews.cl.msu.edu> ;, no@spam.com 启发我们
与...

当我在
DB中提供一些新信息时,我正在尝试刷新浏览器。有没有办法强制刷新浏览器?
谢谢。



window.location.reload(true);

如果不是,请注意无限刷新在一个函数中!

-
〜kaeli~
是否有可能完全偏袒?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



在文章< bp**********@msunews.cl.msu.edu> ;, no@spam.com 启发了我们

with ...

谢谢!

好吧,window.location.reload(true)会在每次控制命中时执行,
它确实刷新。
我想做的是服务器端触发器向客户端浏览器发送消息以刷新它。




技术上,你可以''在常态跨浏览器的互联网环境

(即尽管是activeX,applets和COM)。


如果页面每隔一段时间刷新一次,请把它在setTimeout中。

这很常见。


如果用户通过弹出窗口更新数据库,主窗口位于

要刷新的特定页面,将脚本作为输出写入

弹出窗口,调用window.opener.location.reload(true)。


其他情况,请详细说明。我们可以找到一些

适合你的东西。


-

~kaeli~

一位落后的诗人写道......反向。
http://www.ipwebdesign。 net / wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


I''m trying to refresh browser when some new information is available in DB.
is there any way to force to refresh browser?
Thanks.

-Kev

解决方案

In article <bp**********@msunews.cl.msu.edu>, no@spam.com enlightened us
with...

I''m trying to refresh browser when some new information is available in DB.
is there any way to force to refresh browser?
Thanks.


window.location.reload(true);

Beware infinite refresh if not in a function!

--
~kaeli~
Is it possible to be totally partial?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


Thanks!

well, window.location.reload(true) does whenever control is hit that line,
it does refresh.
What I want to do is server side trigger send message to client browser to
refresh it.

-Kev

"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...

In article <bp**********@msunews.cl.msu.edu>, no@spam.com enlightened us
with...

I''m trying to refresh browser when some new information is available in DB. is there any way to force to refresh browser?
Thanks.


window.location.reload(true);

Beware infinite refresh if not in a function!

--
~kaeli~
Is it possible to be totally partial?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



In article <bp**********@msunews.cl.msu.edu>, no@spam.com enlightened us
with...

Thanks!

well, window.location.reload(true) does whenever control is hit that line,
it does refresh.
What I want to do is server side trigger send message to client browser to
refresh it.



Technically, you can''t in a normal cross-browser internet environment
(that is, activeX, applets, and COM notwithstanding).

If the page should be refreshed every so often, put it in a setTimeout.
This is common.

If the user updates the DB via a popup with the main window on a
particular page you want to refresh, write a script as output to the
popup that calls window.opener.location.reload(true).

Other situation, please elaborate. We can probably find something that
works for you.

--
~kaeli~
A backward poet writes... inverse.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


这篇关于强制刷新浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆