that's a javascript issue: you're trying to submit the form in the standard way, so the page POSTs the values, the page gets refreshed - as a normal form submission does - and your "afterwards-attached" fancybox doesn't have the chance to show up. You need to post the form using ajax
On Tuesday, February 26, 2013 7:49:00 AM UTC+1, [email protected] wrote: > > Hi, > I have a question regarding multiple events on single click of button , i > want to submit my form and also popup the fancybox by clicking a simple > button , > here i have my code.... > *MY Button in HTML* > <a href="{{=URL('facility_group_edit', 'default_group_select')}}" > onclick="javascript:SubmitFancy()" > id="button-close-admission"><button>Select Default Group</button></a>* > * > *MY JS* > script type="text/javascript"> > $(document).ready(function(){ > function SubmitFancy(){ > document.SubmitForm.submit(); > $('#button-close-admission').fancybox({ > 'overlayShow': true, > 'scrolling': 'no' > }); > } > }); > </script> > This form is actually just updating database that means its submitting my > data in databases, but after that fancybox is not appearing. > i hope my question is clear enough in addition i can also provide my *.py > *code as well. > Thanks > Waqas Iqbal > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

