AjaxML:以更簡便和不一樣的方式來使用Ajax

ajax 12年前發布 | 2K 次閱讀 5.2.1版本發布

JavaScript frameworks simplify sending Ajax requests so much by wrapping all the stuff into a cross-browser function.

AjaxML, a jQuery plugin, simplifies it even more for basic Ajax requests and can also handle any complex ones.

It works by defining the "details of the requests" inside HTML attributes like <a href="say_hello.html" into="divName"> ends up in hello.html being loaded inside the #divName HTML element.

AjaxML

Attributes exists for sending parameters, request method (GET, POST), validation, history and more.

AjaxML has both pros and cons. Defining requests in HTML and not being able to view/organize them in a single JS file is a minus (this can be so hard to maintain in large projects) while the ability to send requests "not-like JavaScript but HTML" can be  huge "plus" for many (specially web designers who are not good at JavaScript)

 本文由用戶 ajax 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!