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.
221,966
questions
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 ...
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-...
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="...
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 ...
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-...
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 ...
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";
$...
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 ...
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 ...
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 ...
-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 = ...
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>
...
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....
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 ...
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:/...