Search…

X3 Photo Gallery Support Forums

Search…
 
kood0o
Topic Author
Posts: 1
Joined: 17 Apr 2012, 17:59

Contact Form

18 Apr 2012, 06:01

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>
Attachments
Untitled-3.jpg
Untitled-3.jpg (69.83 KiB) Viewed 1702 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Contact Form

18 Apr 2012, 12:39

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?