关于历史的2个问题 [英] 2 questions about histor

查看:46
本文介绍了关于历史的2个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

****通过post.usenet.com上的新闻阅读器免费发布****





1是否可以说返回一页并刷新?


2.链接是否可以替换历史堆栈中的当前页面?

(这对于点击表格的标题进行排序是有意义的。

必须点击返回所有排序是很烦人的!)


非常感谢您提前,


Aaron Fude


- = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - =

*** Usenet.com - 地球上排名第一的Usenet新闻组服务! ***
http://www.usenet.com

无限下载 - 19个单独的服务器 - 90,000个组 - 未经审查

- = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - =

**** Post for FREE via your newsreader at post.usenet.com ****

Hi,

1. Is it possible to say "go back one page and refresh it"?

2. Is it possible for link to replace the current page in the history stack?
(This would make sense for clicking on the heading of a table to sort it.
It''s annoying to have to click Back thru all the sortings!)

Thank you very much in advance,

Aaron Fude

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

推荐答案

Aaron Fude写道:
Aaron Fude wrote:
****通过post.usenet.com上的新闻阅读器免费发布****

你好,

1.是否可以说返回一页并刷新?


history.go(-1);


history.back();


至于刷新,你必须在你回来的页面中处理。

2.链接是否可以替换当前页面在历史堆栈?


history.replace(要替换的URL)

(这对于点击表格的标题进行排序是有意义的。
不得不点击返回所有排序是很烦人的!)
**** Post for FREE via your newsreader at post.usenet.com ****

Hi,

1. Is it possible to say "go back one page and refresh it"?
history.go(-1);

history.back();

As for the refresh, that would have to be taken care of in the page you
are going back to.
2. Is it possible for link to replace the current page in the history stack?
history.replace(URL to replace with)
(This would make sense for clicking on the heading of a table to sort it.
It''s annoying to have to click Back thru all the sortings!)




不,最好让onclick返回false,没有导航

发生了。


< a href =" noJS.html" onclick =" sortFunction(); return false">排序这个

标题< / a>


当然,这取决于你的方式排序正在发生。但是试图改变历史是最后的手段。



No, its better to have the onclick return false, and no navigation
happen at all.

<a href="noJS.html" onclick="sortFunction();return false">Sort on this
heading </a>

Of course, it depends on how your sorting is happening. But trying to
alter the history is a last resort.




" Randy Webb" <您好************ @ aol.com>在消息中写道

新闻:Qs ******************** @ comcast.com ...

"Randy Webb" <Hi************@aol.com> wrote in message
news:Qs********************@comcast.com...
Aaron Fude写道:
Aaron Fude wrote:
****通过post.usenet.com上的新闻阅读器免费发布****



1是否可以说返回一页并刷新它?
history.go(-1);

history.back();
至于刷新,你必须在你要返回的页面中处理。
**** Post for FREE via your newsreader at post.usenet.com ****

Hi,

1. Is it possible to say "go back one page and refresh it"?
history.go(-1);

history.back();

As for the refresh, that would have to be taken care of in the page you
are going back to.
2.链接是否可以替换当前历史记录中的页面
堆栈?
history.replace(要替换的URL)
2. Is it possible for link to replace the current page in the history stack?
history.replace(URL to replace with)




对我不起作用......


我有


< a href =""

onClick =" history.replace( ''/ srv/Filter.jsp?Type=0&Query=sion&SortBy=1&SortDir

= 1'');返回false;">信息< / a>


和javascript完全被忽略。


什么是支持级别对于history.replace?


Aaron(这对于点击表格的标题来排序
它是有意义的。必须点击Back thru是很烦人的所有的排序!)



Doesn''t work for me...

I have

<a href=""
onClick="history.replace(''/srv/Filter.jsp?Type=0&Query=sion&SortBy=1&SortDir
=1''); return false;">Info</a>

and javascript is ignored entirely.

What''s the level of support for history.replace?

Aaron (This would make sense for clicking on the heading of a table to sort it. It''s annoying to have to click Back thru all the sortings!)



不,最好让onclick返回false,并且根本不会发生导航。

< a HREF =" noJS.html" onclick =" sortFunction(); return false">按此
标题排序< / a>

当然,这取决于您的排序方式。但是试图改变历史是最后的手段。



No, its better to have the onclick return false, and no navigation
happen at all.

<a href="noJS.html" onclick="sortFunction();return false">Sort on this
heading </a>

Of course, it depends on how your sorting is happening. But trying to
alter the history is a last resort.



Aaron Fude写道:
Aaron Fude wrote:
" Randy Webb" ; <您好************ @ aol.com>写了[...]
"Randy Webb" <Hi************@aol.com> wrote [...]
Aaron Fude写道:
Aaron Fude wrote:
> 2.链接是否可以替换历史堆栈中的当前页面?
^^^
history.replace(要替换的URL)
> 2. Is it possible for link to replace the current page in the history stack? ^^^
history.replace(URL to replace with)



对我不起作用......



Doesn''t work for me...




不起作用是一个无用的错误描述。 [psf 4.11]

我有

< a href =""


您必须至少使用href ="#",属性值必须是%URI类型。

onClick =" history.replace (''/ srv/Filter.jsp?Type=0&Query=sion&SortBy=1&SortDir
= 1''); return false;"> Info< / a>


这是一个J(ava)仅限脚本的链接,但它可以很容易地成为一个良好的链接:


< a href =" /srv/Filter.jsp?Type = 0& Query = sion& SortBy = 1& SortDir = 1"

onClick =" history.replace(this.href);返回false;">信息< / a>

和javascript完全被忽略。


绝对不会被忽视。肯定会有未显示的

脚本错误。阅读有关调试的常见问题解答。

对history.replace的支持程度是多少?



"Does not work" is a useless error description. [psf 4.11]
I have

<a href=""
You must at least use href="#", the attribute value must be of type %URI.
onClick="history.replace(''/srv/Filter.jsp?Type=0&Query=sion&SortBy=1&SortDir
=1''); return false;">Info</a>
This is a J(ava)Script-only link but it could be made an as-well-link easily:

<a href="/srv/Filter.jsp?Type=0&Query=sion&SortBy=1&SortDir=1"
onClick="history.replace(this.href); return false;">Info</a>
and javascript is ignored entirely.
It most certainly is not ignored. Most certainly there are
script errors that are not displayed. Read the FAQ on debugging.
What''s the level of support for history.replace?




与top-posting相同和borken引用,阅读常见问题。


说真的,我不知道有哪些DOM有history.replace()。

但是,有location.replace()。

PointedEars



The same as for top-posting and borken quoting, read the FAQ.

Seriously, I do not know of any DOM where there is history.replace().
However, there is location.replace().
PointedEars


这篇关于关于历史的2个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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