Ajax subscription form not showing 'Thanks for subscribing message'

Hi

Have just tried adding the Ajax subs form and it all seems to work ok except the confirmation div doesn't appear.

The page is here: http://www.restaurantgifts.com/

I have changed the following lines in the example code:

emailId = formAction.replace("http://kmd.createsend.com/t/y/s/", "");
---------------------
$.ajax({
                url: "http://www.restaurantgifts.com/proxy.php",
---------------------
<form action="http://kmd.createsend.com/t/y/s/ithuur/" method="post" class="sign-up">
-----------------------

Any suggestions?

Thanks

Mathew Mathew, 7 years ago

Hi,

It looks like you are using an image to submit instead of a button. You will need to change this:

$(":submit").click(function() {

at the top of your javascript to this:

 $(":image").click(function() {

Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
kmd, 7 years ago

That's fixed it - thank you :)

cdbragg, 6 years ago

Can you have a look at www.wordsforthefuture.com.au/form.html and see if you can tell me why the "thanks" message doesn't show up?

The data is coming through to the subscriber list, but I'm not getting the thanks.

In Chrome, nothing.  In Firefox, nothing.  In IE I get an error at line 55 about "data" not being defined.

Thanks in advance.

Cameron

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098