Questions tagged [ajax]

AJAX (Asynchronous JavaScript and XML) is a technique for creating seamless interactive websites via asynchronous data exchange between client and server. AJAX facilitates communication with the server or partial page updates without a traditional page refresh.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

how to insert data into mysql with dinamic form like this

this my form my Form code <script src="dist/css/style.css"></script> <script src="dist/js/choosen.js"></script> <?php include "../site.php"; include "../db=...
0
votes
2answers
19 views

How to send post data with AJAX, current solution not working

So I have a button where I want to use ajax to send post data to a PHP document then reload the page. Here is the button: <button value="ON" id="send" class="btn btn-block btn-primary btn-sm"&...
0
votes
0answers
6 views

Rails Ajax/Controller not properly updating my partial

i'm working through a tutorial to get a rails partial to display stock information using ajax. Everything is working properly and in the console I can see that the div has been updated properly, but ...
0
votes
0answers
6 views

PHP upload script not working in some devices

I created a website that allow the uploading of files (songs) and everything was working fine but all of a sudden files stopped uploading in my own device but when i used another person's device the ...
0
votes
1answer
15 views

ajax call in javascript not returning items to correct lists

I am a student and am having an issue getting information on the correct lists. My sample data has a male runner and a female runner. I have three lists of runners: male, female, all. When I run ...
0
votes
2answers
15 views

MVC ASP.net ajax json Datatables errors - json error, cells not displaying data

this may be a duplicate but I've tried everything I can find on stack exchange and datatables.net forums. I can't get it to work at all. I have var listOfFiles which is a list of the following model ...
0
votes
1answer
18 views

JavaScript jQuery delay oninput

I have a html table which gets its values from a database through jQuery Ajax. The table has a oninput function which updated the database every time the user changes the value of one of the cells. ...
0
votes
0answers
7 views

How to Open Multiple Modals Bootstrap Cascading Windows

I have an ASP.NET MVC project in which I open each of the views in a modal window dynamically. Just created a modal block id = "modalGenerica" ​​and open any view of my project inside it. All this ...
0
votes
0answers
9 views

Using Ajax with pug and Mongodb

I've been looking for this for quite a while and I have no clue. I want to use Ajax to display information from a collection called 'reizen' in mondodb. I want to be able switch through all the ...
0
votes
1answer
26 views

jQuery Javascript Modal Popup not working in MVC

when I click on link "Comments" a modal popup opens up and shows content, therefore it does what it is supposed to. Going to my issue: In the first scenario, it happens what I want but some other ...
0
votes
0answers
44 views

Incomplete response for XHR request in python with requests.post()

I am trying to scrape German zip codes (PLZ) for a given street in a given city using Python's requests on this server. I am trying to apply what I learned here. I want to return the PLZ of ...
-1
votes
3answers
43 views

Executing a Javascript function only after the previous function is fully executed [duplicate]

I have 2 functions, doFirst() and doSomethingElse(). Now the first function consists of about 10 AJAX Requests which are executed on a condition which checks if that filter was picked. These AJAX ...
0
votes
3answers
33 views

React Router Fetching data from API

I am new to react and now am working on a app that has to fetch some data from an API. I have my component that supposed to fetch the data and get an Json object back and populate a table. ...
0
votes
0answers
20 views

What is wrong with my ajax post, as the form submits and my php code is fine [duplicate]

For some reason if I attempt to send data through AJAX it doesn't work. If I include action="sent.php" method="post" in the form, all the data gets inserted into the database. This means my form and ...
0
votes
1answer
17 views

Can't connect with server in Phonegap App by CORS request error

I've create my app. When i test on desktop or run on PhoneGap IDE it runs ok and connect with server, but when i build my apk and run it on Android, the request failed and launch this menssage: No '...
0
votes
1answer
27 views

Posting JSON data via AJAX to Web API fails with “The JSON value could not be converted to System.Int32”

I want to send data from my website to my WEB API my partners are working on via AJAX. The WEB API is a .net Core 3.0 app. And the form is to register a new user. But I'm facing a problem from ...
0
votes
0answers
14 views

Warning move_uploaded_file(): Unable to move audio file in php

