点滴积累,融会贯通

-----喜欢一切有兴趣的东西

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  269 随笔 :: 0 文章 :: 418 评论 :: 17 引用

Easy integration

  • Just a few lines in web.config are enough to have MagicAjax working with default configuration options
  • Only one easy to use control (AjaxPanel) is required to be included in your page to enable the AJAX functionality

Usability

  • You put the part of your page that you want to have AJAX functionality inside an AjaxPanel and that's it; the MagicAjax framework takes care all of the intrinsic details for you
  • The AjaxPanel works like the ASP.NET Panel and can display its contents on the Visual Studio Designer, allowing you to add controls to it visually
  • No javascript code is needed to be written

Programming

  • For most cases you can add AJAX functionality to your existing pages by only adding AjaxPanels and without even a single change in the source code
  • MagicAjax replaces PostBacks with AJAX callbacks (AjaxCalls) that do not cause a refresh on the client's browser
  • The PostBack and AJAX functionality can co-exist in the same page; only the controls that are inside an AjaxPanel will perform an AjaxCall instead of a PostBack
  • The page's ViewState is shared amongst PostBacks and AjaxCalls; any changes to it by an AjaxCall will be available to a PostBack and vice versa
  • You handle an AjaxCall just like a PostBack, using the ASP.NET server-side programming model
  • MagicAjax intuitively spots the changes that occured during an AjaxCall and sends the minimum possible required javascript that will reflect the changes on the client's browser
  • There are plenty of helper methods to help you with handling an AjaxCall by code (i.e. if you want to send additional custom javascript to the client)

User experience

  • The user of your page enjoys a faster and richer browser UI, without the annoying PostBacks
  • A 'Loading' label notifies the user that an AjaxCall has been invoked
  • Instead of downloading the whole page for a Postback, the client only downloads chunks of javascript code that apply the changes made to the page's html
  • MagicAjax's changes to the page are kept in the browser's cache, so if the user navigates to another page and then presses the browser's 'Back' button, he will see the same page that he was viewing before

Customization

  • Many configuration options give you total control of the inner workings of MagicAjax
  • A small set of attributes applied to your ASP.NET controls can customize the way that they will be handled by MagicAjax
  • You can define that an AjaxCall will be invoked asynchronously or synchronously for all controls of an AjaxPanel or for a single control
  • You can define that certain controls of an AjaxPanel will invoke a plain PostBack
  • If the 'tracing' configuration option is enabled, a popup window is created that displays information about the data that were sent to and from the server, allowing you to monitor the traffic of AjaxCalls that the page invokes
  • Clean object-oriented design makes it easy to extend the framework and add your own AjaxControls

Compatibility

  • Internet Explorer, Firefox, Netscape and Opera browsers are supported
  • If a browser is not supported or the user has disabled javascript, the page will revert to plain PostBacks automatically

 

posted on 2006-05-17 13:25 小寒 阅读(358) 评论(0)  编辑 收藏 网摘 所属分类: Ajax




标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
Google站内搜索

China-pub 计算机图书网上专卖店!6.5万品种 2-8折!
近千种 9-95 新二手计算图书火热销售中!
开发者征途系统新作:《设计模式——基于C#的工程化实现及扩展》

相关文章:

相关链接: