are you logged-in with all browsers? since
add_action('wp_ajax_contact_form', 'ajax_contact');
only works for logged in users,
so to fix it you need to change it:
add_action('wp_ajax_nopriv_contact_form', 'ajax_contact');
if you want your function to work for visitors as well as users.
Related Posts:
- Elegantly using JavaScript on widget admin forms
- jQuery UI inside widget on admin page
- WP_enqueue_script() loads them always in wp_footer()?
- How do I pass the id of my widget to javascript in the form function?
- Access Customizer widget instance form
- wordpress widget missing jquery
- Using AJAX in WordPress Widget
- Widget won’t work due to old JavaScript? Any ideas how to make it work? [closed]
- Cross-Origin Read Blocking (CORB)
- Cross-Origin Read Blocking (CORB)
- syntax error: unexpected token <
- Infinite Scrolling in Asp.Net MVC with jQuery / AJAX Issues
- My javascript is returning this error: $.ajax is not a function
- ajax jquery simple get request
- jQuery get textarea text
- jQuery AJAX cross domain
- Set timeout for ajax (jQuery)
- How to generate a simple popup using jQuery
- What does on() in JavaScript do?
- jQuery AJAX submit form
- jQuery Ajax File Upload
- How can I upload files asynchronously with jQuery?
- Adding images to a Bootstrap Carousel with AJAX
- AJAX response error: net::ERR_EMPTY_RESPONSE
- Access Control Request Headers, is added to header in AJAX request with jQuery
- jQuery Ajax POST example with PHP
- Refresh/reload the content in Div using jquery/ajax
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- How to manage a redirect request after a jQuery Ajax call
- FormData append not working
- Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
- Download a file by jQuery.Ajax
- Ajax success function
- Executing Javascript When a Widget is Added in the Backend
- Loading scripts only if a particular shortcode or widget is present
- Enable Submit Comment Without Page Reload (Using Ajax)?
- Can’t get a JSON object in response to an Ajax request with wp_ajax
- Enabling jquery when dragging available widget to sidebar area
- WordPress 4.8: Using multiple WYSIWYG-Editors with media inside of Widgets how to?
- Ajax Load More Posts in Category Page
- How to refresh Theme Customizer after change color inside wpColorPicker?
- Infinite scroll / lazy loading with NextGen Gallery [closed]
- Ajax call does not activate callback function
- How do I rebind event after widget save
- WordPress Ajax always returns a 404 error
- How to listen to color changes on the color picker?
- Ban certain widgets from certain sidebars
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Widget “Save” resetting jQuery hidden fields
- Trying to get single posts to load on the front page via ajax
- jQuery does not work in widget backend
- Drag and drop multiple file upload using Ajax WordPress
- Ajax not firing properly using Firefox, but works in Chrome
- Turn jQuery.ajax() request into XMLHttpRequest (vanilla JavaScript)
- Using Ajax call in jQuery doesn’t work in widget
- Trigger Submit Event when Widget is added to Sidebar
- How to Use JSON With AJAX?
- Using wp_ajax and wp_ajax_nopriv hooks
- admin-ajax.php HTTP400: BAD REQUEST – The request could not be processed by the server due to invalid syntax
- How to enable “shift-click to edit this widget” functionality on a custom widget?
- WordPress AJAX Call Not Return Result
- How to create popup same as wordpress popup feature
- Click loads template via ajax
- Using jQuery in widget development
- Ajaxing function in widget class
- Display notification only once
- How to get sidebar’s content inside admin-ajax?
- Access/update database with jQuery
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- cannot drag and drop widgets since wordpress 3.2.1
- wp_ajax unauthenticated and authenticated
- WordPress ajax function parameter value not being passed
- How to speed up admin-ajax.php in wordpress
- Run JS after widget settings are saved?
- Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
- How can I use AJAX to save/update a widget form?
- Widget code is not working on WordPress.com Hosted Blogs
- Sending jsPDF documents to the server
- Ajax return code 400
- Include chat (HTML, js, css) in all pages of WordPress
- How to determine the number of widgets contained in a sidebar via customizer JS
- WordPress customizer refresh screen after save
- Loading posts via AJAX in a hidden div with updated URL?
- How to test nonce with AJAX – Plugin development
- class click counter save number
- Ajax Modal Flickers When Opened Multiple Times
- AJAX request status 200 but no actual “response”
- Correct way to write jQuery functions in WordPress
- Ajax load more button in Recent posts widget
- Wrap the widget content with a div and get the widget title outside? [closed]
- splitting the URL using jQuery
- Contact Form 7 – Uncaught TypeError: wpcf7.initForm is not a function [closed]
- Ajax contact form widget plugin data not insert in database
- List of JS Events for Widgets?
- Scripts not appending to element in AJAX call – why?
- Save Search System
- dynamic dependent select dropdown
- Refresh Markercluster after ajax call
- WooCommerce Ajax Cart Update Stopped Working
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?