- Check your generated code (open the page -> view source)
- Check your javascript console (Firefox) for errors
- make sure your function is callable from a normal
- lowercase your button type.
Otherwise, it should work - I have exactly the same piece of code in my current codebase that works perfectly.