Web Developers: XMLHttpRequest Object Can Make Your Webpages Dynamic
Web Developers: XMLHttpRequest Object Can Make Your Webpages Dynamic
by , 9:00 AM EDT, May 25th, 2004
Web developers, take note: Are you looking for a clean, easy way to dynamically update information on your Web page using XML data without forcing the page to update? Apple may have just what you are looking for.
The XMLHttpRequest Object is a Document Object Model that allows you to create an interactive data exchange object on your Web page. Users can make selections, and the presented information can then change dynamically without a page refresh. This makes for a cleaner looking page and opens all sorts of options for making your pages and sites really stand out.
Here's some information from Apple:
For years, advanced client-side developers have frequently wanted a clean way to maintain a "connection" with the server so that transactions can occur in the background, and newly updated data gets inserted into the current page. Many have tortured themselves by using techniques such as hidden self-refreshing frames and "faceless" Java applets. In lieu of a W3C standard still under development, the Microsoft-born XMLHttpRequest object fills an important gap that should inspire application development creativity. The feature is a welcome addition to Safari.
There is a lot of technical information in Apple's developer Web page, and an example of how the XMLHttpRequest Object works. You can find more information at Apple's Developer's Web site.
The Mac Observer Spin:
This technology is cool, and should make many a web developer very happy; what's interesting, however, is that it was Microsoft who originated the object (for more information on the background of the technology check out the "History and Support" section of the page).It's nice to see some ideas flow from Big Redmond for a change. Seriously.
Observer Comments
Wed May 26, 2004 12:14 pm Subject:
On Windows the browsers that support XMLHTTPRequest are IE 5+ and Netscape 6+. IE uses ActiveX for this object, so to make it work cross-browser I use the following code (haven't tested in Safari).
if (window.XMLHttpRequest){
var XMLHttp = new XMLHttpRequest();
}
else if (window.ActiveXObject){
var XMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
Comments are currently closed. Please email the author instead.
Recent Headlines - Updated November 10th
- Mon, 7:20 PM
- Rumor - Apple May Update iPod touch in December
- 6:45 PM
- Product News - MacUpdate Desktop Updated to 5.0.1 with New Features, Bug Fixes
- 5:16 PM
- Apple Releases Mac OS X 10.6.2 - Guest Account Bug Fixed, Much More
- 4:12 PM
- Games - New For iPhone: Star Rangers, Air Force Supremacy, Blood Beach, More
- 2:51 PM
- Apple Stock Watch - Radio Shack Jumps 14% on iPhone Deal, Apple Up 3%
- 2:25 PM
- Games - EA Scoops Up Social Games Publisher Playfish
- 1:51 PM
- Deal Brothers - Western Digital 1TB SATA Intellipower Hard Drive: $84.99
- 10:58 AM
- News - StarHub Signs Singapore iPhone Deal
- 10:36 AM
- Hot Forum Topic - Reader Speculation: What’s in Apple’s Tablet?
- 10:08 AM
- News - Apple Kicks Off New Credit Program
- 9:26 AM
- News - Apple Launches Reserve and Pick Up Program
- 8:49 AM
- News - ikee Worm Rickrolls Jailbroken iPhones
The Mac Observer Reader Specials
- TypeStyler For Mac OS X is Now Shipping! Download The Free Fully Functional 60 Day Tryout at www.typestyler.com
RamJet Memory: Mac Pro 8-core 8GB Kit $199.99, 4GB Kits $109.99! Sale on MacBook and MacBook Pro 8GB kits $549.99! New MacBook DDR3 2GB for $49.99. iMac and Mac mini 4GB Kits for $79.99! 1TB SATA Hard Drives for $109.99! Click here
OWC: Get the Right Memory for Your Mac Top Quality, Competitive Price, Lifetime Backed Free Expert Support + Installation Videos too! MacBook & mini 8GB, iMac 16GB, Mac Pro up to 32GB. Click here
If you're using a Mac, then you've gotta check out Full Tilt Poker for Mac. This Full Tilt Poker bonus code does the unthinkable, it actually rewards!For the latest Apple products use Ciao, a price comparison website, to find laptops like MacBook Air. Then find the best prices on MP3 players and use our comparison tool to evaluate mobile phones like the Apple iPhone.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.

