的所有的Ajax网站的优点和缺点? [英] Pros and Cons of an all Ajax Site?

查看:110
本文介绍了的所有的Ajax网站的优点和缺点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我居然看到一个完整的AJAX网站的某个(我忘了在哪里),并认为这将是一些新的和有趣的尝试。我用了一个旧的网站,我已经建立,并把它放在一个新的服务器上。使用jQuery和Ajax的一点点,我是能够使在一个页面加载整个网站的工作。

So I actually saw a full ajax site somewhere (I forget where) and thought it would be something new and fun to try. I used an old site I had built and put it on a new server. With a little bit of jquery and ajax, I was able to make the entire site work on one page load.

我的问题是,有哪些优点和更有可能的缺点,这种方法?

My question is, what are some pros and (more likely) cons to this method?

请注意 - 该网站致力于通过一个巧妙的半连接功能。一切工作完全正常,如果用户不支持JavaScript,新请求的页面加载像它会在任何其他网站。

Please note - the site works through a semi clever linking function. Everything works perfectly fine if the user doesn't have javascript enabled, the newly requested page loads like it would on any other website.

更多细节 - 说出用户加载该网站的主页,然后记录在登录时,登录框变淡,并再次出现用户信息。在必要时在登录页面加载其他内容。如果他们点击一个链接,让说,公司章程,主页上的一列幻灯片和滑回的物品了。如果他们单击主页的文章向上滑动和网页内容幻灯片背下来。比如像发布评论,查看配置文件,对事物的投票等通过AJAX都做。

More detail -- Say the user loads the homepage of the site, then logs in. When they log in, the login box fades and reappears with user info. Other content on the page loads as necessary upon logging in. If they click a link, lets say "Articles", one column on the homepage slides up and slides back down with the articles. If they click home the articles slide up and the homepage content slides back down. Things like posting comments, viewing profiles, voting on things, etc. are all done through ajax.

这是网页设计的不好的方法?如果是这样,为什么?

Is this a bad method of web design? If so, why?

我是开放给所有的答案/意见。

I am open to all answers/opinions.

推荐答案

国际海事组织,这是不是坏或好。该完全取决于网站是否符合要求。通常情况下,开发人员使用AJAX的唯一网站往往错过了整个负面SEO的影响问题。但是,如果该网站开发了支持渐进增强(或取决于你的观点适度退化),这听起来像你有,那么你是好。唯一的东西,以prepare的时候这个AJAX调用无法完成预期(确保你处理超时,断开链接等),这样用户就不会被卡住盯着加载图标。 (那种东西,你必须处理的任何应用程序,真的。)

IMO, this isn't "bad" or "good". That depends completely on whether or not the website fulfills the requirements. Oftentimes, developers working on AJAX-only sites tend to miss the whole negative SEO impact issue. However, if the site is developed to support progressive enhancement (or graceful degradation depending on your point of view), which it sounds like you have, then you're good. Only things to prepare for are times when the AJAX call can't complete as expected (make sure you're dealing with timeouts, broken links, etc) so the user doesn't get stuck staring at a loading icon. (The kind of stuff you'd have to deal with in any application, really.)

有大量的单页网站有使用重型JS和AJAX的用户界面,他们都是伟大的。具体来说,我知道投资组合的网站网页设计师和使用这种方法的Web应用程序开发团队。通常情况下,应用程序感觉有点像一个Flash应用程序,而无需特殊的插件。

There are plenty of single-page websites out there using heavy JS and AJAX for the UI and they are great. Specifically, I know of portfolio sites for web designers and web app development teams that use this approach. Oftentimes, the app feels a bit like a flash app, but without the need for a special plugin.

这篇关于的所有的Ajax网站的优点和缺点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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