I have simple Record Wave script using Recorder.js Now The problem is Record is ok lessen to My record is ok download Record file from blob is ok Upload The record file (Here is The problem ) ...
-2
votes
0answers
10 views

Javascript and AJAX Status fix in 1 [closed]

To com dificuldade ao identificar o status da transferencia. Depois que eu executo o método .send(), meu ReadyState muda de 0 para 1 e fixa neste valor. E eu consigo obter os dados do arquivo ...
0
votes
0answers
19 views

Cakephp 3 View variables set in App controller not available when rendering specific template / AJAX requests

I am setting few view variables within my App controller such as company name, address, contact information which changes based on sub domains so that they are available throughout all view templates. ...
0
votes
0answers
12 views

AJAX on open and on change xmlhttp.open

I have created the below code which should on load, dump the document visible state to a mysql database via xmlhttp.open and .send. The code does not execute as desired on open, but functions as ...
0
votes
0answers
3 views

Masonry with ajax loading posts not working properly

I've been trying to solve this issue for 5 days, but nothing. I have custom post type with masonry layout and I added ajax loading on button click. It's actually working, but somehow position of ...
0
votes
2answers
25 views

Filter Json based on selected item

I have used autocomplete function to show the option based on a Json File that can you see below. Now my goal is to filter the json file based on the item selected. Eg: if I choose "Roma" from the ...
0
votes
1answer
25 views

How can I modify this script so that it works when the page first loads AND on change?

I have a script that loads a dependent drop-down options. I added a part where the dependent drop-down hides whenever there are no options available. The primary drop-down retains the most recent ...
0
votes
0answers
12 views

Why would I be receiving a 405 Method Not Allowed on this Ajax GET request?

I'm receiving the 405 Method Not Allowed error whenever I try to submit my GET request. I've prepended the https://cors-anywhere.herokuapp.com url to the actual URL with the endpoint attached so that ...
-2
votes
1answer
43 views

Ajax Post not working, even with correct data

I'm attempting to make a very simple chat app where you sign in with a message, that message gets stored in the database, and then you pick a friend and the database will send back their message that'...
0
votes
1answer
14 views

How to pass an int to controller using $.ajax?

I'm trying to pass an int via ajax to my controller. My ajax syntax is this: $.ajax({ url: 'testAjax.htm', type: 'POST', data: JSON.stringify(groupId), success: function(data){ ...
0
votes
1answer
16 views

jquery not working on ajax loaded content [duplicate]

I have a multiple checkboxs loaded from another file by ajax with class 'chk-bx' <script> $('.chk-bx').on( "click", function(){ alert("checked"); }); </script> There are some ...
0
votes
0answers
18 views

Passing javaScript object to modal, convert List<Obj> and passing to JS not working

