Mudsaf Posted January 24, 2015 Share Posted January 24, 2015 Hello, i'm wondering how my contact form requires 2 form submits until it actually submits the data. (Fill it with fake data example blaablaa@bla.com & such on to see) Preview: http://mudsaf.info/contact.php Link to comment Share on other sites More sharing options...
Ingolme Posted January 24, 2015 Share Posted January 24, 2015 You have a whole lot of scripts running on the page. My browser stopped listening to clicks and keystrokes on your page at one instance and I had to refresh. What I've found is that the <textarea> element that your TinyMCE editor is attached to does not get the value until after your submit handler has worked. It seems that TinyMCE has a submit handler as well and that its handler is only being executed after yours is. My proposed solution is to read the documentation to see if TinyMCE has a feature that lets you tell it when to fill in the textarea, then put that into your submit handler. 1 Link to comment Share on other sites More sharing options...
Mudsaf Posted January 30, 2015 Author Share Posted January 30, 2015 Thanks alot, its working now (on local server). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now