+ Reply to Thread
Results 1 to 5 of 5

Thread: Form using jquery. Need some help

  1. #1
    Join Date
    Apr 2008
    Posts
    3

    Default Form using jquery. Need some help

    jQuery code:
    Code:
    //organize data
                var dataString = 'name=' + name + '&bizname=' + bizname + '&email=' + email + '&phone=' + phone + '&message=' + message;
                //show loading image & disable text fields
                if(hasError == false) {
                    $(this).hide();
                    $("#qcontact li.buttons").append('<img src="../_images/loading.gif" alt="Loading" id="loading" />');
                    $('.text').attr('disabled', 'true');
                    $('.expand').attr('disabled', 'true');
                }//begin ajax
                $.ajax({
                    url: "http://inprogress.thinksnapdesign.com/snapdesignstudio/processing.php",
                    type: "GET",
                    data: dataString,
                    cache: false,
                    success: function(html) {
                        if (html==1) {
                            $("#quickcontact").fadeOut("slow");
                            $("#qcontact-form").slideUp("slow");
                            $(".done").fadeIn("slow");
                        }
                    }
                });
    This is probably something really simple, but I am getting:
    The following error occurred in FormMail :
    no_recipients
    **********
    Error=The form has an internal error - no actions or recipients were specified.

    Form submits fine without javascript, but I'm not sure what to include to get it to submit via jquery/ajax. Any ideas??

  2. #2
    Join Date
    May 2008
    Posts
    1,274

    Default Re: Form using jquery. Need some help

    It looks like you're not passing the "recipients" field through the jquery script. It might be as simple as just including that field in the dataString variable.

    If that doesn't do it you'll need to provide a link to the form, or post the form code here.

  3. #3
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Form using jquery. Need some help

    Yeah I gave that a try. It sent the message, but ignored the success function altogether.

    Here's a link to the page. Any additional help would be apprecitated.

    http://inprogress.thinksnapdesign.com/snapdesignstudio/Templates/pages.html

  4. #4
    Join Date
    May 2008
    Posts
    1,274

    Default Re: Form using jquery. Need some help

    I don't even see the recipients field in the form.

    Aside from that, your form's action tag says "method=post", but the jquery script is using "get" so I'm thinking you need to put "POST" where you currently have type: "GET".

  5. #5
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Form using jquery. Need some help

    Quote Originally Posted by ginger23 View Post
    I don't even see the recipients field in the form.

    Aside from that, your form's action tag says "method=post", but the jquery script is using "get" so I'm thinking you need to put "POST" where you currently have type: "GET".
    I removed while I was trying another method. Placing POST in the ajax call will stall the form from being submitted via AJAX. The form is set this way so if someone has javascript off the form will use the traditional method.

    I think I might just move to a different form mail script. I have been using Tectite's for years, but I think there are some less complicated, yet still secure scripts out there.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. use with jquery
    By longmuir in forum Community Support
    Replies: 1
    Last Post: 23-Feb-2011, 07:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts