English 中文(简体)
在Ajax重页背顿/连接支持的标准技术/图书馆是什么?
原标题:What are the standard techniques/libraries for back button/linking support in heavily Ajax pages?

我在离去之后,刚刚回到网络发展,现在正在建造全亚加固的网页,把整个网站各部分装上 j脚印,并令人惊讶地看到,这往往导致出现与书记和浏览器背书的网址。 如果没有统一的后丁顿第一频道,便有各种技术,确实有ts,而且可能还有支离破碎的图书馆来处理这个问题。

现有的各种技术是什么? 我知道的是涉及一个时间方和连接线的人吗? 你们的建议是什么?

以及如果是重船图书馆,由谁来研究,

最佳回答

仅看“hash-bang”一词......

页: 1

https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history”rel=“nofollow” (只有现代浏览器支持!) (git Hub正在利用这一方法通过源树进行航行)

问题回答

History.js,其中Andreas提到该接口的有

USing the HTML5 History API allows you to modify the url directly, so you don t have any of the SEO or js-disabled problems as you would when using hashes. You can read more about the issue of HTML5 History API VS. Hashes VS. Hashbang right here

History.js also supports all the javascript frameworks, and in an upcoming release will support even the use of no framework. There is also this snippet of code you can use, which will ajaxify most websites automatically without any extra or custom code.

除了选择性的超文本4浏览器支持外,你还想使用历史,其原因是,从母语看,超文本5的历史预报是无法使用的。 每个浏览器的操作方式都非常不同,有时甚至根本没有工作。 您可以找到一份清单,列出所有已知的与本土执行相关的交叉浏览器。

There is also Modernizr s HTML5 Cross Browser Polyfills Wiki Page which is a great resource for discovering which libaries are out there.

Check out backbone.js, which provides a lightweight MVC model in the browser utilizing URL fragments to represent different variations of a page.

......

网络应用往往选择改变其URL碎块(#fragment),以便为Ajax-heavy的申请提供可分享的、可预订的URL。 页: 1 路由器为路由客户方的URL碎块提供方法,并将其与行动和事件联系起来。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签