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.

-1
votes
0answers
14 views

Cant get the content loaded with ajax when posting remotely with Python on Wordpress [on hold]

I have trouble adding content to wordpress via python xml-rpc. I post it from my local computer. Post is added correctly except for sections with video links that load using ajax. Here is an example: ...
0
votes
0answers
9 views

Rendering view after changing Locale by Ajax in Symfony 4

I am trying to change page language by a dropdown. Dropdown is generated by this code {{ form_widget(registrationForm.locale, { 'attr': {'onChange': 'languageChange()'} }) }} in the twig. Ajax ...
0
votes
0answers
8 views

Dropzone using div passing files(multiple images) to controller through ajax not working

Im trying to create a dropzone in div with class dropzone,im getting dropone and can load images on it but can't pass it to controller, but data is not passig through jquery to cotroller.... removing ...
1
vote
1answer
12 views

how to use ajax to stop refreshing of entire web page?

I am struggling a bit to apply ajax to my current code. I am new and not too sure how to go about it. Thanks in advance. Code: <script> function openTab(NetworkTabs,elmnt,color) { var i,...
2
votes
1answer
27 views

The GET method is not supported for this route. Supported methods: POST. laravel 5.8 Ajax

I am trying to understand more about how to save data from ajax request into the database on laravel, The data in this case is raw (JSON FORMATTED) data just to see how it works it works fine if I ...
-1
votes
0answers
50 views

AJAX POST call responding with the whole PHP page

This a follow up question on my last question. Last question I'm trying to send a string from my JS file to my PHP file with an AJAX POST call. The POST call goes through and the result returns the ...
1
vote
3answers
25 views

Ajax done callback not waiting when is not a function

Prologue: Though I've been dealing with standard [1] Ajax calls for a couple months, a simple mistake in my code made me realize today that there's so much more I still haven't grasped, that I feel I ...
0
votes
0answers
11 views

Cache and display GET Requests with Service Worker

So, I´m new to PWA and JS for that matter, so I´m sorry if my question and/or my terminology would sound stupid ... I have a TYPO3-Extention ajaxselectlist and this is simple select list with an AJAX-...
0
votes
1answer
11 views

How to recover from “Timeout exceeded” in XPages/dojo

Our XPages application does partial refreshes quite frequently. Sometimes, a request fails and Timeout exceeded is displayed on the browser's console. After the first fail, other requests have a ...
0
votes
1answer
19 views

How to delete from two MongoDB collections using Node

I have a website with users and posts. There are two MongoDB collections, one for the users and one for the posts. I can delete through the website from each collection but I want that when I delete a ...
0
votes
0answers
16 views

How to get the first item on the second grid after sending the data from first grid?

I use Kendo UI. I have 2 tabs here. Every tab has one grid. So, I have 2 grids, the first one contains list of payment. I choose every item via check box, then there's a button under the grid. If I ...
0
votes
0answers
11 views

TYPO3 9.5 Forms framework AJAX

I'm trying to send a form via AJAX, these form was created with the TYPO3 forms framework. A content element with this form will be shown via pageType. When i call this pageType directly and submit ...
0
votes
1answer
9 views

Ajax call always returns in error from controller Magento 2

From my controller, I return a JSON data to my Ajax call but it always goes in the error section, even when it's not an error. jQuery.ajax({ type: 'POST', url: '/yxcustomer/index/...
-1
votes
1answer
38 views

Ajax post empty [Laravel]

so i want to create a page that will create a category, but it says that im using method GET to create a new category while the form is using POST, i realize that there might be an error with an ajax, ...
-1
votes
1answer
19 views

How to iterate a hash map in response of ajax call where that map holds 3 lists

here is my hash map and the ajax call Map<String, List<?>> map=new HashMap<>(); List<?> minimumParameters=new ArrayList<>(); map.put("min", ...
0
votes
1answer
40 views

JQuery, AJAX: how to show element in table row if I have multiple forms

I have a table with multiple rows and in each row I have a form with id="saveComment". (target: for each row I want add comment) I save data using AJAX. When I add comment I successfully save data ...
1
vote
1answer
36 views

Form validation rules changing dynamically

var mandatory = { emailAddressTextBox: { required: true, email: true }, passwordTextBox: { required: true, minlength: 6, maxlength: 24, } }; var nonmandatory = ...
0
votes
2answers
40 views

get client username sent to server side in javascript

How can I pass form input from client to server in javascript? Below is the client side. I want to take a username or anything entered in textbox, and send it to server.js where it will be processed ...
0
votes
1answer
24 views

JS: How to trigger CSS changes on divs based on API information

I'm working on a project in which I need to record the number of pages that a person has completed in an online journal. For that, I use JavaScript/jQuery to make an API call, then use the data from ...
0
votes
0answers
24 views

Append a link using ajax in django

I have read through the internet to find out the best solution to pass a django link in ajax. Bellow is a django template link to remove an object from a manytomany relationship using ajax call. &...
0
votes
1answer
17 views

Why my ajax code not run with Python Flask?

I'm just doing some simple request from ajax to Flask, but it doesn't work. Here is my basic.html vs js/basic.js code: $(document).ready(function(){ $('form').on('submit', function(e) { $...
1
vote
0answers
28 views

How can I get div from dynamic path with jQuery?

I am trying to get a certain div (id="abc") from dynamic paths. Here is my code: $('#p_manu_num a').on('click', function () { var a = $(this).attr('name') var art_url ="?page="+a }) I ...
0
votes
1answer
15 views

rails 5 ajax partial render is not respond

am working on an app, and i cant find any errors, but my partial render is not working index.html <div id="results"> <%= render 'result' %> </div> _result.js $('#results').html(...
1
vote
0answers
7 views

validating bootstrap datepicker using Qunit

I have a bootstrap calendar on my page that lets the user pick a date. I have a start time and endtime. I would like to test to do the following. If the user leaves the date selector empty, the test ...
0
votes
0answers
16 views

Loading website using node/express, need to render on the same page [duplicate]

I'm using node and express with the mustache templating system, I have created a multipage website but don't want it refresh on rendering (make it single page), what can i do to solve this? i think i ...
0
votes
0answers
18 views

Data is not add in DOM Tree /dynamically to table

problem I am trying to make a Dynamic table(CURD operation) DataTable in Django But when I am Dynamically Add / Delete / Update Data it is not add to DOM/ Datatable. i am using Ajax, JQuery and ...
0
votes
2answers
26 views

yii2 ajax validation error in widget, yii\web\Response

I'm getting error from yii\web\Response when I use ajax validation. Object of class yii\web\Response could not be converted to string widget: public function run() { $model = new ...
-3
votes
1answer
37 views

Trigger fail in ajax done function call

I want to do some checking of data received in an ajax call, and proceed to a post request if it passes. On submission of a form, I make a GET request to api/customers/all that contains an object of ...
1
vote
2answers
43 views

Passing a parameter with an onclick event

I'm working on a project with API calls. Basically, I need to be able to pass a parameter to a function with jQuery when a certain button is clicked. I am working on a project that calls an API to ...
0
votes
1answer
25 views

What am I doing wrong with this AJAX in django?

I am trying to implement AJAX in django. I have the following file login.html This file contains the form and ajax script {% extends 'services/base_visitor.html' %} {% block title %}Log In{% endblock ...
0
votes
1answer
26 views

Dynamically loading webpage using node/express, need to render on the same page

I'm using node and express with the mustache templating system, I have created a multipage website but don't want it refresh on rendering (make it single page), what can i do to solve this? i think i ...
0
votes
0answers
11 views

Unable to extract data sent from client side on server side

I have my client side which allows user to enter text in an input box. I want it to be taken from client.js and send it to server.js where it will be stored in a variable. Can anybody help me? var ...
0
votes
2answers
19 views

Uncaught ReferenceError: response is not defined

I was trying to use ajax for a simple like section in a django website. the like button on being clicked likes the post but the html isn't changed. If i refresh the page the html changes. the console ...
0
votes
0answers
8 views

Multiple Charts according to Year, Month and Day using FLASK, chart js ajax

I want to create a chart using Flask Chart Js & AJAX so that If I click on Year then data can come in months & If I click on months then It can come according to day. here are my backend ...
0
votes
0answers
16 views

Which response from server is the one that needs to have security headers

In this scenario I have a single page application lets say: mysamplesite dot something. This returns an html to the browser. In the html there are javascript files that are then downloaded by the ...
-4
votes
1answer
21 views

how to insert data into table using ajax jquery in html [on hold]

I have three columns cid, category, status.., I created a table in MSSQL Server. I want to insert values into a table using ajax jquery in HTML. Looking forward for the solution. Thanks in advance
0
votes
1answer
11 views

The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'AjaxControlToolkit' (are you missing an assembly reference?)

I am working on a project where the reference is having 'AjaxControlToolKit' assembly added correctly. Also in the aspx file I have added the below tag: <%@ Register Assembly="AjaxControlToolkit" ...
1
vote
1answer
14 views

Ajax JSONP Parseerror-Callback-Not-Called with Tomcat 9

I got a problem using my tomcat servlet. I'm trying to cross-site-script on localhost with jsonp. I'm trying to access local the server with ajax/javascript like this: $.ajax({ url: 'http://...
0
votes
0answers
8 views

Object in AJAX Call to a .NET Core API Endpoint

The following AJAX call is calling an API endpoint which expects an object. Currently, the endpoint is not getting hit when I place a breakpoint. However, in the AJAX I send three variables (which are ...
0
votes
2answers
37 views

Why doesn't the AJAX request respond to either fail or success?

project/add.html: <input type="text" id="txtmaterialname" class="form-control" name="txtName"> project/assets/js/script.js: $(document).ready(function() { $('#txtmaterialname').on('...
1
vote
1answer
32 views

Why my ajax function are not working on infinite scrolling?

I am building a webpage having infinite scroll using waypoints.js with backend as Django.The problem is, my jquery and ajax functions are not working on newly generated content while they are working ...
0
votes
1answer
38 views

$.post and alert() issues

I have a a form that I am using jQuery $.post to grab form data and send it to a php script. The script then sends back some data. The issue I am having is that sometimes (10% of the time maybe) when ...
0
votes
4answers
29 views

Is there a benefit of calling a PHP file within an AJAX request, as supposed to a direct endpoint?

I'm writing an app which interacts with the Spotify Web API via AJAX requests. I can do this in two ways. I can use a direct (HTTPS?) GET or POST request to the Spotify endpoint as follows: $.ajax({ ...
0
votes
1answer
21 views

how to dropdown fill according to this record

I have two loops: table loop: fills the table rows dropdown loop: fills the dropdowns with typeid.data[i].TypeId, add a select in the last dropdown My dropdown does not fill according to its record ...
-2
votes
1answer
26 views

Jquery Ajax script request still loads even after aborting the call ( pending status)

I tried to load a script via ajax call with a timeout, if the calls fail after timeout then I abort the call, but when I inspected the network tab I can see the status of the js is still pending and ...
1
vote
1answer
67 views

Ajax POST call to PHP

I'm trying to send a string from my JS file to my PHP file with an AJAX POST call and then insert that string into my Wordpress database. I am able to send the string however I get this error message:...
1
vote
0answers
22 views

ajax to an html site is getting 200 but the response is empty

An example: this is the site I'm trying to get the HTML: http://resolved-error.com/questions/2294493/how-to-get-the-position-of-a-character-in-python and the AJAX call $.ajax({ url: href, ...
0
votes
2answers
20 views

How would I make this code pull the JSON from a url instead of having it in the script

I want to make the JSON you see in the script below get pulled from an API instead of being in the script itself. I can't figure it out for the life of me. I'm fairly new to TypeScript, so forgive me ...
0
votes
2answers
17 views

redirect dependent on ajax result using react

I would like to redirect to a component in case the data of the success has a certain value. When ajax returns the data, depending on the value of the data redirected to the Contents class that I ...
0
votes
0answers
9 views

Call IIS published web api using ajax call issue with CORS policy

I developed a sample web application using normal(.aspx) page on the client button click following function I written for the web API call function AddEmp() { var Emp = {}; Emp....

http://mssss.yulina-kosm.ru