Here is an example of how to use the Client OM (more specifically jQuery and the SPServices library) can be used