Insider_Blog_Header-2.png

MerusCase

Recent Posts

Thursday, February 04, 2010

MooTools Users: Implement a Hash.sort method

Show summary

I notice that Firefox seems to maintain the order of key:value pairs in objects when iterating over them, while Safari and Chrome seem to sort the object internally (within their respective JS engines).  I  noticed this especially when making select elements.  I store the options as an object, then when drawing the page, I iterate over that  object making option elements. 
For example, I am making a select box that lists users  alphabetically.  Users are identified in the database by an id: 

 
var foo = new Element('select').inject($$('body')[0]); 
var options = {5082:'User A', 5085:'User B', 5074:'User C'} 
$H(options).each(function(name,id){ 
  new Element('option', {text:name, value:id}).inject(foo); 

Read More
Posted by MerusCase on Thursday February 04, 2010 0 Comments

Labels: Engineering

Monday, February 01, 2010

Anyone Want a "Google Wave" Invite? Free to Meruscase Users!

Show summary

What is a wave?

A wave is equal parts conversation and document. People can communicate and work together with richly formatted text, photos, videos, maps, and movies.

Read More
Posted by MerusCase on Monday February 01, 2010 0 Comments

Labels: Engineering

Leave a Reply

Meet MerusCase

We're the only cloud-based legal practice management system trusted by thousands of lawyers to manage cases, documents, billing, and beyond. Learn more about MerusCase & schedule a demo today!

Become an Insider:

Recent Posts