I have a JSP with table and rows. Hyperlink in one column is a POJO list which when clicked should open up a modal window. Below is the code. <td><%if(folderStrutList.getFileCount() != 0) {%&...
1
vote
1answer
39 views

How to Write Route URL inside Javascript Laravel Blade?

This is my route, having 2 parameters, url: '{{ route('datatable.getaccess', [$room->id_project , $room->id]) }}, if write like that will shown : xxxxxx?xxxxxx , that have question mark ...
1
vote
1answer
33 views

request two files with one JQuery Request

I have two JSON files I'm pulling into my web page. Is there a way to call both files in one function? Here's how mine is set up: var getData = $.getJSON("data/fileOne.json", function (data) { ...
0
votes
1answer
34 views

How can I design SQL data base for School bus Real time tracking System send location from android App to web every 5 sec for every bus? [closed]

I can not find the association between bus and location how can i design it in class diagram.
-1
votes
0answers
22 views

Is it possible to do jquery focus() and set a value on a hidden field? [closed]

So first, thank you for visiting my thread I have an issue with Barcode Scanner. For now, my input field is text type, but my client want to make it hidden so users can't modify the value of barcode ...
0
votes
1answer
27 views

How to change GET parameters on the click of a button, using jQuery?

Apologies if I am not supplying enough information here or not making any sense, please let me know if I need to edit the question. I have a URL with a parameter that I'm after changing on the click ...
1
vote
1answer
50 views

check if value already exists in the JSON added using AJAX

I have this code that I use to add dropdown list for each row in specific row filled with JSON values. And it works great...but now what I want to do is to be able to check if there already exists ...
1
vote
1answer
12 views

How can i target the input tag in the second td of a table(input tags are dynamic-appended base on the user needs)

I have a dynamic table that looks like this Now I want my code to execute when the user select something in the select tag under the item name column and store the data in the input tag under the ...
0
votes
0answers
13 views

Dynamic Dependent Select from dorpdown using Jquery and Ajax and json file

I'm looking for some help with the code below, I have this form that each dropdown list depends on the one above it, so you based on what your selection is, the right data will show on the next ...
-2
votes
1answer
46 views

Run Js code every 10 minutes, If coding page refresh or not [closed]

I need to run a Js code every 10 minutes, If coding page refresh or not. I know setInterval is JS code for a run every 10 minutes interval time, but if a page load the setInterval time set again 10 ...
0
votes
1answer
21 views

Understanding of ajax complete call

I'm struggling with stabilizing Selenium automation for jQuery/AJAX application hence referred to https://www.swtestacademy.com/selenium-wait-javascript-angular-ajax/ and it has ajaxComplete() ...
-2
votes
1answer
27 views

How to make js handlers work after ajax load content?

I have an ajax request where I load html code on it, its a slider of images with a class called dragscroll (its a js plugin that need this class to make it dragable https://github.com/asvd/dragscroll) ...
0
votes
0answers
16 views

Contact form 7 - After submitting form, send form data to api get token and redirect

i have this code as a plugin, this code used to work fine but someway its not working anymore. After submission its connects and register on the crm the new user but its not redirecting. here is the ...
3
votes
1answer
56 views

Wp-admin/admin-AJAX 403 forbidden

Ajax request raised from WordPress logged in user works properly. But non-logged in user ajax request fails with 403 forbidden. We tried the following solution: https://wordpress.org/support/topic/...
0
votes
0answers
16 views

How to call aspx page method using Ajax to filling GridView?

I calling the Method using code behind and Postback . writing Ado.net with textbox click search for Id it give me back the data based on ID . I want to load or do the same Work but with AJAX and get ...
0
votes
0answers
19 views

Deprecation Synchronous XMLHttpRequest on the main thread is deprecated problem on 1 page but not on all pages in asp.net core

I have an issue. I have 2 pages which both use jquery .load to load html inside a div. On one page, I don't get any warning and it works fine on staging but on the other page I get the warning and the ...
0
votes
0answers
35 views

VALUE printing in console but undefined in DOM

I am using JS to print data in html table . But when i try to object.value i get undefined in dom but console is printing the values. I want to print the true if the value corresponding ot the column ...
0
votes
0answers
7 views

Django and AJAX: Is it possible, or good practice, to submit a single form from a formset using AJAX?

My django application displays forms in formsets which are filled in by the user. These can be up to 10 forms. I have tried to work out a way to 'save' the data from a single form in this formset as ...
-1
votes
0answers
23 views

How do I resend axios request on status error 500

I have an API which is not stable(I may need up to 2-3 request to get a response). Is Axios capable of resending the request when I get an error (status 500). *Looking for a Axios solution, not a ...
0
votes
0answers
14 views

How can get a empty string from data base? [duplicate]

I was building an sign in form, on ajax call parameters in my method get the value from the text boxes, then i put it in a sql query which is. string user_id_query = "SELECT p_word, userId FROM ...
0
votes
1answer
34 views

Ajax autocomplete using json

I have then following structure. I need to perform an autocomplete function retriving data from a json file and then show the results of the item selected in a pop-up. Below you can see my code. ...
0
votes
0answers
23 views

AJAX receives 500 Internal server error when calling ASP.NET MVC Controller

I'am receiving a 500 internal server error when trying to call a controller action using Javascript AJAX. I want to call a controller method when the user clicks the confirm button. CS Controller ...
0
votes
2answers
24 views

Synchronous Ajax Call in Angular

In my angular application, I have a scenario where i need to make looping over ajax calls. Scenario is as follows: Based upon response from first request i need to initiate 2nd request, response ...