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

Why does my code keep sending ajax calls using the smartwizard plugin?

I have a plugin that creates a form on my website which has steps to it. This is my code in which I am making the call: $(document).ready(function(){ $('#smartwizard').smartWizard({ lang: {...
0
votes
0answers
22 views

how to make an ajax request keep running even after I open different page

I am trying to request a php file(with python call inside the php file) using ajax call when I click a button in a form. As my php file takes too much time to execute i am opening a different page and ...
0
votes
2answers
26 views

Avoid refreshing page at pagination Laravel

I want to avoid refreshing page when I switch the pages using pagination from Laravel because when I switch the page 1 to page 2, I'm redirected to parent page. How can I avoid reloading page when I ...
0
votes
0answers
14 views

Bootstrap Model form loading the complete Home\Index again inside after MVC post

so my bootstrap model-form is loaded like this in razor : using (Ajax.BeginForm("Create", "Home", new AjaxOptions() { HttpMethod = "POST", UpdateTargetId = "frmRes" })) { ...
0
votes
0answers
12 views

I want WordPress gravity form upload file validation before submission

Actually I want a pre-validation that when a user uploads a wrong file extension rather than a pdf file in WordPress gravity form than before submitting the form it should show the error that the file ...
0
votes
0answers
21 views

How can I call onchange function in checkboxes using a user array and axio get in react js?

I am trying to get a user array in checkboxes this user array is having its elements from JSON placeholder. I want to display these values in checkboxes with onchange property, but somehow it displays ...
0
votes
0answers
12 views

Partial not found when attempting to render it from an Ajax call in Rails app

Rails 5.2.3 I have the following Ajax call: function renderSalesDayDashboard(date_target) { $.ajax({ type: "POST", url: "sales_day_dashboard", data: JSON.stringify({ "date_target"...
0
votes
2answers
30 views

How to display data in html form using ajaxcall

I have data like this. js file var numbers = 1234 Html file. <label>Name</label> <input type="text" class="form-control" name="name" id = "name"> <label>Id</label> &...
0
votes
0answers
39 views

How can I create a pop-up box that I populate with data each time I call it?

I was wondering, what is the best way to create a pop-up box that has a header/footer that is fixed, and then I pass the data to (maybe a function?) it and it populates the box. I have a lot of ...
0
votes
3answers
49 views

Laravel ajax AJAX error: Internal Server Error 500

I have used this in my html part: <meta name="csrf-token" content="{{ csrf_token() }}" /> In script I have done: $(document).ready(function() { $(document).on('change','#user_id', ...
0
votes
0answers
15 views

Generating JSON progress events from Django file upload [duplicate]

I'd like to display an upload status bar in my GUI when uploading a (large) file to my Django backend. My problem is that the 'onprogress' event appears only once when the upload is finished (both in ...
0
votes
0answers
13 views

Keep the selected content inside DIV even though it changes with AJAX insertionmode.replace?

I have a people search function combined with AJAX and insertionmode.replace that returns the results to DIV, now when I select people from the list using checkbox it's not keep my selected after I ...
0
votes
0answers
27 views

MVC C# Ajax with toggle switches

I'm trying to add toggle-able settings into an MVC project and I'm having issues setting it up - I've bodged it a little bit for now to get the data back into the controller and that updates fine. ...
0
votes
0answers
17 views

Error net :: ERR_CONNECTION_RESET in upload of files with AJAX request. Any solution?

I am using a file type input to create a directory upload page. Directory upload is done through a POST AJAX request. The problem is that when I try to upload a very large directory, it fails ...
0
votes
0answers
9 views

Making controller and view using AJAX in JSP Spring MVC

I want to make the following thing. User enters some information into the first field, click submit button and gets what's he is writing with some transformations on the second field. Without ...
0
votes
0answers
7 views

Drupal 8 dialog modal with dynamic params

I have some ECK forms that will be loaded in a modal when clicking on them. <a class="use-ajax" data-dialog-type="modal" data-dialog-options='{"width":750}' href="/admin/content/events/...
0
votes
1answer
15 views

Submit simple form remotely on the basis of a click event

I am trying to create a todo app in which the checkbox is created using the simple form and this needs to be submitted remotely when the checkbox is clicked. I am using the onchange() function but the ...
0
votes
1answer
21 views

How to update input field from bootstrap modal if field is not empty?

I have made a form with dynamic table, and when the form is filled up, on button click, values from all fields will be inserted in one field with comma separated. The problem is that I don't know how ...
0
votes
1answer
28 views

Wordpress custom PHP AJAX call returns 400 Bad Request and does not execute

I am trying to build a simple cookie banner that a user can close. Once the PHP sessions and cookies have been set (by accepting the cookies), the banner should disappear. However I keep getting a 400 ...
0
votes
0answers
46 views

How to filter Ajax Data in Drop Down

I have Data from an Ajax Drop Down list that I can't adjust. However, I only want to display dropdown elements that have a certain string part in its name ("Delivery"). I can't adjust the Ajax list ...
0
votes
2answers
37 views

Passing data from view to controller using Ajax in Laravel

I am trying to pass two variables to my controller using ajax. There are no errors but the data is null when I get it in the controller. Web.php Route::get('/donate/select-card', '[email protected]
0
votes
0answers
9 views

Woocommerce Ajax Search Form Edit and Override To Enable Search Result By Products Tags

The Ajax Search Result of this theme( The Hanger ) is based on Title and Category. But I also want the search result based on Product Tags. These are the codes in ajax-search.php. How can I override ...
-5
votes
0answers
22 views

I want to capture image from webcam and store it to database using laravel 6.*

I need the whole code and the details how to do this. Like I need the code and the functions with the javascript to store and send the image to controller
0
votes
0answers
13 views

pass swap list box data to controller

I am using swap list box and got the selected item to an array, but I can't send it to the controller using jQuery ajax method? Pass swap list box data to controller <script> This code ...
0
votes
0answers
31 views

back-end python flask code is not returning negative response to front-end ajax code, Its only returning success response

I am trying to work on this below code on getting Success and Failure Ajax response from the back-end Python Flask code. The back-end code is returning only success ajax response and only the front-...
0
votes
0answers
20 views

Best practice to ajax call for multiple form in WordPress

In the WordPress site, I have multiple forms and for that, I need to write multiple jQuery/Ajax call like below: To update Account settings; $("#account_form").on('submit', function(){ ...
2
votes
3answers
42 views

How can i get multiple select options in react js.?

So basically iam new in react and iam trying to create multiple select option using axio get method i have a problem that how can i add multiple select option in this file iam trying to do this with ...
0
votes
0answers
10 views

There is some problem occuring in my code …please tell me what was that?

i was trying to use load more functionality with the help of this code but i was failed. please tell me how can i use ajax load more button in this data. $id_question = $id; $question = ...
2
votes
2answers
45 views

Get data from select2 plugin to ajax

I have multiple select fields with multiple select, implemented with select2 latest plugin. I want to send selected data with ajax to the Laravel controller. how can I do this? In the preview section ...
0
votes
1answer
23 views

How can i serialize Django View object?

I want to serialize my context data, but i get this error: TypeError: < tests.views.ExamView object at 0x7f8e18873668 > is not JSON serializable Here is my code: from django.template.loader ...
0
votes
0answers
17 views

how to store Polymorphic relationship

I want to make a dependent dropdown list, there are 2 Models that should list their data and save them in the Account table.i made their relation in model correctly. in the first select option, I put "...
0
votes
2answers
44 views

How to change data in DataTable

I have a DataTable (https://datatables.net) and I want to do a few things and they all kinda have to do with refreshing the table itself. Here is my code: let statusList = getStatusList(); function ...
0
votes
3answers
28 views

$_File not sending when sending in ajax

There are a lot of question about this subject already in stackexchange. I have try all of them but I just can't get it upload a file. HTML <form id="getjs"> <input type="file" name=...
0
votes
1answer
28 views

WordPress ajax request keeps returning 0 (wp_die() included)

I am building a WordPress plugin(my first) and currently i am build the admin menu but i can't seem to be able to add some ajax functionality with my custom database. Right now it always returns 0 ...
1
vote
1answer
40 views

Ajax POST data not appearing in modal

I have a table that's populated by JSON data. In the last column you can open up a modal that corresponds to each row and you can add a comment in an input box---doing so will update that modal. In ...
-1
votes
2answers
42 views

How to pass data/value to controller by using query string in AJAX

The "pid" value is working fine by "qty" value is showing as "0" at controller. I'm 100% sure that the problem is with the query string. Here are the ajax and jquery code: $(".cartquantity").change(...
0
votes
0answers
10 views

CakePHP give response to Ajax post call from a different app

I am trying to connect two apps, where one app creates an account for the second app. I'm currently doing it through an HTML form post request. <body> <form action="https://example.com/...
0
votes
0answers
9 views

Returning file from flask to ajax [duplicate]

I am trying to call a flask function /download which will pass a value and produce a zip file and then send it to the client to download. I have got it working using html forms: <form class="row" ...
0
votes
0answers
11 views

Remove or block $.ajax - url:"global-functions.php command

I need some help with one template. I need to remove or block action/function (global-functions.php) because some option on the template does not work. You can see the js code below. $("#...
-1
votes
0answers
42 views

How can i run javascript on multiple external HTML DIV's

I have one html page with multiple divs, each div has its own ajax script to load the content every 3000 milliseconds: <html> <div class="div1"> </div> <div class="div2"> <...
0
votes
1answer
16 views

Trouble extracting multiple HTML DOM elements for AJAX with Django

I'm trying to implement a feature on a web app where I have a menu of pizzas, and the price listed on each card (feature taken from Bootstrap) dynamically updates depending on the style (regular/...
0
votes
0answers
14 views

Get an array of colned div after submit

I've a button which clone a div that have 2 dropdown menus and an input tag..I want to get all the data in this div and the cloned one in an array which its objects contain the data in each div of ...
0
votes
2answers
34 views

How to make an AJAX request and respond with laravel?

My method returns nothing when I do a vardump. I need to get the resource and show a modal one but I don't get a response from the AJAXhave no method return AJAX $.ajax({ type: "POST", url: "/...
0
votes
1answer
31 views

How to get ajax data array result in code?

I have some code that I need to insert an array from an Ajax call in, but I am having trouble figuring out how to do that. Here is the code I am trying to work with: let result = getResult(); let ...
-4
votes
0answers
22 views

Using jquery variable in php script for Select Statement [on hold]

Trying to use this to use a jquery variable so that I can use it to fetch data from the table, need help with this <script type='text/javascript'> $(window).load(function(){ $("body").click(...
0
votes
0answers
23 views

Ajax Request - Asp Net Core - List of List

When trying to send a List List of strings, a list of list skipped, I am using the POST method, the other objects sent normally, only one list not received. arrayFilter = [ 0: (3) ["codigo", "...
-1
votes
1answer
28 views

How can i make a curl request in laravel without leaving my current page

I am in a Laravel view with an input field and a button, so I want to make a request to an external API <input type="text" class="form-control" name="licence" id="licence" /> <button type="...
-1
votes
0answers
20 views

Get ajax values from the search filter of a php scraping website

I am scraping to an external website. My goal is to obtain the data from a table shown on the external website. The data is shown according to the values of a combobox (when choosing a combobox option,...
0
votes
1answer
32 views

only Delete option is not working PHP CRUD

I have been working on basic PHP CRUD. I am using PHP, AJAX, MySQL based CRUD. I have features like Add / Update / Delete / GetResults / Search. Everything is working fine except for the Delete ...
0
votes
1answer
38 views

Only first form is posted by AJAX

On my website, I want to have multiple forms for voting on different posts. I've implemented AJAX for this and it's working fine but always only with the first form. I know that I've should change ...