Posts

Post not yet marked as solved
0 Replies
2.5k Views
Ajax call Failed to load resource:Request timeoutWhen 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(); } });
Posted Last updated
.