|
Save 10% off all website scripts! - Enter code
SNOWBALL at checkout!
|
What is XMLHttpRequest?Posted 2009-04-21 in Webmaster
What is XMLHttpRequest? The XMLHttpRequest object enables client-server requests in JavaScript. If you're writing Ajax enabled scripts, fetching remote data in a Firefox extension, or pulling data from another URL in any JavaScript app then XMLHttpRequest is needed. XMLHttpRequest is a scripting object that provides an interface for client-server requests. XMLHttpRequest originated with Internet Explorer 5, was eventually picked up by Mozilla, and is currently a W3C working draft specification. You can actually fetch data from a file, FTP server, and other protocols not limited to HTTP. Simply put, you use XMLHttpRequest to grab data from another site with JavaScript. The basic steps are:
There are already some good simple examples of using XMLHttpRequest, and more in-depth implementations with better browser compatibility and structure. For Firefox extension developers the MDC describes using XMLHttpRequest in Mozilla/Firefox with lots of detail, and in a format suitable for add-on developers. There are some distinct advantages of transparent client-server requests in Web applications. Instead of making a full GET or POST request and reloading the page, you can fetch data from multiple sources in the background. You can present live updating data on a Web page or toolbar. Most importantly, you can spare your users the frustration of waiting around and enhance the entire user experience. Browser compatibility with XMLHttpRequest varies, but most modern browsers support some implementation of it. Always try to have a fallback in place for those who have incomplete or buggy browsers.
|
SearchPopular Articles
SubscribeSubscribe via RSS Stay current with Scriptalicious news and subscribe in your favorite RSS reader. Subscribe via EmailGet the latest Scriptalicious news delivered to your inbox. Tag Cloudseo guides seo scripts scriptalicious seo tools forums PageRank SEO services content development apache htaccess mod_rewrite scripts webmaster google yahoo JavaScript XMLHttpRequest php contest software website list facebook ebook pagerank bing backlink rankings tool turnkey checker alexa themes marketing tinymce wysiwyg browser rank tools legal trademark infringement mysql social web social networking advertising google plus plus one |
77 powerful SEO scripts for under $100. |
Real-time Backlink Rank Checker script. |