XML and Javascript: the Familiar Technology of Web 2.0

by Joshua Porter  |   1 Comment

In order to remix data into a new interface on Web 2.0, you need access to the data as well as access to functions that can be done on that data. Current web standards provide us with the tools for both: XML for the data and Javascript for the functions. Thankfully, these two technologies are what web developers have been using for years, in various flavors.

Google Maps is the current Remix King (e.g. Gmaps Pedometer), and it is built this way. In the newly released Google Maps API, we see these two things at work. Consider the following code:

var map = new GMap(document.getElementById("map"));
map.centerAndZoom(new GPoint(-122.141944, 37.441944), 4);

This code creates a new map and centers it on Palo Alto, California. This is the function part being done in Javascript. The element in which the map is placed looks like this:

<div id="map" style="width: 500px; height: 300px"></div>

This is the data part being done in XML (XHTML in this case).

For hardcore coders this is a breeze. For most folks, however, (like web developers beginning to dip their toes into the remix waters of Web 2.0) this might be a refreshing sign. We’ve already got the requisite skills to remix Google Maps, or any web service that plays nicely. It’s plain old tag-based markup and Javascript.

Comments ( One Response so far )

1.  Bud Gibson on July 9th, 2005 (Comment) #

So, I encourage you to reconsider your view on microformats. What are microformats other than standard ways to use markup, making it easier to write the type of javascript you describe? Lots of development happening there, currently under the radar.

Add Your Comment

Accepted tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

Preview...

If your comment contains links, or if it is your destiny, your comment may not show up immediately. I'll approve it as soon as I can. (I delete dozens of comment spams per day)

Get updated when someone posts a comment: Comment Feed


ABOUT

Bokardo is the blog of Joshua Porter, a web designer/developer, researcher, and writer. I live in Newburyport, MA, USA.

WHAT IS SOCIAL DESIGN?

Social design is design that focuses on the social lives of users. It deals with the activities, behaviors, and motivations of people who work and play together through software interfaces. It is built on the observation that many of the decisions we make are greatly affected by those we surround ourselves with in our social lives: our family, friends, and colleagues. Exploring our motivations and how to design interfaces to support them is what the Bokardo blog is all about.

Designing for the Social Web

Building a social web site or application? I wrote a book just for you!

designing for the social web

Find out more or order from Peachpit or Amazon

Upcoming Speaking Events