Submit a form created with Web Form...

User 2516901 Photo


Registered User
2 posts

Hello,

I created a simple HTML with Web Form Builder Lite. I am using jQuery Form (ttp://malsup.com/jquery/form/) to submit this data via AJAX, with the following:

<script type="text/javascript">
$(document).ready(function() {
$('#docContainer').ajaxForm(function() {
$("#thank-you").slideDown("slow");
$("#contact-form").slideUp("slow");
});
});
</script>


The form behaves correctly (the slideDown works on submit) but I never receive an email. Has anyone been able to submit a form created with Web Form Builder via AJAX?

Thanks for reading!
User 2516901 Photo


Registered User
2 posts

When submitting the form via AJAX I see the following in the console:

XMLHttpRequest cannot load http://my-id.coffeecup.com/forms/ccup/f … tats.php.. Origin http://my-domain.com is not allowed by Access-Control-Allow-Origin.


I found the following thread on StackOverflow which seems like it addresses the problem:

http://stackoverflow.com/questions/1014 … low-origin

I am using the hosted version of the form, so I don't have access to the server config. Has anyone been able to get this to work?
User 187934 Photo


Senior Advisor
20,266 posts

With the form being on S-Drive your not going to have access to the code to alter it.:( The upside of this is you can't break it.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.