weixin_33739646 2010-07-12 04:40 采纳率: 0%
浏览 19

产品中Ajax的用法

Say I've been tasked to architect a product that will have a browser-based front end.
The sales team wants a snazzy app. The product management team want to make the product cost effective (right through the maintenance phase)

Now assume that the technical team gets to make the call (i wish :)) whether to give the users a 'rich' look & feel that sites like stackoverflow/facebook or to give them something from the 2006 era... with this bunch of considerations thrown in..

  1. The product life is envisaged to be around 6 years
  2. The product maintenance team should not need to refactor code to match future browsers
  3. The product maintenance team will only enhance business functionality
    ..and a whole lot of related stuff like this

.. would you recommend that ajax be used? If yes, what gives me that guarantee that the UI(ajax framework) I use today will continue to work with no change over the next 2-3 browser versions?

EDIT: Please don't assume that I have anything against AJAX. I've been working on DHTML since 1999 and ajax since before it was called ajax :) I've also been working on server side components that have not needed to change since 2002 just because they were coded to a spec.

Having said that I've got first hand experiences of how much 'fail gracefully' code I'd have to write just to keep these capricious browsers happy. Anyway, thanks for all your answers and I guess I'm back to implementing 'fail-gracefully' code yet again.

  • 写回答

3条回答 默认 最新

  • weixin_33726318 2010-07-12 04:45
    关注

    Generally, any framework is used for many years and as such ajax has been around quite some time. Additionally, browser change/updates are very sparse at the moment and we still have a 60% usage of ie6 if that is a tell of any sort.

    Generally, architect your system/solution with the idea of fallback solution in case of ajax/jquery frameworks not being available. Use the frameworks to extend the UI features and functionality but, at a base without them it would still have functionality.

    评论

报告相同问题?

悬赏问题

  • ¥50 易语言把MYSQL数据库中的数据添加至组合框
  • ¥20 求数据集和代码#有偿答复
  • ¥15 关于下拉菜单选项关联的问题
  • ¥20 java-OJ-健康体检
  • ¥15 rs485的上拉下拉,不会对a-b<-200mv有影响吗,就是接受时,对判断逻辑0有影响吗
  • ¥15 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况