[Nitro] One simple question...

TRANS transfire at gmail.com
Thu Sep 8 17:42:51 EDT 2005

On 9/8/05, Emmanuel Piperakis <epiperak at softlab.ece.ntua.gr> wrote:
> I have a template opening up a popup with a form inside. When I submit the
> form I would like first the controller function to be called (in order to
> save the newly entered data) then the popup to close, and then the parent
> page displayed with the refreshed data.
> So far I managed to have the Submit performed (without a refresh of the
> parent page) and then with the following link, the popup closes and the
> parent page is refreshed.
>    <a href="#" onClick="window.opener.location.reload();self.close();return
> false;">[[close]]</a>
> Is there a way to combine the two?
> Ps. If I put the javascript in the onSubmit of the form element, the
> form does not call the controller function.

Have you tried using OnClick in the form's submit button? That might
not get the right order. You may have to programmatically submit. This
page should give you a solution.



More information about the Nitro-general mailing list