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-10-31 at 22:48 -0400, Martin Settle wrote: > 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 that I > missed, I would thank you for your advice. > > Marti > > 2009/10/31 Alexandre SALOME <alexandre.sal...@gmail.com>: > > 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. However, I'd like to have the lightbox > >> > close on the submission of the form. I'm trying to use an > >> > <input="submit" onClick="--javascript here--"> to close the lightbox, > >> > but I can't for the life of me figure out what the javascript function > >> > call needs to be. > >> > > >> > I've tried Modalbox.end() and modalbox.end() > >> > Modalbox.close() and modalbox.close() > >> > > >> > and the same using Lightbox. I get a javascript error each time > >> > saying there is no such function. > >> > > >> > Help, please! > >> > Marti > >> > > >> > > > >> > >> > >> > >> > > > > > > > > -- > > Alexandre Salomé -- alexandre.sal...@gmail.com > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---