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.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
55 views

JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 5 of the JSON data [duplicate]

I have installed phpmailer 6.8.1 (upgraded from phpmailer 5.2) into my server (using php v7.0.33). The phpmailer is working as I am receiving the test emails however once the email data is processed/...
kiteandwindsurfer's user avatar
0 votes
0 answers
17 views

Duplicate script tags renders first tag but not the second using ExtJS

I'm getting strange behaviour that causes ExtJS to not load the second tag of 2 script tags. I'm using tabPanel.update('text here', true) which causes the first script tag to execute but not the ...
Craig Fairhurst's user avatar
0 votes
1 answer
12 views

How do I configure IIS 6.2 to handle Ajax requests

I have a web application that is currently running on a windows server running IIS 6.2. I am not trying to migrate into a new environment. I have the application up and running but the ajax calls ...
Zoop's user avatar
  • 872
0 votes
1 answer
33 views

Fetch file with ajax — CORS issue & set cache?

I'm trying to get a json file with fetch from another server: fetch('https://site.test/data.json', { method: "GET", }) .then(function (res) { return res.json(); ...
Runnick's user avatar
  • 623
0 votes
0 answers
9 views

Delete current custom post from a button click with ajax request

My platform store multiple custom posts created by users. Now I am trying to create a delete button from where they can delete their own post . The ajax request is successful but I get the "Error:...
Victor Cojocaru's user avatar
0 votes
0 answers
34 views

How to increment a total value and decrement in shopping cart using jquery to handle cart?

I have html code for my shopping cart, but i am struggling a bit to increment + and decrement its value from my shopping cart, back end is php. I am using jquery to handle the cart. Also need help to ...
MyLegend2020 Wilson's user avatar
0 votes
0 answers
54 views

Uncaught RangeError: Invalid array length in ASP.NET AJAX - How to Resolve?

I'm facing a tough problem with my ASP.NET web app that uses AJAX. When I press the submit button on my webpage, I'm getting an error that says "Uncaught RangeError: Invalid array length." ...
Snooper_A's user avatar
0 votes
4 answers
56 views

Get minimum and maximum dates from JSON file for use with FlatPicker

