kood0o
Joined: 17 Apr 2012
Posts: 1
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 [ 107.32 KiB | Viewed 266 times ]
Re: Contact Form
User avatar
Imagevue Wizard
Joined: 30 Sep 2006
Posts: 7279
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?

_________________
Karl / mjau-mjau

Image
Image
Image
Image

www.imagevuex.com
www.mjau-mjau.com
www.photogallerylinks.com


cron
 
Imagevue Forums HomeForum  View topic - Contact Form2 posts