external contact form into overlay <- how to keep overlay layer after submit?
Hello
I've spend couple hours on learning how to use basics of jquery, and I have enough :\
I made a contact form in php, and I wanted to load it into overlay layer.
I achieved this, but now I have no idea how to keep the contact form on the layer after submitting the message.
I need it to handle errors in form and to inform the user, if the form has been submitted.
The form doesn't utilize any jscript.
Is it doable ?
I'm using basic overlay code to load the form from external file
- $(function() {
- $("a[rel]").overlay({
- mask: '#58beea',
- effect: 'apple',
-
- onBeforeLoad: function() {
- var wrap = this.getOverlay().find(".contentWrap");
- wrap.load(this.getTrigger().attr("href"));
- }
- });
- });
- </script>
+ trigger link
- <a href="form.php" rel="#overlay" style="text-decoration:none">
- contact me
- </a>
I couldn't find any solutions in search engines, so I ask you for some help.