[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 : > > np. > > Don't forget to append a return statement - as you're using the onClick > attribute

[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, 2009

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

2009-10-31 Thread Martin Settle
Thanks for the pointer, David. I will try that Monday at work Alexandre, I have read all the plugin documentation and also scoured the lightbox2 mailing lists. The two functions I tried were taken from those sources. Neither worked. If you can point me to the references in the documentation th

[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 > > 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

[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 > to close t