Archive for October, 2006

FireFox 2 vs. IE 7

After their last weeks comparison between IE 7 and FF 1.5 the folks at Zimbra decided to take a shot at FF 2 and IE 7, and the results are pretty self explanatory:
We ran each browser over a common set of Zimbra Web Client (ZWC) operations such as logging in, viewing messages, navigating around various folders, changing options, viewing contacts, and performing various calendar operations. As the graph below shows, Firefox 2 beat out IE 7 in just about every operation – sometimes by significant margins.
[...]
I think the net result is that for highly JavaScript intensive AJAX applications such as the ZWC, Firefox is still the winner by quite a wide margin. Of course your mileage will vary depending on the type and footprint of your client.
Yet another great victory for FireFox :-)

»crosslinked«

Did you like this? Share it:

RememberTheMilk & Google Homepage

Finally two of my favorite services (RememberTheMilk and Google Homepage) can be combined. The RTM staff has created a great gadget for Google Homepage that allows you to:
  • Review your upcoming tasks for the week
  • Add new tasks and edit existing ones
  • Easily complete and postpone tasks
  • Review your overdue tasks
  • Optionally show tasks with no due date

Add to Google
Did you like this? Share it:

Projax

The guys over at NGCoders have just released version 0.2 of Projax. It is basically a set of PHP Wrappers around Prototype and Script.aculo.us, ported directly from the Ruby on Rails helpers. It may speed up development significantly.
Check out the Demos:
I especially like the inplace editor which in my opinion is one of the most usefull features when developing Web 2.0 applications.
Did you like this? Share it:

Integrating Maps into Your Java Web Application with Google Maps and Ajax

John Ferguson Smart has written a great tutorial about how to integrate the Google Maps API with Java Servlets. He starts off with the usual introduction to Ajax, but soon goes on to more interesting topics, and after just a few lines he already has a fully functional Map in his application.
 
function load() {
   if (GBrowserIsCompatible()) {
     var map = new GMap2(document.getElementById("map"));
     map.setCenter(new GLatLng(-41.5, -187.5), 5);
     map.addControl(new GSmallMapControl());
     map.addControl(new GOverviewMapControl());
   }
 }
Details are then added a few at a time, and what he ends up with is a fully fledged Maps Application, with asynchronous fetching of data and detail Overlays.
 
function processSiteData(xmlDoc){
  // obtain the array of markers and loop through it
  siteMarkers = xmlDoc.documentElement.getElementsByTagName("marker");
  displaySitesMarkers();
}
function displaySitesMarkers() {
   map.clearOverlays();
   for (var i = 0; i < siteMarkers.length; i++) {
     // obtain the attributes of each marker
     var lat = parseFloat(siteMarkers[i].getElementsByTagName("latitude")[0].firstChild.nodeValue);
     var lng = parseFloat(siteMarkers[i].getElementsByTagName("longitude")[0].firstChild.nodeValue);    
     var id = siteMarkers[i].getElementsByTagName("id")[0].firstChild.nodeValue;
     var label = siteMarkers[i].getElementsByTagName("name")[0].firstChild.nodeValue;    
     createSiteMarker(new GLatLng(lat,lng),label,id);
   }
}
All is explained step by step and is really easy to follow, if only all tutorials were this easy :)
Google Maps in action
P.S.: I like people that aren’t too shy to add some humour to their posts:
Of course, the advantage of storing geographical site coordinates in a database is that they can be updated as necessary; for example, in the case of a major earthquake or land slide, or continental drift, or to keep track of the famous migrating mud-transporting camel caravans of the central Elbonian steppes.
Did you like this? Share it:

script.aculo.us selectbox

Gabriel Lanzani has just pubblished his newest work: selectbox. It is supposed to replace the <select> in classical markup with a skinnable look and autocomplete support. It can be used to retrieve options from the serverside and has autocomplete support:
 
new Ajax.SelectBox(id_of_text_field, id_of_div_to_populate, url, id_of_result_value, options);
 
When retrieving data from the server it feels a bit sluggish and I wouldn’t recommend using it everywhere, but it certainly has its applications. Technorati Tags: , ,
Did you like this? Share it: