How can I trigger a Bootstrap modal programmatically?-open source projects jschr/bootstrap-modal

If I go here

http://twitter.github.com/bootstrap/javascript.html#modals

And click ‘Launch demo modal’ it does the expected thing. I’m using the modal as part of my signup process and there is server side validation involved. If there are problems I want to redirect the user to the same modal with my validation messages displayed. At the moment I can’t figure out how to get the modal to display other than a physical click from the user. How can I launch the model programmatically?