Can't you do it with jQuery:
$(function() {
$('input[type="submit"]').click(function() {
[code to open your modal window]
});
}
On Thursday, October 6, 2011 6:18:27 PM UTC-4, D.P. wrote:
>
> I have a form created in my controller and passed by dictionary to my
> view. When the submit is clicked for the form, I need to open a modal
> window (showing a generic progress indicator) while python is processing
> some loops. I don't need to do any callbacks with the progress, I'm just
> showing a generic gif.
>
>
> Anyone have a good method for opening a modal window in the view on submit
> when the form has been created in the controller? Or can I just handle that
> in the controller as well and pass it to the view?
>
> I'm able to accomplish this by creating the form and modal in the view, but
> I'd prefer to keep the form in the controller and call the modal on_accept
> from the view.
>
>
> D.P.
>