Page 1 of 1

Contact Form

Posted: 18 Apr 2012, 06:01
by kood0o
I made all necessary adjustments for contact form (smtp, login and etc). Form is working, but if mail sent it was not return to contact form and show word “true” and left narrow.

I saw contactform.html and think may be some problem with included javacode:
Code
//<![CDATA[
(function ($) {
  $(document).ready(function () {
    $('#contactForm').submit(function (event) {
      $.ajax({
        url: '?a=contact',
        type: 'POST',
        data: $('#contactForm').serialize(),
        complete: function (xhr, status) {
          var resp = xhr.responseText.substr('success='.length);
          if ('true' == resp) {
            $('#contactFormResponse').html('<div>Your message succesfully sent!</div>');
            $('#contactForm')[0].reset();
          } else {
            resp = resp[0].toUpperCase() + resp.substr(1);
            $('#contactFormResponse').html('<div class="error">' + resp + '</div>');
          }
        }
      });
      return false;
    });
  });
})(jQuery);
//]]>
</script>

Re: Contact Form

Posted: 18 Apr 2012, 12:39
by mjau-mjau
That code you mention is for the html gallery ... Are you using the latest version of Imagevue? May I see a link to your gallery?