FWIW…
It APPEARS to have been a misconfiguration in the PHP.INI on a new Development Server (WAMP), which resulted in an unknown corruption of the code upon updating from wp4.0 to 4.1 such that PHP was injecting unwanted white space e.g. “\r\n\r\n…” in my AJAX responses (like a missing closing php ?> tag or someting?)
When running ob_clean() before returning an AJAX response, the problem went away, AND… when only the DEV copy of the project displayed the unwanted behavior, I copied the live site (wp4.1) to a mirror installation on the reconfigured DEV server, and all functions as expected.
Still, my practice of utilizing custom AJAX endpoints in future WP Projects is now officially deprecated 😉
Related Posts:
- My javascript is returning this error: $.ajax is not a function
- Can’t get a JSON object in response to an Ajax request with wp_ajax
- Infinite scroll / lazy loading with NextGen Gallery [closed]
- Ajax call does not activate callback function
- jQuery UI Datepicker not working
- Trying to get single posts to load on the front page via ajax
- Ajax not firing properly using Firefox, but works in Chrome
- How to Use JSON With AJAX?
- Using wp_ajax and wp_ajax_nopriv hooks
- How do I get my page to load the jQuery UI Effects library?
- wp_ajax unauthenticated and authenticated
- WordPress ajax function parameter value not being passed
- WordPress customizer refresh screen after save
- Loading posts via AJAX in a hidden div with updated URL?
- Jquery not showing in homepage
- Correct way to write jQuery functions in WordPress
- splitting the URL using jQuery
- WooCommerce Ajax Cart Update Stopped Working
- Rhyzz Repeatable-fields javascript in php and wordpress
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?
- Return an array from get_terms and store as JavaScript array for search autocomplete
- Trouble with WordPress Ajax Login System – 302
- videopress videos are not displayed when loading the content with ajax in a lightbox
- How to return multiple arguments from AJAX callback function
- url – ajax loaded but no JS
- Ajax Validation for reCaptcha
- Sorting WP Auctions by date/price?
- Properly embed javascript into WP (using function.php) – doesn’t work?
- jQuery tabs plugin with callback to fetch data
- Custom AJAX form not working async
- Screen Options JavaScript Code
- Is there some jQuery conflict here?
- Ajax page load in wordpress the right way?
- A carousel slideshow plugin in JavaScript
- WordPress live search and filter
- Orderby post__in Not Working Correctly?
- Get ajaxForm response value
- why does so many javascript libraries are loaded along with my website?
- Retrieve customizer value using ajax or customizer api and print the value in theme
- Displaying contents of a tab
- Widget won’t work due to old JavaScript? Any ideas how to make it work? [closed]
- JavaScript sleep/wait before continuing [duplicate]
- JSON parsing error syntax error unexpected end of input
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- Cross-Origin Read Blocking (CORB)
- How do I link a JavaScript file to a HTML file?
- Cross-Origin Read Blocking (CORB)
- What does [object Object] mean? (JavaScript)
- syntax error: unexpected token <
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- How to set time delay in javascript
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- jQuery equivalent of JavaScript’s addEventListener method
- Pass request headers in a jQuery AJAX GET call
- jQuery dialog popup
- jQuery Ajax error handling, show custom exception messages
- How to send multiple data fields via Ajax?
- Adding an onclick function to go to url in JavaScript?
- Checking a Url in Jquery/Javascript
- Infinite Scrolling in Asp.Net MVC with jQuery / AJAX Issues
- ajax jquery simple get request
- Best way to store a key=>value array in JavaScript?
- Javascript Runtime error: $ is undefined
- jQuery get textarea text
- JavaScript: filter() for Objects
- jQuery AJAX cross domain
- JavaScript runtime error: ‘$’ is undefined
- When and why to ‘return false’ in JavaScript?
- 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
- JavaScript Loading Screen while page loads
- Jquery Ajax Posting JSON to webservice
- AJAX response error: net::ERR_EMPTY_RESPONSE
- Ajax TypeError: $.POST is not a function
- TypeError: $.ajax(…) is not a function?
- Format date to MM/dd/yyyy in JavaScript
- How is JavaScript .on() method defined?
- XML Parsing Error: not well-formed in FireFox but good in Chrome
- Access Control Request Headers, is added to header in AJAX request with jQuery
- Rotate image with javascript
- Ajax Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
- How to fix the ‘Missing required request header. Must specify one of: origin,x-requested-with’ Ajax Error
- What’s the point of the X-Requested-With header?
- Javascript isnull
- keycode 13 is for which key
- How to make a simple image upload using Javascript/HTML
- Javascript TypeError: Cannot read property ‘indexOf’ of undefined
- JQuery: $.get is not a function
- How to change the text of a button in jQuery?
- How to get client’s IP address using JavaScript?
- javascript function wait until another function to finish
- jQuery Ajax POST example with PHP
- Simple throttle in JavaScript
- Refresh/reload the content in Div using jquery/ajax