When *not to* use AJAX当*不要*使用AJAX技术
An example of wrong usage of AJAX aka XmlHttpRequest based web applications -一个例子是错误的使用AJAX技术又名xmlhttprequest基于Web应用程序- TinkingTeam Corporate Website tinkingteam企业网站 . 。 Here the menu content is dynamically fetched using Ajax.这里的菜单内容是动态牵强,使用AJAX 。
This is bad because:这是坏的,因为:
- Search engines like google cannot see it.搜索引擎,如Google不能看到它。
- Users cannot bookmark the pages.用户不能书签的页面。
- It doesn’t indicate anything is happening, which can be bothering over slow connections.这并不表明任何正在发生的事情,这可以困扰慢速连接。 This can be remedied by an “in progress” message like GMail.这可以弥补“在进步”的讯息,喜欢使用Gmail 。
The first two points reminds me of第一两点使我想起了 Flash only pages闪光的唯一的页面 . 。
Ajax is good for dynamic content update within a page. AJAX技术是有好处的动态内容更新的网页。 It should not be used to replace the page paradigm of web documents.它不应被用来取代页范式的Web文件。
Filed under提起下 Google谷歌 , , Headline News头条新闻 , , Technology技术 , , Web网页 , , Web Services Web服务 | |
| |
RSS 2.0 2.0 | |
Email this Article电子邮件此文章
You may also like to read您也可以想读 |





April 19th, 2005 at 4:40 am 2005年4月19日在上午04时40分
Everything you said applies.一切你说适用。 But the worst part of that implementation, if you as me, is that the back button is destroyed.但是最恶劣的部分,即执行,如果你作为我来说,就是后退按钮被摧毁。 Click a menu item view a page, hit back to view the page I was just on and poof, I’m whisked off their site and back to wherever I was before.点击菜单项查看一个网页,反击,以查看网页,我只是对和poof ,我护送过他们的网站,并回到地方,我之前。 (Or, nothing at all happens, if I arrived via bookmark.) (或者,什么都发生,如果我抵达通过书签) 。
No matter what web designers may or may not believe when they put together a page, users use the back button all the time.无论什么网页设计师可能会或不会相信,当他们放在一起的网页,用户使用后退按钮的所有时间。 Especially on slow connections.特别是对连接速度缓慢。 Anything that breaks its function should be done with EXTREME caution.任何休息,其功能应该做的极为谨慎。
April 19th, 2005 at 5:19 am 2005年4月19日在上午05时19分
I agree.我同意这一点。 Back button is very integral to the web experience.后退按钮是非常积分到Web的经验。 Users have become accustomed to it.用户已经习惯于它。
April 23rd, 2005 at 4:28 am 2005年4月23日在上午04时28分
unless of course, you’re building an intranet application to replace chunks of say lotus, access, php-groupware etc..除非当然,您建立一个联网的应用,以取代大块的说,荷花,准入, PHP的-群等。 in which case you ditch the back button entirely because you don’t want your users to think that it is in fact ‘just’ a web page, and you use ajax whereever makes sense.在这种情况下,您沟后退按钮完全是因为您不希望您的用户认为这实际上是在'公正'的网页,和您使用的AJAX的地方是有道理的。
if ajax breaks the back button, you aren’t required to ditch ajax..如果Ajax的休息,返回按钮,你不须沟阿贾克斯.. you could also ditch the back button.您也可以沟后退按钮。 of course, for most apps, this is completely inapplicable and would be very bad form.当然,对于大多数的应用,这是完全不适用,并会很坏的形式。
May 9th, 2005 at 9:23 am 2005年5月9日在上午09时23分
Ajax and weblogs 阿贾克斯和维博
If you take a look at the front page of kottke.org, you’ll notice a pulldown at the top of the content column (on the left).如果你看看在头版kottke.org ,您会发现下拉在最上方的内容栏(左侧) 。 When you mouse over the menu, you’re presented with a list of choices of what to display in that column and when you click on…当您将鼠标放置在菜单上,您提交了一份名单,选择什么样的显示在该栏和当您按下…
May 9th, 2005 at 10:48 am 2005年5月9日在上午10时48分
[...] explains the technique here in a helpful walkthrough. [...]解释技术在这里一个有用的漫游。 UPDATE: He also links to nice post how not to use AJAX.更新:他还链接到尼斯后如何不使用AJAX技术。 This entry was posted [...]此项目被张贴[ … … ]
May 11th, 2005 at 8:22 am 2005年5月11日在上午8时22分
Geez … it also appears to use synchronous ajax loading, freezing my browser when the site isn’t responding quickly enough.吉兹文… …它似乎也同步使用Ajax的加载,冻结我的浏览器时,该网站是没有回应不够快。
This is terrible!这是可怕!
May 15th, 2005 at 6:58 pm 2005年5月15日在下午6时58分
Yeah, synchronous loading defeates the entire purpose.是啊,同步加载defeates整个的目的。 It’s posisbly even worse than the traditional method as your browser freezes.它的posisbly甚至比传统的方法,作为您的浏览器冻结。 You may as well reload the entire page.您可能会以及重新载入整个页面。
It’ll be the next tech abused by bad clients and bad developers.它会在未来的高科技滥用坏的客户和坏的发展。
October 8th, 2005 at 1:48 am 2005年10月8日在上午01时48分
If you decide that you want to make a Web application, and not just a static Web page…如果您决定您想要让一个Web应用程序,而不只是一个静态网页… http://tom.gilki.org/programming/javascript/Login/ http://tom.gilki.org/programming/javascript/login/
You can do your best to ensure that you users get the best experience by following some common practices.你可以做你最好的,以确保您的用户得到最佳的经验,以下一些共同的做法。
June 16th, 2007 at 4:17 am 2007年6月16日在上午04时17分
hi, i found a full ajax website, and the back button works :嗨,我发现了充分的AJAX网站,并返回按钮工程: http://itbreaks.net
February 13th, 2008 at 3:20 am 2008年2月13日在上午03时20分
yeah …嗯…
But Using ajax i can make my grid wrk like Excel … [cant have dreamt of that without ajax ]但使用AJAX ,我可以让我的网格wrk ,如Excel … … [ cannot有梦想,没有阿贾克斯]