I have an external file that is in the following format which i think is JSON but i am not 100% sure. {"result":["2008-09-29T00:00:00","2008-09-30T00:00:00","2008-10-...
HolisticDesigns's user avatar
-2 votes
0 answers
36 views

Issue in disabling submit button when value of the field already present in database [duplicate]

I posted related to this topic earlier as well. I have small form which checking entry for username in database. If username already exist in database then its generate message that username not ...
Student's user avatar
-1 votes
0 answers
17 views

is there how to get data by json format?

The id get correct but value is not get using j-son serializer. I want correct code & data get id and value. How to get data from backend with ajax and j-son. return by j-son format. get ...
m3hack's user avatar
  • 1
0 votes
1 answer
25 views

Calling the same PHP script containing a sleep function via AJAX or CRON JOB

I have a PHP script which retrieves X records from a database, and loops through them at a rate of 1 every 10 seconds. The same script must work with both a Cron Job, and an AJAX call via browser. The ...
GiLA3's user avatar
  • 379
0 votes
1 answer
51 views

.net 6 mvc AntiForgeryToken fails to verify

I am working on a .net 6 MVC web app as the front-end with a .net 6 web api project as the back-end. There's a function which makes an AJAX POST call to fetch data, and it works smoothly with a @Html....
YiCheng Wang's user avatar
0 votes
0 answers
14 views

Updating ejs template with AJAX request

I am creating a web app that returns recipes when a user searches for a specific ingredient(s). I am using the edamam api and decided to use pagination so that I could load more recipes relative to ...
Victoria's user avatar
0 votes
0 answers
48 views

The image cannot be post to php file

I'm a newcomer to PHP and JavaScript,and I'm also a new user on StackOverflow. I've encountered some issues while lerning. Here's the situation: I want to create a feature that allows users to upload ...
Xuan's user avatar
  • 1
0 votes
1 answer
29 views

Bootstrap validation with php AJAX

I'd like to serialize my form so that it can be sent to a php file via Ajax. I'm using Bootstrap to validate the form beforehand. Unfortunately, the php code returns an empty array. Bizarrely the ...
rockline's user avatar
0 votes
0 answers
8 views

Success variable not working in Statamic Antlers template when using AJAX to submit form

I am using Statamic Form and Antlers template with AJAX to submit a form. However the success variable is not longer working when the form is submitting so I am unable to update the text to show the ...
Nicholas Norton's user avatar
0 votes
2 answers
37 views

How to throw variable out of loop to another loop in jQuery? [duplicate]

I have a loop inside another loop and trying to throw a variable out of inner loop but i get error: addorder:524 Uncaught ReferenceError: productPrice is not defined This is my success ajax code ...
RahkarPardaz's user avatar
-1 votes
0 answers
29 views

Cannot manually change input value after Ajax call and jquery val() method [closed]

I'm trying to develop a customized invoice system. So i have a table, each row Is made up by a select tag and an input tag. The input tag value automatically changes on every change made in the input ...
Rocco's user avatar
  • 1
-1 votes
0 answers
24 views

$.ajax is not a function error, tried the latest version of jquery too [closed]

<!-- Javascript --> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-...
Anirudh Srivathsavan S's user avatar
-3 votes
0 answers
21 views

Functions called from flask backend via Ajax in html script do not work [closed]

I have a flask project which has 2 HTML files, HTML_File1 and HTML_File2. HTML_File1 content: <!doctype html> <html lang="en"> <head> <title> HTML_File1 </title>...
Kartik Tanwar's user avatar
-3 votes
0 answers
19 views

How can I alert a sql query result in AJAX and NodeJS

I want to fetch the Color1SStock column from my MYSQL server and alert it with a Javascript alert. ChatGPT wrote the code inside of the script tag in the file Product-Display.ejs . I want the system ...
CookieMonster's user avatar
0 votes
0 answers
27 views

Ajax Not passing post data to php script [duplicate]

I'm very very stuck, Currently trying to send data from an ajax function, to a php script on an external url. But no post data is being passed to the other URL? HTML <form action="" id=&...
Scott Chambers's user avatar
0 votes
0 answers
52 views

Javascript keeps running when the target element is removed/replaced

I am developing an auction site on wordpress with woocommerce that requires countdown timer to show when the auction for a specific product is ending. Following is the coundowntimer JS: const ...
mysticalghoul's user avatar
-3 votes
0 answers
23 views

when i try to delete with Ajax so product not deleted coming 500 internol [closed]

when i try to delete with Ajax so product not deleted coming 500 internal web.php public function delete(Request $request) { $id = $request->id; $product = ProductAjax::find($id); ...
wahiduz zaman's user avatar
-1 votes
0 answers
13 views

OSTicket : Failed to load resource: the server responded with a status of 404 (Not Found)

After changing from Apache to Nginx, I'm facing an issue in OSTicket where I receive an error when attempting to assign tasks to agents. The error message I'm encountering is ['Failed to load resource:...
Yousef's user avatar
  • 1
0 votes
0 answers
25 views

The console is logging "Not Found 404" with Heroku link. What do I do to fix this?

I am creating a CRUD app of my choice for an assignment; however, they didn't really explain what a HEROKU app link is. In the notes, my instructor provided the link. "https://ancient-taiga-31359....
Lei's user avatar
  • 1
0 votes
1 answer
31 views

How to make Contact Form 7 work when injected via AJAX in WordPress?

I am working on a WordPress project where I need to use Contact Form 7 as part of an AJAX response to check if certain data is available. However, I am facing an issue where the form is not working as ...
Webwoman's user avatar
  • 10.3k
0 votes
0 answers
12 views

How to install AJAX in Visual Studio 2013

I am using the HandsonTables and I can get it to display the Grid with the correct number of Columns and even got it to display the correct Headers. Problem is my buttons do not seem to work. My View ...
JoAnn Donaldson's user avatar
0 votes
0 answers
30 views

Anchor Tag with Prevented Default Behavior Not Executing Correctly

I'm encountering a peculiar issue within Haml views where a clickable image is configured within an anchor tag. The desired behavior is to execute an Ajax call when the image "Button" is ...
Muhammad Ushay's user avatar
0 votes
0 answers
22 views

Modal dont show data

i make app in Spring Boot and i have problem with display specyfic information on modal. Modal show up corectly but dont show data from database about specyfic store_id I dont know what is wrong and ...
Usz47eK's user avatar
0 votes
1 answer
41 views

Not able to print result inside output box

Please help me resolve the issue, below is my html code(css and javascript inbuilt). issue 1. I am trying to print the results inside the output box, but instead the page is getting refreshed to ...
Prosenjit Ghosh's user avatar
0 votes
0 answers
5 views

Issues with Image Cropping and AJAX Submission in iOS Safari

I'm encountering some issues with my web project, particularly when using iOS Safari on certain iPhone models. The project involves cropping an image selected by the user, embedding it into a template,...
Irfan K's user avatar
0 votes
0 answers
19 views

How to use regular javascript Ajax call JSF backend controller's method [duplicate]

As everyone may known. Regular PrimeFaces-13 Ajax framework not support page level event such as "unload" or "beforeunload" when user is leaving current page in browser. my ...
cidy.long's user avatar
  • 417
-1 votes
0 answers
27 views

How do I prevent the newly inserted record from disappearing?

I'm trying to add a record to a table after filling out a form which is sent to the database and then displayed into a table, however it disappears and doesn't stay on the web page? I have to send ...
oooo's user avatar
  • 11
2 votes
1 answer
23 views

Adding of PHP url to AJAX request only works outside WordPress folder

I am trying to add a php url in my ajax request but it's not working. The code: This works (But is not my idea way). It works with the file inside the public_html folder. Scenario 1: When I added the ...
Dan's user avatar
  • 231
0 votes
1 answer
22 views

How to display result of autocomplete every property on separated Line instead using slash?

I work on an ASP.NET Web API. I face issue when I call the Web API using a jQuery Ajax request. My issue is autocomplete result display separated by slashes: Id - Name - Designation but expected ...
ahmed abdelaziz's user avatar
0 votes
2 answers
12 views

Getting 422 (Unprocessable Content) if image size exceeds during validation in Laravel

How can I totally eliminate this 422 (Unprocessable Content) error that is shown in the console? It only happens when validation fails like for instance, the image uploaded exceeds the file size that ...
0x9342812j1o's user avatar
0 votes
0 answers
23 views

Django Python : JSONDecodeError at /Flashcard/ Expecting value: line 1 column 1 (char 0)

When the user submits this form I want to save the rgb color code as a variable to be stored on the back end (using django), so whenever the card is loaded (the colour picked on this page) will be ...
0_0 Help me's user avatar
0 votes
0 answers
25 views

Subsequent pages not working in AJAX pagination

I have pieces of code for creating AJAX pagination. I am fetching data from a custom field. Since there is no way of referencing it here, I assigned it to a PHP variable for the sake of following the ...
Dan's user avatar
  • 231
-2 votes
0 answers
23 views

DataTables Not Displaying Data from Server Response [closed]

enter image description here <script> $(document).ready(function () { var table = $("#example").DataTable({ dom: "lrtip", ajax: { url: "http://...
Ernest Yoyowah's user avatar
0 votes
0 answers
12 views

SearchBuilder DataTables error with displaying date field in default condition

When I select default column in conditions datatable 'startdate' and select condition 'after' or 'before' or any other, I get error in browser console: TypeError: resolved.replace is not a function ...
Forsworn24's user avatar
-2 votes
2 answers
36 views

id looping with where condition in Laravel 9

I send an array with ajax included category_id as shown in image. And catch these categories in controller to execute product row equal with category_id field in products table. In this case, i cannot ...
Ye Kyaw's user avatar
  • 25
0 votes
0 answers
18 views

Rail Ajax post to controller action and iterate over in view [closed]

i have a unique combination array that generated in JavaScript based on two input fields, i am passing that combination array to combination action with AJAX POST. How do i iterate that combination ...
roshiend 's user avatar
-4 votes
0 answers
35 views

Why can't I run a controller through AJAX code? [closed]

I have the following form in a modal: <div class="modal fade" id="absenceModal" role="dialog" aria-hidden="true"> <div class="modal-dialog modal-...
Andrea Duran's user avatar
0 votes
0 answers
17 views

AJAX sent parameters with 200 status code OK, but I can't get values in success function - AJAX wordpress

jQuery ajax call $(".filter-bar li").click(function(e){ const termID = +jQuery(e.target).attr("id"); // Get id to send it to url $.ajax({ method: &...
Marco Talaat's user avatar
0 votes
1 answer
34 views

My Ajax form is returning null to my controller

I'm doing post processing with Ajax BeginForm. The value coming to the controller is null.But when I use the SettingViewModel instead, null does not appear. But I need to use my UsersRegister model. ...
krautcez's user avatar
0 votes
2 answers
62 views

passing JSON formatted data with ajax is not working

I am trying to call an action in my controller with some JSON data, it seems to be reaching the action but the data is all null. This is what my Ajax function looks like: function AjaxPost(url, data) {...
ym733's user avatar
  • 15
0 votes
1 answer
40 views

How to change to content of second html document when clicking on a link in the first html document? (similar to artstation website)

I'm making an art portfolio website where contents of my image gallery are dynamically added with JS (JSON file) because there are a lot of images to be added manually through html tags. When I click ...
pooria1998's user avatar
0 votes
0 answers
12 views

Implementing an ajax call within another ajax call

I'm trying to replace the view with another view returned by a method: [HttpGet] public ActionResult Info(int personid) { ... return View("...", ...
LiquidSnake's user avatar
0 votes
1 answer
46 views

Multiple HTML Form fields to PHP arrays via Ajax

I'd like some help. I have the HTML form fields below and I want them to be sent to a PHP page to individual PHP arrays. HTML <input class="form-control" type="date" onchange=&...
pdhcentral's user avatar

1
2 3 4 5
4439