Try the itoo extension, read the complete thread and try the examples to learn how the extension works
See also this ble itoo example
Taifun