Webform in Lightbox, close in submit I have a form (webform) in a lightbox. I created a link: 

&lt;a class="lightbox-processed" rel="lightframe" href="?q=node/29/lightbox2"&gt;show Form&lt;/a&gt;


and change 'page--node--lightbox2.tpl.php' (tpl from lightbox2 module) for this:

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="&lt;?php print $language-&gt;language; ?&gt;" lang="&lt;?php print $language-&gt;language; ?&gt;" dir="&lt;?php print $language-&gt;dir; ?&gt;"&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body id="lightboxnode-&lt;?php print $node-&gt;type ?&gt;"&gt;

&lt;?php //dsm($node); ?&gt;

&lt;?php if ($title): ?&gt;
&lt;h1 class="title"&gt;&lt;?php print $title; ?&gt;&lt;/h1&gt;
&lt;?php endif; ?&gt;
&lt;?php
    $nodo = $node-&gt;nid;
    print render(node_view(node_load($nodo), 'full', NULL));
?&gt;
&lt;/body&gt;
 &lt;/html&gt;


How can I do for when I click submit, send the form and close the lightbox?
I would use jQuery to detect the button click on the submit button and then force the action of closing the lightbox with parent.Lightbox.end();.

The reason I would use jQuery to attach to the event is that you don't have to alter the webform in any way, and can do this passively.