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 July 6th
- Mon, 5:28 PM
- News - Arlington Police Release Video of Apple Store Shooter
- 4:40 PM
- Deal Brothers - Apple Mac Pro 2.66GHz Intel Xeon Quad Core for $2,274.00 Delivered A/R
- 4:12 PM
- Product News - Babylon Upgrade Adds New Translation Features to Mac Dictionary App
- 11:17 AM
- Ted Landau's User Friendly View - Apple’s LED Cinema Display: A Too Short Story
- 11:11 AM
- Product News - Photo Recovery for Mac Adds Photoshop Support
- 10:39 AM
- Hot Forum Topic - iPhones in Education
- 8:47 AM
- News - Apple Employee Injured in Store Shooting
- Fri, 10:29 AM
- News - Apple Warns of Learning Interchange Security Breach
- 7:30 AM
- News - Happy Fourth of July!
- Thu, 6:07 PM
- TMO Scoop - Psystar Moves to Drop Bankruptcy Ahead of Apple Legal Battle
- 5:37 PM
- News - Uncomfirmed Reports Say Apple & Nvidia On The Outs
- 4:57 PM
- News - Microsoft Sick Over Barf Ad
The Mac Observer Reader Specials
- Download Typestyler, still the Ultimate Styling Tool for Internet, Print and Video Graphics. Works great in Classic with a Native OS X Version on the way. Free Tryout: www.typestyler.com
OWC: Big Drives, High Performance - Not High Prices! SATA 3.5" up to 1.5TB. Notebook up to 500GB. FW up to 6.0TB. 1.0TB Drive Models from as low as $97.99 www.MacSales.com
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!
RamJet Memory: MacBook and MacBook Pro 4GB kits for $57.99! Mac Pro 4GB Kits $99.99! iMac and Mac mini 4GB Kits for $57.99! 1TB SATA Hard Drives for $109.99! Click hereFor 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.

