{ "alert": "success", "message": XXX

4 replies · opened Jan 8, 2018

OostschweizJan 8, 2018

I have an issue with http://themes.semicolonweb.com/html/canvas/one-page/op-personal.php which I have used for https://www.ostschwiz.ch/dev/. It works perfect except the problem, that the alert box who is pinned in the top right corner, always shows the JSON(?) string instead of the html message which i have set in this line <div id="contact-form-result" data-notify-type="success" data-notify-msg="<i class=icon-ok-sign></i> Besten Dank für deine Bestellung!"></div>

SSemicolon WebSTAFFJan 8, 2018

Hello,

We have just checked out your Codes and the issue is that you are still using the Old Canvas Codes which is causing these errors. The JS Codes for the Contact Form at the bottom is not required. Please check out the Documentation > Upgrade v3 to v4 Section and make sure that you have updated all the Files as required.

This will definitely fix the issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

OostschweizJan 14, 2018

OK I changed
Message Sent Successfully!">

with
``

and deleted this code in the footer

		// Contact Form
		$("#template-contactform").validate({
				submitHandler: function(form) {
					$('.form-process').fadeIn();
					$(form).ajaxSubmit({
						target: '#contact-form-result',
						success: function() {
							$('.form-process').fadeOut();
							$(form).find('.sm-form-control').val('');
							$('#contact-form-result').attr('data-notify-msg', $('#contact-form-result').html()).html('');
							SEMICOLON.widget.notifications($('#contact-form-result'));
						}
					});
				}
			});
		});

but it wont work

thanks for your help

OostschweizJan 20, 2018

Can you give me soon a feedback please?

SSemicolon WebSTAFFJan 23, 2018

Hello,

Make sure that you have also updated PHPMailer and the PHP File in the include Folder along with the New Functions in the js/functions.js File to make sure everything works correctly.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard