Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [ajax]

AJAX (Asynchronous JavaScript and XML) is a technique for creating interactive website user interfaces without the traditional web page refresh or reload. It uses asynchronous data exchange between client and server to update displayed information and respond to user interactions seamlessly. Include additional tags for programming languages, libraries, frameworks, web browsers, protocols and other environmental information.

2 votes
1 answer
56 views

Custom WooCommerce Admin notice with a dynamic message

I cannot display an admin message by sending an argument to the function. It was suggested I use a closure function but this does not appear to work. Here is the code function ...
mrslope's user avatar
  • 47
0 votes
0 answers
46 views

How to execute php script with a button (either with the shell command or with ajax)?

I'm a dev on the website archi-wiki.org. We have a weekly mail that is sent by the php function cli.php. The shell command to run it manually is php7.4 cli.php -g parentheses -api https://www.archi-...
aphfug's user avatar
  • 11
0 votes
0 answers
23 views

How to show image which is uploaded by gallery in asp.net through ajax by web method

I want to show image which I uploaded from gallery. Here is my code, <asp:Image Height="420px" Width="580px" runat="server" ID="img_Product" CssClass="...
s.k.Soni's user avatar
  • 1,220
0 votes
0 answers
11 views

How do I create an uploda form that reads data from file and outputs that data to the page via AJAX?

I am looking to integrate a feature onto my website that reads the data from a JSON file and then outputs that data, all via AJAX. A bit of background is that I am creating a specific online tool ...
RichRBX's user avatar
1 vote
0 answers
17 views

The length of the string exceeds the value set on the maxJsonLength property in asp.net C# [duplicate]

I want to show image through ajax by web method. <asp:Image Height="200px" Width="200px" runat="server" ID="img_Product" CssClass="col-md-2 control-...
s.k.Soni's user avatar
  • 1,220
0 votes
1 answer
46 views

How to get all data that you've uploaded from database through ajax?

I have a database with a table name "Outing". Except id as a primary value, I have 3 columns. These are title, place, and date. Now, I have a html file on how to upload or add info on that ...
user avatar
0 votes
0 answers
41 views

How to segregate from 1 php file to index.html and index.php?

SUMMARIZE PROBLEM The code below is named as index.php. This file is perfectly work.. <?php $servername = "testing"; $username = "testing"; $password = "test"; $...
user avatar
0 votes
0 answers
33 views

I wish to first submit a post request and move to different page in flask

Requirement: There is form in my html page where we can upload files and post them. After posting the files I wish to save it in the backend and then proceed to the next page of my application in a ...
R.S4697's user avatar
0 votes
1 answer
61 views

Correct way to send AntiForgeryToken through AJAX request

I've been trying to send the AntiForgeryToken through AJAX request in an ASP.NET Core MVC (area based) Razor view; however, I am definitely missing something to send in the POST request. I read ...
KingPin SV's user avatar
0 votes
0 answers
38 views

Ajax Response Html with html download links not working and other issue

I'm absolutely not expert on js and html, following the answers and samples of stackoverflow I found a way to publish on my website a external html source. In the external source there are present ...
Val's user avatar
  • 1
-1 votes
0 answers
30 views

My Quantity increase button is not enabling when i reduce my quantity from maximum. I am using ajax for increasing and decreasing quantity in my cart

$(document).ready(function() { function updateQuantity(variantId, newQuantity) { const basePrice = parseFloat($('#quantity-' + variantId).data('base-price')); //const totalPrice = ...
Nisha Mashhood's user avatar
0 votes
0 answers
11 views

Uppy With Ajax page Load

I have a working install of uppy V2 and trying to migraet to V3. In the index.html page I have <script src="https://releases.transloadit.com/uppy/v3.17.0/uppy.min.js"></script> ...
toomanylogins's user avatar
0 votes
2 answers
84 views

Ajax - pass string[] to c# controller

MVC Core. JS: var currentSelection = []; function selection_changed(selectedItems) { var dataGrid = $("#myContainer").dxDataGrid("instance"); var data = selectedItems....
guidempty's user avatar
0 votes
0 answers
55 views

WordPress AJAX POST Request Not Working: Page Refreshes Instead of Displaying Result in Modal

I've created an AJAX function in WordPress to send a POST request and display the result in a modal upon successful completion, without refreshing the page. However, the AJAX code isn't working. When ...
iyed ghodhbane's user avatar
0 votes
0 answers
31 views

Server Side DataTables warning: table id=DataTables_Table_0 - Ajax error

I'm getting an error when trying to setup a datatables with my project. DataTables warning: table id=DataTables_Table_0 - Invalid JSON response. For more information about this error, please see http:/...
Bintang Satya's user avatar

15 30 50 per page
1
3 4
5
6 7
14798