background preloader

Mazeracastel

Facebook Twitter

veille technologique ajax

AJAX Examples. Here is a list of some famous web applications that make use of AJAX. Google Maps A user can drag an entire map by using the mouse, rather than clicking on a button. Google Suggest As you type, Google will offer suggestions. Use the arrow keys to navigate the results. Gmail Gmail is a webmail, built on the idea that email can be more intuitive, efficient and useful. Yahoo Maps (new) Now it's even easier and more fun to get where you're going! Difference in AJAX and Conventional CGI Program Try these two examples one by one and you will feel the difference. AJAX Example: Standard Example: NOTE: We have given a more complex example in AJAX Database. Simplifiez vos développements JavaScript avec jQuery. Si vous avez déjà programmé en JavaScript, vous savez que ce langage est puissant, mais aussi « verbeux » et souvent assez complexe à mettre en œuvre. Si vous voulez accéder à toute la puissance de JavaScript en utilisant des instructions simples, logiques, faciles à comprendre et à maintenir, jQuery est vraiment fait pour vous !

Avec ce cours, je vous propose de découvrir les multiples facettes du framework jQuery. De la sélection d'éléments à la manipulation du DOM, en passant par l'animation, les requêtes AJAX, l'utilisation et la création de plugins, la création de jeux et bien d'autres choses encore ! N'ayez crainte, votre apprentissage se fera en douceur et de très nombreux exemples de code documentés viendront consolider vos connaissances. Au fil des pages, votre approche deviendra de plus en plus naturelle et les nouveaux chapitres ne feront qu'apporter une pierre de plus à l'édifice, sans en ébranler les fondations. AJAX Tutorial. How to Use jQuery's $.ajax() Function. Without any doubt Ajax has taken web development by storm and it’s one of the most successful paradigms ever.

In my article An Introduction to jQuery’s Shorthand Ajax Methods, I discussed some of jQuery’s most used Ajax shorthand methods: $.get(), $.post(), and $.load(). They are convenient methods for making Ajax requests in a few lines of code. Sometimes, we need more control over the Ajax calls we want to make. For example, we want to specify what should happen in case an Ajax call fails or we need to perform an Ajax request but its result is only needed if retrieved within a certain amount of time. In such situations, we can rely on another function provided by jQuery, called $.ajax(), that is the topic of this tutorial. The $.ajax() Function The jQuery’s $.ajax() function is used to perform an asynchronous HTTP request. . $.ajax(url[, options]) $.ajax([options]) In its first form, this function performs an Ajax request using the url parameter and the options specified in options.

Ajax. Asynchronous JavaScript + XML, while not a technology in itself, is a term coined in 2005 by Jesse James Garrett, that describes a "new" approach to using a number of existing technologies together, including: HTML or XHTML, Cascading Style Sheets, JavaScript, The Document Object Model, XML, XSLT, and most importantly the XMLHttpRequest object. When these technologies are combined in the Ajax model, web applications are able to make quick, incremental updates to the user interface without reloading the entire browser page. This makes the application faster and more responsive to user actions. Although X in Ajax stands for XML, JSON is used more than XML nowadays because of its many advantages such as being lighter and a part of JavaScript. Both JSON and XML are used for packaging information in Ajax model. Documentation Getting Started This article guides you through the Ajax basics and gives you two simple hands-on examples to get you started.

Using the XMLHttpRequest API Fetch API XPath. jQuery.ajax() Description: Perform an asynchronous HTTP (Ajax) request. The $.ajax() function underlies all Ajax requests sent by jQuery. It is often unnecessary to directly call this function, as several higher-level alternatives like $.get() and .load() are available and are easier to use. If less common options are required, though, $.ajax() can be used more flexibly. At its simplest, the $.ajax() function can be called with no arguments: Note: Default settings can be set globally by using the $.ajaxSetup() function. This example, using no options, loads the contents of the current page, but does nothing with the result. The jqXHR Object The jQuery XMLHttpRequest (jqXHR) object returned by $.ajax() as of jQuery 1.5 is a superset of the browser's native XMLHttpRequest object.

As of jQuery 1.5.1, the jqXHR object also contains the overrideMimeType() method (it was available in jQuery 1.4.x, as well, but was temporarily removed in jQuery 1.5). Callback Function Queues Data Types Sending Data to the Server. Alternate Ajax Techniques, Part 1. By Nicholas C. Zakas. By now, nearly everyone who works in web development has heard of the term Ajax, which is simply a term to describe client-server communication achieved without reloading the current page.

Most articles on Ajax have focused on using XMLHttp as the means to achieving such communication, but Ajax techniques aren't limited to just XMLHttp. There are several other methods; we'll explore some of the more common ones in this series of articles. Dynamic Script Loading The first alternate Ajax technique is dynamic script loading.

The Technique The basic technique behind dynamic script loading is easy, all you need to do is create a <script/> element using the DOM createElement() method and add it to the page: var oScript = document.createElement("script"); oScript.src = "/path/to/my.js"; document.body.appendChild(oScript); Downloading doesn't begin until the new <script/> element is actually added to the page, so it's important not to forget this step. Example 1 <! Tuto vidéo – Pour développer en Ajax – jQuery. Cette semaine je vous propose de découvrir un tutoriel vidéo intéressant sur la programmation AJAX. C’est un bon tuto réalisé par Grafikart, qui propose déjà des centaines de tutoriels vidéos.

Donc, ce tutoriel AJAX avec du jQuery dedans, va vous apporter les bases et les notions du développement autour de ce procédé, et complètera, j’en suis sûr, les compétences des développeurs plus confirmés. La vidéo : Vous faites des tutos ou avez de bonnes sources de tutos que vous souhaitez faire partager, n’hésitez pas à nous les proposer Bon code à tous ! About Author LudiKadmin Président de LudiKreation SAS. Code School - Try jQuery. jQuery. jQuery UI. Planète jQuery : l'actualité jQuery, plugins jQuery et tutoriels jQuery en français. Club des développeurs AJAX : actualités, cours, tutoriels, programmation, codes sources, livres, outils et forums. jQuery.info. Official jQuery Blog | New Wave Javascript. ALAJAX - jQuery AJAX Forms plugin. Ajax & Jquery News. @MazeraCastel/jQueryNews sur Twitter. Veille Technologique – Mathieu Masera: Travaux et compétences BTS SIO SLAM 2015-2016.

Veille technologique – Aurélien Castellarnau.