Facebox closes after form returns true. Need alert box to say form submitted
133 views
Skip to first unread message
syder
unread,
Mar 20, 2012, 2:42:00 PM3/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to facebox
Hello,
I'm just getting my first facebox going. I have created a facebox
containing a contact form. I have some javascript in the contact html
form that validates the data.
I've build a custom alert box using hidden divs in the contact html
page. I have no problem if the user enters invalid data into the
form. The alert boxes open and close fine and the facebox is
unaffected.
However, when the form is properly filled out and the validation
script returns a true value, then the facebox closes. There is no
opportunity to display the "Message sent" alert box.
Is there a way to call the parent window and have the "Message sent"
alert box appear there?
Thanks
Dennis Notebaart
unread,
Apr 26, 2013, 6:54:59 AM4/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fac...@googlegroups.com
Pass on the event object via the function in jquery ( [selector].submit(function(event){ ....)
Then use something like:
event.preventDefault();
alert('Message sent');
..further processing...
Op dinsdag 20 maart 2012 19:42:00 UTC+1 schreef syder het volgende: