This repository has a base example about how to manipulate OpenLayers from client side development. The example language is Portuguese and was used in a local trainning about it. I cant remember if all files were commited...fu*** LOL
Be my guest to improve it! Enjoy.