This discussion is related to my previous two posts about working with the SharePoint edit control block and the Sharepoint ribbon programmatically. This is a technique I have often found useful when working with ASP dot NET forms called as modal dialogs with JavaScript in SharePoint. I will describe how to call a SharePoint server side method with JavaScript after closing a modal dialog by pressing OK or Cancel. I will also show how you may pass parameters.
JavaScript
Actual Size Online Ruler
This actual size online ruler is powered by HTML5 and JavaScript. Using the canvas element, it adjusts/calibrates itself based on the options you select.