I found out the issue. It was something like jQuery/AJAX code for it is not being able to hook itself when I reload the form with .load(), therefore the second time I submit a new comment, or when I clicked the reload button for the comment list/form (making the .load() run once), the new form would still submit the comment but since the jQuery/AJAX is not being run, the page reloads normally without AJAX.
I just changed the code from this:
$('#commentform').submit(function() {
.....
}
to this:
$(document).on('submit', '#commentform', function() {
.....
}
I’m glad that I’ve been able to pinpoit the issue, even if it took a long search and carefully selecting my search keywords on google.
Related Posts:
- edit-comments.php comment_row_actions ajax problem
- Load custom formatted comment with AJAX: reply link isn’t rendered?
- Loading comments in ajax – comment-reply function missing $args
- Ajax comment form submit on frontpage alerts success but no insertion
- How to update Comment post meta through an Ajax call
- Full Front End, AJAX comment system and comment reply script
- wordpress admin ajax trash_comment
- How modify comments metabox on post edit screen in WordPress?
- Turn a URL into content preview
- get_comments() returns empty array if called through AJAX
- jQuery’s .on() method combined with the submit event
- Why use admin-ajax.php and how does it work?
- Why is die() used at the end of function that handles an Ajax request?
- Using Backbone with the WordPress AJAX API
- WordPress Ajax Data Security
- admin-ajax.php doesn’t work when using POST data and Axios
- Custom Form with Ajax
- How do I hook an Ajax request into a PHP callback?
- How is it possible that the function of the test page works, but it does not go live?
- How declare Ajax functions ussing SHORTINIT
- jQuery Autocomplete not working with wp_localize_script
- WP REST API route request explain
- Ajax returning correct data BUT at wrong place
- admin-ajax.php mixed content
- WP-API and Basic Auth returning 403 on POST but not GET
- WooCommerce: Translation lost on AJAX call in Checkout page [closed]
- Async Loading of Custom Posts
- Call javascript function when category was added via ajax
- How to add WP API and JS featured image attachment
- json encode not work in wordpress
- Can’t publish post using ajax
- Ajax in plugin settings page returns 400 Bad Request
- Admin-Ajax Error
- Customizer AJAX using buttons
- WordPress Ajaxify Problem with Scroll-to [closed]
- Stop ajax listener from sending empty parameter to function
- Can’t trigger an AJAX function with a submit button in the dashboard
- AJAX Call is Only Returning 100 Results from Query
- How to make custom button link on the WordPress Admin Bar run by AJAX
- Ways to load admin-ajax faster without initializing all plugins?
- is_single() conditional check inside ajax php function
- How to make registration form ajax?
- Specify ABSPATH in jQuery url
- WordPress action – Pass arguments into action in an AJAX call?
- 403 error When i send ajax request on WordPress website
- Ajax Call 400 Bad Request error with POST request but not with GET request
- While Ajax is working well, media upload isn’t showing the imagines
- How can I call an api before user login
- Problems with wordpress nonces in Ajax call
- Output multi-steps form results in same page
- why does not work ajax that add_action registered in wordpress
- How to get post from pure frontend AJAX (using only post ID)?
- Auto load subcategories content with ajax
- Multiple AJAX requests using the same ajax_object.ajaxurl
- Is there a better way to access transients using javascript
- Ajax not working for certain user roles
- Filter custom post types by custom field using AJAX
- Refresh loop of custom posts (div) after new post is published
- Use ajax request to load sidebar
- Problem loading ajax in the header
- How to detect if the ajax_query_attachments_args was triggered to set the featured image?
- WordPress ajax response save into database
- How to change request URL?
- Why the wp_localize_script() does not work correct in my case? ( /wp-admin/admin-ajax.php 400 (Bad Request) )
- Automatically refresh div id every 15 seconds with code snippet from .php file
- Zip Files from custom fields
- Prevent AJAX caching from plugin
- Should wordpress nonce be placed in html form or in javascript file
- how to make sure js is enabled before executing php function
- How to run an ajax call in elementor editor
- ERROR while passing data from JS to PHP via AJAX
- 400 Bad Request – Post to admin-ajax.php
- ajax load more instead of pagination
- jQuery AJAX url wit variable
- How to pass array from jQuery to PHP with AJAX in WordPress?
- Using existing ajax data that is loaded into page
- Ajax call works for logged in users and returns “Bad Request” for guests [duplicate]
- On form submitting, admin-ajax.php shows status as pending
- How to force the admin-ajax.php file to load over HTTPS?
- Unable to ajax request with meta_query
- get_body_class() in ajax envrionment
- Ajax WordPress pass post URLs
- Should I edit a user meta field with PUT, PATCH, or POST and WP::Editable
- How To Pass Theme Path In Javascript Ajax to Pass Id On another Page in WordPress Custom Page Template?
- Infinite Scroll
- How to send custom variable in Media Uploader ajax request?
- First time doing Ajax with WP, how to do it?
- Unexpected WordPress search results
- WordPress Get Header and Footer using in Admin Area
- Tie the sending of an ajax request to WordPress hooks
- AJAX: admin-ajax.php is adding extra content to my script’s response – how to exclude header, footer, etc.?
- ajax page template
- apply_filters, EMBEDS and AJAX not a friends? [duplicate]
- Using Javascript Callback from plugin in a theme
- Why does my Ajax Get request give a 400 bad request?
- Translating wordpress foreach to ajax
- AJAX loading with custom parameters
- Adding custom fields to Wired Impact Volunteer Management Plugin
- How to update my jquery/PHP function to add/remove user as favorites in (WordPress) users list
- randomly get 400 error while user is logged in wp_ajax