Click here to Skip to main content
15,890,670 members
Everything / Ajax

Ajax

Ajax

Great Reads

by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.
by Member 4206974
FormGen, a JavaScript Form Generator
by Evoluteur
A full jQuery UI widget which supports various configurations and themes
by Arthur V. Ratz
Use HTML/CSS/JavaScript/Ajax for creating a simple lightweight Windows Vista/7 sidebar desktop gadget

Latest Articles

by Member 4206974
FormGen, a JavaScript Form Generator
by Mehul M Thakkar
.NET library to call server side method or API from JavaScript
by Manoj Mohan 07
Use Django to visualize download stats of Python packages and gain insights into package popularity and usage trends
by The Ænema
In this article, you will learn an easy way to protect your critical code logic in electron-based applications using a C++ native library.

All Articles

Sort by Updated

Ajax 

U 2 May 2024 by Member 12760369
I am trying to fill an HTML table through a datatable which brings information from a database. Within the ajax parameters to bring the information from the database there is a piece of information that allows me to only extract the records of...
U 30 Apr 2024 by Member 4206974
FormGen, a JavaScript Form Generator
N 27 Apr 2024 by Pete O'Hanlon
The error you are seeing is down to the server responding with something other than a 2xx status. This could be the server responding with a 404 error (NotFound), a 401 (unauthorized), or some other status. We don't have access to the server and...
16 Mar 2024 by Andre Oosthuizen
Quote: I have tried this using Partial view but not achieved the goal and not understanding anything as I have not good grip on Jquery ajax so suggest me the solution for this The following might be difficult to grasp as per your own admission....
16 Mar 2024 by Tayyab Ali 2024
So I have the view named Edit User and in that view I have this portion of code provided below and in users list view I have button named ROles in Action part so what i want is when i click on that button only this part should popup how can i...
16 Mar 2024 by Andre Oosthuizen
When you serialize your form using 'serializeArray()', your boolean values might not be serialized correctly. I would manually serialize the form using the '.serialize()' method and then append the 'DataTable' array to it. I would use something...
14 Mar 2024 by Nicole Strain
Hello I am trying to pass a form which contains a bool and DataTable which I have converted to an array as per the Datatable documentation. var aData = $('#dtPurchaseEnquiryLines').DataTable().rows().data().toArray(); var formData =...
28 Jan 2024 by Member 11256349
hello friends I go to the login.controller file from the login.js file, if the password is correct, I redirect to the home page.However, although it is redirected to the home page, the home page does not open, login.js falls into the error block...
29 Nov 2023 by Dave Kreskowiak
Nothing is displayed because the code stops running when the error is thrown. In javascript, the error "Cannot read properties of undefined" means you're trying to call a method or property of a variable that does not hold an object. You're...
29 Nov 2023 by A Belal
i want to do Pagination for View Page named ItemsList data comes well in Console in browser but it doesn't show on screen What I have tried: Array(10) 0 : {itemId: 2, itemName: 'MacBook Pro', salesPrice: 1339.69, purchasePrice: 1205.72,...
23 Nov 2023 by Mike Breeden
In the past I've been able to be very creative using AJAX in ASP.Net websites, particularly for Intranet Applications. I've been exploring AWS Lambda/Serverless websites which have a great cost advantage, etc. Apparently you cannot use AJAX...
12 Nov 2023 by Dave Kreskowiak
The best source of information on that question would be DevExpress[^].
12 Nov 2023 by A Belal
I have a problem in Calling Web Api using jquery when calling Web Api using jquery and open Console from browser Error is jquery-3.3.1.min.js:2 Uncaught TypeError: (h.dataType || "*").toLowerCase is not a function at Function.ajax...
12 Nov 2023 by Antony Durai
Hi Team, I am Unsure this is a right Question. I have been using AjaxToolControl Kit and implemented the features of CalenderExtender,ModelPopup Extender, Auto Complete Extender etc.. In Particular for Autocomplete we use Web Service Web...
11 Nov 2023 by Richard MacCutchan
jquery-3.3.1.min.js:2 Uncaught TypeError: (h.dataType || "*").toLowerCase is not a function The expression in parentheses yields a boolean value. And you cannot call toLowerCase on a boolean (i.e True or False) value.
24 Oct 2023 by ahmed_sa
I work on ASP.NET MVC Project. I face issue action ApprovalIndex Not redirect to action PendingManagersRequests although no error happens. I debug and trace breakpoint until I reach action PendingManagersRequests and trace until I reach to view...
22 Sep 2023 by ahmed_sa
I work on asp.net MVC web API . I face issue when call web API using jQuery ajax request my issue is autocomplete result display separated by slash Id - Name - Designation but expected result I need to get is : Id : 121 Name : michel nicol ...
8 Aug 2023 by Nischal Shar
I have a page where I want to load the search results when user inputs keywords in the input field. I've a search button when clicked on search button an search-body div appears In the search-body there's an Input field and user inputs the...
8 Aug 2023 by Richard Deeming
XHR is an older technique. All modern browsers support the Fetch API[^], which is much nicer to work with. Especially if you combine it with async/await[^]. For example: let abortController = null; async function loadSearchResults() { if...
25 Jun 2023 by A Belal
how do navigate to page from window.open with parameter but paramter (BillNo) doesn't exist there isn't exist in address bar my code appear in address bar as function RowClick(BillNo) { ...
25 Jun 2023 by Sandeep Mewara
You can open window with params. Define them clearly as part of url: Write them without single-quotes and as expected (define them separate before making part of url): window.open("http://yourdomain.com//AllOrders/OrderDetails?billno="+billno...
22 Jun 2023 by ahmed_sa
I work on asp.net razor , i get error when try make ajax request to access OnPostshiftDataUp ERROR : Failed to load resource: the server responded with a status of 400 () console.log(formdata) // serialize data ...
31 May 2023 by Mehul M Thakkar
.NET library to call server side method or API from JavaScript
25 May 2023 by Nethaji chennai
how to dynamic data bind in dhtmlx gantt chartwith dynamic data use for loopWhat I have tried: //for (var i = 0; i
19 May 2023 by Gcobani Mkontwana
Hi Team I have this issue while debugging on the console tab, its says failed to fetch cart and update cart and causes server receives invalid json data. How can i solve this problem? Is it because what is on the html or cart table should be the...
19 May 2023 by Andre Oosthuizen
Same question answered at Duplication of items in the cart when added[^]
23 Apr 2023 by Member 13998042
Dear team i am trying to save a textbox value in db using ajax which is inside the jquery datatable . My Datatable is below $(document).ready(function () { var empid = '@ViewBag.empid'; $.ajax({ ...
13 Apr 2023 by xTMx9
I am getting a " caught TypeError: Illegal invocation " in the console everytime I click to submit a form. I need the data to be passed to the backend to be handled but this error is blocking it. What could be causing this error and how can I...
13 Apr 2023 by Dave Kreskowiak
It would appear that one or more of your .find calls isn't returning what you think it is. You're going to have to go through each and every one of those calls and, in the browser console, execute those lines yourself to find out which one are...
4 Apr 2023 by Member 13998042
Dear mentors i am working on a asp.net core mvc .net 6 project where i have a view in which i am making a ajax call to load data to a datatable the ajax call and the datatable loads script is as follows function fetchIndexforhrvalidate() { ...
30 Mar 2023 by sadiq shaik 2023
When I am using the html.begin some of the JavaScript functions aren't being loaded. I am using partial view and I am calling the partial view page using AJAX in the main page and adding the partial view in a tab. I have added the...
30 Mar 2023 by Richard Deeming
The problem is nothing to do with the BeginForm call. It's simply that you're calling jQuery's html method, which sets the element's innerHTML property; when you do that, the elements will be inserted, but not executed. javascript - Can...
28 Mar 2023 by Arjun Menon U.K
Hi, I am trying to pass a JS array to a MVC Controller. By using the same code i was able to do the same for API Controller. But i am not able to do the same using MVC Controller.Can anyone please helpThis is the JS side function GetColumnmappingValue() { var...
28 Mar 2023 by Member 15964607
can this work i want to send list data from mvc view to controler for insert if any sugestaion plz replay function save(CART_NO, CATRIDGE) { alert('hi'); var daten = { CART_NO: 100, CATRIDGE: 'Aman'...
8 Mar 2023 by TUTUL HOSEN
I have set the meta and header for ajax setup and already done a action with ajax. But this time at same place I have faced the error. I can't find out my problem. What I have tried: var per = new Array(); ...
8 Mar 2023 by Richard Deeming
A 500 error means something went wrong in your server-side code. We can't see the code, and we can't see the details of the error, so we can't tell you what the problem is. You will need to debug your server-side code to find out what went...
8 Mar 2023 by asiftufail
The below code working well, when table rows are below 50 and data from view to action (controller) working well. When rows are large (more than 50) it not working well and give error "object object". What I have tried: var Itemlist = []; ...
28 Feb 2023 by Member 15937505
I think if you're looking for a proper solution to this type of issue you should try out this kind of stuff to prevent this kind of issue... 1. create a function that sets a loader in your page with a unique loader id, and returns that unique...
28 Feb 2023 by Ajay_Saini
Hi, Please clarify following problem if any solution is there - In ASP.NET i am calling 4 Web Methods in parallel using $.ajax with async=true. Now lets assume there are 4 functions that i am calling to utilize the benefit of ajax as - BindGridRecords(); BindNotifications(); BindProjectFiles();...
16 Feb 2023 by Manoj Mohan 07
Use Django to visualize download stats of Python packages and gain insights into package popularity and usage trends
10 Feb 2023 by amr aly
Thanks @Member 15627495 and I can't forget your advises But I took time to fix it as follow with one ajax call $(document).on('change', '.product', function(e){ var product_id = $(this).val(); let $el =...
8 Feb 2023 by amr aly
Hi all, I’ve two issues The first one: as you can see in the second image (when cloning select input with select2 plugin, the cloned input appears with (the first disabled item appended next to the main input in every row)). [Original row...
3 Feb 2023 by j ton
I see this on web, I want to try myself but stock - .py (can get sql data and pass on index_test_0203.html) import mysql.connector import webbrowser import time import pymysql from flask import Flask,render_template,request app =...
3 Feb 2023 by Burhanchaudhry
Yes I trieed this solution in CMD prompt and this is the answer that it gave me, it gave me this as a result not to sure but I tried to execute the code and it didn't properly work out. The code you provided would just give me a repeated error...
2 Feb 2023 by Richard MacCutchan
I suggest you take a look at Welcome to Flask — Flask Documentation (2.2.x)[^], and work through the tutorial.
2 Feb 2023 by Tanzila Sadika
you can send a verification code to your user as below: using System; using System.Net; using System.Net.Mail; namespace EmailVerificationExample { class Program { static void Main(string[] args) { try ...
2 Feb 2023 by Neha Thanka
Hi,I have to validate the email addresses. For that an email containing verification link is sent to the candidates while registering. By clicking the link the database will be updated with the status of email id as verified. How can I pass the username or other details of the candidates...
16 Jan 2023 by The Ænema
In this article, you will learn an easy way to protect your critical code logic in electron-based applications using a C++ native library.
23 Nov 2022 by Stan Huang
I'm not familiar with AJAX. I've been reviewing some AJAX codes and have questions about URL representations. 1. newAJAXCommand('scan.cgi?getBss=0' + currBss.toString(16)); 2. newAJAXCommand('scan.cgi?getBss=' + currBss.toString(16)); 3....
23 Nov 2022 by markkuk
The part of a URL after the '?' is called query string[^]. It's not specific to JavaScript or AJAX but a part of the general URI specification[^] .
21 Nov 2022 by Dave Kreskowiak
Google for "javascript how to use a web api". Beyond that, questions about the specifics of the CMM api would have to be directed at them.
21 Nov 2022 by Member 14673641
how to use following api? Centers for Medicare & Medicaid Services Data[^] error: undefined What I have tried: $(document).ready(function(){ $.ajax({ url:...
12 Nov 2022 by Brian C Hart
Hi, I would rate myself as somewhat an experienced web developer, however, most of my expertise focuses on the back-end/busiless logic layer sides of websites. Usually, the graphic-design of my website is left to someone else on the team who generates beautiful jQuery/JavaScript/AJAX enabled...
8 Nov 2022 by Member 15715302
var xmlcodebar=""; --- --- function runonload(){ code for print preparation ------- ------- fnQrCode(dealref,sterlingQR, deliveryType); //this function for qr code generation xmlcodebar =...
30 Oct 2022 by Kishan Kumar Mishra
My Python code-: from flask import Flask from flask_cors import CORS import cgi app = Flask(__name__) CORS(app) form = cgi.FieldStorage() @app.route("/", methods=['POST']) def apicall(): var1 = form.getvalue('var1') if len(var1)>1: ...
28 Oct 2022 by Member 15812890
I have an sql table and each cell is a button. I want to make a function so when a button is clicked, the text value of the button will be displayed in a textbox somewhere else on the page. What I have tried: I have tried using a javascript...
28 Oct 2022 by Manojkumar-dll
I'm trying to get a list box using multiselect in BS5 while running the code the button is not working if i check in inspect the data is perfectly falling inside it but don't know what the problem is What I have tried: ...
28 Oct 2022 by nuke_infer
Please check any any extension are use for the blockers. and what plugin are you using. ex-: bootstrap or any other..?
26 Oct 2022 by SadeqHatami
hello,i want pass data in $.ajax but when i run project i get null data in c# code and get 500 Internal Server Error in inspect elementmy code is :function refreshTime(options) { $.ajaxService({ url:...
18 Oct 2022 by khalid4775
i would like to know how in implement dependent dropdown list laravel with Ajax What I have tried: iam getting the error in console : jquery.min.js:5722 GET http://127.0.0.1:8000/ShippingPrices/1 404 (Not Found)...
13 Oct 2022 by MHD Salim Al-Tarsha
I Apologize for my English I'm having a bit of a problem calling an Ajax function to insert new data to SQL database and then return the primary key of the inserted data ... Data is being inserted successfully but no primary is being returned !!!...
13 Oct 2022 by George Swan
In your ajax method remove the line dataType:"json" The success function is not called if this is set
13 Oct 2022 by Manojkumar-dll
i have a dropdownlist and the data will be binding from the server now i want to convert the DDL to Multiselect Searcable dropdownlist need help Thanks What I have tried: HTML Part
13 Oct 2022 by Richard Deeming
That's not currently* supported by native HTML controls, so you'll need to use a plugin. For example: Getting Started | Select2 - The jQuery replacement for select boxes[^] * If you want to live on the bleeding-edge, and only support Chromium...
7 Oct 2022 by Ram Kumar(Webunitech)
I need a help only IE case. I have created a flight booking website and after selecting flight I have redirect to booking Page. I have create a webmethod in fligh booking page and this webmethod calling from ajax. After Click on book button then ajax function hit the webmethod function and...
19 Sep 2022 by Manojkumar-dll
i have already have a ajax jquery code to fetch the cust id in my code and that works fine but while i choose action i doesn't instead it fetch all action for the selected cust id What I have tried: This works fine $.ajax({ ...
18 Sep 2022 by Manojkumar-dll
i want to populate the datas matching with the ddl_Custid into another ddl ddl_Deviceid by using JQuery ajax but it's not working where am i doing mistake please point that and how to make it work Thank You What I have tried: ...
18 Sep 2022 by towaso
I assume you want to display devices for a customer ? In your example you extend the dropdown $("#ddl_Deviceid") with the selected $("#ddl_Deviceid") value. You may want to fill the devices depending on the value of customer. $.ajax({ ...
14 Sep 2022 by Manojkumar-dll
I want to cascade a dropdown with the data i enter into text box and the values matching with it and the datas should show Eg: here if i enter cust_id in text box the dev_id matching with the cust_id should show in the drop down below is the...
12 Sep 2022 by Manojkumar-dll
I want to generate data from datatable but the date column gives me 2022-09-08T18:05:09.0541780+05:30 i want in YYYY-MM-DD HH:mm:ss format need help TIA What I have tried: { "sDefaultContent": "", "data":...
12 Sep 2022 by OriginalGriff
You are assuming that your data contains a Date value enclosed in parentheses: (2022-09-08T18:05:09.0541780+05:30) which is not what you say teh table contains. Either the table contains the date as a string - which is a very bad idea and...
10 Sep 2022 by Alfredo Colindres
I am making a form in html with two text fields, one where the password is entered, the second where the user is written and options of a select, where the company is written, of which there can be several options, that is exactly why it is a...
6 Sep 2022 by FRS4002
I am using tcpdf php library to generate pdf documents. I need to specify an html element in the page to generate pdf document using jQuery and ajax. Here is ajax_test.php code: $pdf = new TCPDF(); $pdf->setPrintHeader(false);...
29 Aug 2022 by Manojkumar-dll
i have done a search button filter of from to date and made the fields as required but 8it's not working even though i checked console it shows the error as jquery.min.js:2 jQuery.Deferred exception: $(...).validate is not a function...
29 Aug 2022 by Sandeep Mewara
Quote: "$(...).validate is not a function" This error occurs when the jQuery validation plugin is not loaded or the jQuery-related scripts are loaded in an incorrect order. Please check and make sure that the validation plugin is being loaded...
29 Aug 2022 by Manojkumar-dll
I'm a Dummy Just added the bundles in _Layout.cshtml an it works
17 Aug 2022 by Member 15740444
I am trying to add multiple products by scanning barcodes in my invoice form, which I have succeeded in creating the form where I can add multiple rows to the form and also can scan barcode and add products automatically to the row. But here the...
12 Aug 2022 by Haseeb Hassan 2022
**here is the view file which triggers the status in the data table:** targets: 7, className: "det stsarea", render: function (data, type, full, meta) { if (full['status'] == "0") { ...
1 Aug 2022 by Member 8583441
I am having two textbox having ajax calendar for both. In this the Ajax calendar is set for selecting months not the dates that was successful. Now I don't want to select the previous months and future months and reflect in the textbox. I was...
28 Jul 2022 by Member 13822488
DataTables warning: table id=emp-salary - Ajax error. For more information about this error, please see http://datatables.net/tn/7
28 Jul 2022 by Member 13822488
my html code Salaries -...
17 Jul 2022 by nyt1972
Hello, I wanted to call a function getByClassAllreceipts on dropdown change event. I have multiple dropdown bind to change event, the problem is that the function getByClassAllreceipts is called for every event and the dataTable doesn't change...
13 Jul 2022 by Member 15704855
What's wrong with my code below? I can't abort ajax with it. What I have tried: var started = false; $(document).ready(function () { $('#start').click(function () { var count = $("#list").val(); var line =...
13 Jul 2022 by Member 15704855
I want to call this function every 5 seconds. But I get error setTimeout is not a function What I have tried: $(document).ready(function () { started = true; var total = line.length; ...
13 Jul 2022 by Richard Deeming
lines.forEach expects to be passed a function which will be called for every item in the lines collection. You are passing in the value returned from the setTimeout function, which is an integer. This cannot be used as a callback function...
13 Jul 2022 by Chris Copeland
The easiest solution would be to have the timeout registered as part of each ajax request. The problem you're having is that you're calling setTimeout() within the forEach method directly which isn't a valid process. Consider something like the...
12 Jul 2022 by Mrunali Madarkar
add a index and set it's value and increment the index value in the loop. Also use async:false.
8 Jul 2022 by Member 15078716
Read about OTP at One-time pad - Wikipedia[^] Thank you.
8 Jul 2022 by Member 14649908
Hi Everyone, I have created signup form in which there are Signup.php.In signup.php file there are two javascript functions: email_send_OTP( )and email_verify_OTP( ).Inside both of these functions I have used AJAX. The email_send_OTP()function...
27 Jun 2022 by myes
When i host my web application it shows Server Error in '/' ApplicationThe reason for this isThis error can occur if a Service Reference to a WCF service has Inline Script set to true;. For WCF services Inline Script should be false.What shall i do for this error.Server Error in '/'...
27 Jun 2022 by Member 15689371
The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that...
22 Jun 2022 by nyt1972
Hello, I have an issue that if I use DataTables Ajax render function for a conditional column it duplicates each row in table. If I remove the below line then it works fine, but after adding this every row is displayed twice. { ...
19 Jun 2022 by nyt1972
Hello, I want to fetch data from database to datatables using ajax on dropdown change. my controller and model is working fine, but this is my first time to use datatables, but I am unable to successfully fetch the data to datatables. ...
19 Jun 2022 by nyt1972
Finally succeeded to do it: $("#classid").change(function(){ var sessionid = $("#sessionid").val(); var classid = $(this).val(); $.ajax({ url : "", ...
15 Jun 2022 by Richard Deeming
Set up the table once, and refresh it when the filter changes. $(function(){ $("#datatable-responsive").dataTable({ ajax: { url: "", type: "POST", data:...
14 Jun 2022 by Ramon Ortega Jr
Hi guys how can i upload an image to my folder using AJAX in MVC This is my View:
14 Jun 2022 by Richard Deeming
Quote: fileData.append(files[i].name, files[i]); You are using an undeclared variable i. Unless you've declared that somewhere else, it will be undefined, so you will get a reference error. And if you have declared it somewhere else, it...
13 Jun 2022 by nyt1972
Hello, I want to get data from related tables on a dropdown change event using Ajax. My Controller and Model results are ok, but I don't know that how to display the data returned from controller in JavaScript. Because the Data have two arrays,...
13 Jun 2022 by OriginalGriff
Answered only to remove from the unanswered queue - resolved by OP.
13 Jun 2022 by Ramon Ortega Jr
Hi guys how can i upload image to my network folder i this is my code HRIS.cshtml ...