[symfony-users] Re: sfLightboxPlugin close on form submit

2009-11-02 Thread Martin Settle
Finally got it figured... the command needs to be onClick=myModalbox.end(); return true -- I found a reference to myModalbox in the modalbox.js source Thanks again Marti 2009/11/1 David Ashwood da...@inspiredthinking.co.uk: np. Don't forget to append a return statement - as you're using

[symfony-users] Re: sfLightboxPlugin close on form submit

2009-11-01 Thread David Ashwood
np. Don't forget to append a return statement - as you're using the onClick attribute of the input statement. onClick=Modalbox.hide(); return true|false; (depending on what the plugin needs for chaining events). You can also quickly test it with firefox + firebug in the console. On Sat,

[symfony-users] Re: sfLightboxPlugin close on form submit

2009-10-31 Thread Alexandre SALOME
Other solution would be to try reading documentation :) 2009/10/30 David Ashwood da...@inspiredthinking.co.uk Try: Modalbox.hide(); On Fri, 2009-10-30 at 14:51 -0400, Martin Settle wrote: I've got a form appearing in a lightbox, which calls a remote function and updates the parent page.

[symfony-users] Re: sfLightboxPlugin close on form submit

2009-10-30 Thread David Ashwood
Try: Modalbox.hide(); On Fri, 2009-10-30 at 14:51 -0400, Martin Settle wrote: I've got a form appearing in a lightbox, which calls a remote function and updates the parent page. However, I'd like to have the lightbox close on the submission of the form. I'm trying to use an input=submit