Categories
CMS Mastering Development Wordpress

(BAD REQUEST) 400 admin-ajax.php error WordPress

I updated my WordPress to current version as it was very outdated. And now I am getting a bad request browse issue now. /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 400 (Bad Request) browser pop up. This only occurs when user is not logged in admin. I checked plugins and […]

Categories
Development jQuery

Custom control’s jquery loads before masterpage loads jQuery

I’m creating a custom control which utilizes the jQuery.UI autocomplete function. My application has a standard Webform Masterpage which includes a ScriptManager tag. I am embedding a javascript file which has the following code. $(document).ready(function () { var param; var p = ‘<%=this.PostbackURL%>’; $(‘#<%=AutoCompleteTextBox.ClientID%>’).autocomplete({ source: function (request, response) { param = $(‘#<%=AutoCompleteTextBox.ClientID%>’).val(); console.log(‘Param: ‘ + […]

Categories
AJAX Development

Ajax POST data not appearing in modal

I have a table that’s populated by JSON data. In the last column you can open up a modal that corresponds to each row and you can add a comment in an input box—doing so will update that modal. In other words, table rows that have no comments have an empty modal and rows with […]