0 Replies
      Latest reply on May 30, 2019 10:51 PM by kirit_it016
      kirit_it016 Level 1 Level 1 (0 points)

        Ajax call Failed to load resource:Request timeout


        When I call $.ajax in my wordpress website, getting Request timeout.

         

        I tried with async:true, timeout and also setTimeout for solve this issue but no one work.

         

        var request = $.ajax({

          url: jobifySettings.homeurl,

          data: data,

          type: 'POST',

          cache: false

          }).done(function(response) {

          form.find( $( '.woocommerce-error' ) ).remove();

         

          var $response = $( '#ajax-response' );

          var html = $.parseHTML(response);

         

          console.log( response );

         

          $response.append(html);

          error = $response.find( $( '.woocommerce-error' ) );

         

          if ( error.length > 0 ) {

          form.prepend( error.clone() );

          $response.html('');

         

          e.preventDefault();

          }

          });