Mastering Development

Not able to download Pdf/Excel with JQuery AJAX get request with some data sent with get request

I am trying to Send some data with GET/POST request to the server. Then server prepares a PDF( using mpdf library) and sends it back to the client. FrontEnd Code to Send GET/POST request with data is as follows. $(“#edit_setting”).click(function () { $.ajax({ url: “http://localhost:8000/get_pdf”, type: “POST”, data: { data : { “abhinav” : “kumar […]

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 […]

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: ‘ + […]

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 […]