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
12 views

Laravel not getting all request data

i want to pass select2 multiple select values to database using ajax in my laravel project. before using ajax i passed that values using get request, all values are shows as url parameters but when it ...
0
votes
1answer
20 views

how to display list data in select 2 jquery and find data

I have an array of data that has been made json and then I want to display it in select, then I can find the data according to input this is my controller $response = $this->GET(config('constant....
1
vote
0answers
11 views

C# Using Ajax To Get Data From Backend Once Signed Into Azure AD

I'm building an application using asp .net core 3.1 with Azure Single Sign On feature. My issue is when I deploy the application on the Azure, I can sign in no worries, however when I use Ajax to talk ...
0
votes
0answers
20 views

Run HTTP API on a HTTPS PHP site [closed]

I have a php site which is HTTPS, I have been given a HTTP API endpoint to run, I cannot run it anymore, it was working before but the method I used was a curl but through a SSL page. I tried to run ...
0
votes
0answers
13 views

Ajax xhr.upload.onprogress printing wrong values for loaded and total

Im trying to build a webform to upload files to my s3 bucket via the AWS lamda and the apigateway services. The upload is working fine and I need a progress bar to be added to the form to show the ...
0
votes
3answers
44 views

i am trying to pass parameter to data through ajax

I am trying to pass value through an ajax json array but value of catergory variable is not getting in controller action var category = $('#category').val(); var url = $('#ajax_action_search').val(); ...
0
votes
0answers
22 views

How to get the file uploading progress status in ajax call?

I am uploading the multiple files through ajax, where i need to keep a progress bar. I am able to get the progress complete status only after all the process done, so i need to keep the progress bar ...
-1
votes
1answer
43 views

Is it possible to move the image by $_POST not $_FILES?

Here is my piece of code. process.php $image = $_POST['image']; index.php <script> function save(){ var image = document.getElementById('image').files[0].name; $.ajax({ type: "POST",...
0
votes
1answer
21 views

MySQL loop inside Datatables column

In my Datatables grid, I load MySQL data with a server-side PHP script. I need to loop inside column. For example my datatables currently (select from tb order): //product table | id | ...
0
votes
0answers
10 views

AJAX Calendar script

I'm building a multiple calendar with PHP and AJAX. I'm wondering how to make the script work like as following: -select the dropdown for a selection (e.g. Public Agenda, Private Agenda, Test Agenda)....
0
votes
0answers
19 views

Dynamically load WordPress post content into DIV using HTML select, query, and AJAX

I am trying to figure out how to use WordPress and AJAX to display content (title and ACF fields) from a single post object in a page template using a HTML <select> input with no button or ...
0
votes
0answers
18 views

Where do the xhr parameters reside?

This sound like pretty silly question (even to me) but since this is all very far from my area of competence (if any...), I have to ask those who know more: I was trying to help someone to scrape ...
0
votes
0answers
19 views

php ajax file upload offline work correct but in online server it does not work? [closed]

php ajax file upload offline work correct but in online server it does not work? this is upload.php file, help me to find the problem it is more argent, i have checked extension and every thing but i ...
0
votes
1answer
39 views

Display JSON Data from server using jquery/ajax

I have what I assume is a simple problem. But I am completely knew to AJAX and have been searching around and havent found anything I can find applicable. I am fetching data from a route in my Flask ...
0
votes
1answer
16 views

Get File Name From FileStreamResult When Using Ajax/Axios?

I have in my asp.net core api controller return new FileStreamResult(excel, "application/ms-excel") { FileDownloadName = filename }; I am doing an ajax request to get ...
0
votes
1answer
22 views

How to retrieve data in php sent over AJAX post call?

Basically I am trying to send the data using ajax post call to php. I am getting response success and I can see the data in my console which I have sent as well on Network Form Data in Headers. But on ...
0
votes
0answers
8 views

How can i dynamically update the graph using Django-Ajax-Snowflake?

I'm trying to update the graph dynamically which gets values from the table and whenever the user changes/enters any value it should reflect in the graph automatically without having a refresh button. ...
-1
votes
1answer
19 views

PHP Hide button [closed]

how can i hide this background of the button? 1 <-- IMAGE OF THE BACKGROUND <button type="submit" name="submit" value="submit"><img src="https://cdn.discordapp.com/attachments/...
1
vote
0answers
15 views

File upload using jquery/ajax for REST API

I was trying to upload file to a remote server using REST api by ajax/jquery with the following script, but it returns 400 error with a Bad request. I have tested the end point with curl, which is ...
0
votes
0answers
15 views

How to pass a value back from Java controller to Thymeleaf front-end?

I am building an application that when the user selects a value from a select tag, then the user is prompted with another select tag with corresponding data. I achieve this by grabbing the data from ...
0
votes
2answers
21 views

How to fix the 'Missing required request header. Must specify one of: origin,x-requested-with' Ajax Error

I'm trying to run an ajax call from my local machine to an external URL using the CORS anywhere url prepended to the actual url/endpoint. However, it's resulting in the 'Missing required request ...
0
votes
0answers
7 views

Cannot Read Property 'call' Leaflet Search

I am trying to build a search bar that will zoom to the location of the point within my geoserver. Whenever i search a value within my search bar i get this error: Uncaught TypeError: Cannot read ...
0
votes
1answer
28 views

Cannot hit WebAPI method from ajax but can hit it from postman in asp.net

Action // POST: api/UserAPIJson [HttpPost] public void Post(User user) { if (ModelState.IsValid) { string json = JsonConvert.SerializeObject(user); //write string to file ...
0
votes
0answers
19 views

Is calling the database with a web method multiple times better than calling database once to get all data? [closed]

I'm working on an web forms application where I will be using a drop-down list, full of customer names. Eventually I will do some search/filtering with this drop-down however I'm trying to understand ...
0
votes
0answers
9 views

AJAX function finish on readyState==1

Hi I'm having a problem similar to the one posted here, but if I'm not mistaken I did wrote all of the command lines function getList(){ //get form values var prd = document.getElementById("prd")....
-1
votes
0answers
6 views

My video stream refreshes when PAN-TILT buttons are clicked in html page (Flask-html) . Dont want video portion to refresh

I stream a video and operate pan-tilt through buttons. As a result values are POSTed to flask which is required but at time of doing so my page refreshes and video stream goes off . What i require is ...
-1
votes
0answers
5 views

jqGrid Drag 'n Drop in table with subgrid

I've two jqGrid and I'm able to drag items from second table to first one. First table has subgrid enable. When i drag an item from second table to it, information in first field of dragged row is ...
0
votes
0answers
11 views

How to send a post request with javascript that contains JSON body with token from URL Parameter

I am trying to send a post request to update a form on users' email address that contains this { "token": "token-from-url-param" } as the JSON body, at the moment the code looks like this $(...
0
votes
0answers
17 views

CSP Content Security Policy Ajax calls blocked

I'm using NWebSec nuget package in my MVC core 2.2 application If i run this code my Ajax calls are blocked Any idea; //CSP Content Security Policy app.UseCsp(options => options ...
0
votes
1answer
34 views

How to transfer this into codeigniter framework?

Everthing is working I've tested it, my only problem is that how to transfer into Codeigniter.. please someone help and explain if can.. I have to add this on my school project but in Codeigniter ...
0
votes
0answers
35 views

PHP dynamic pages without refresh [closed]

Is there an easy way for a seamless navigation through a website with ajax navigation together with URL changes (also when accessing directly the URL)... Ideally I would like to use something without ...
0
votes
0answers
5 views

Learning AJAX scope (saving ajax result into global variable)

I am learning js, going to jquery now, so I apologize for the question. I have followed many similar questions here in stack, but I am still getting undesired result. here is my trouble: my global ...
0
votes
0answers
15 views

Display a content in browser from my Django rest framework on my BotUI

I'm working on a simple demo on botui. I am trying to fetch information from my API. i used the xmlHttpRequest var loadsmth, botui= new BotUI('stars-bot'), API = 'http://127.0.0.1:8000/...
0
votes
0answers
25 views

What is the best way to made multiple sync ajax request

I convert xlsx to json and send the lines to backend trought ajax request. The excel has 5k rows, I performed the requests using concatMap. There is another way to do this ? I readed the browsers ...
-2
votes
0answers
36 views

Web/php/javascript … Something faster than a database? [closed]

Total noob here. For having multiple users/clients accessing and editing the same variables, what is the best solution? An initial attempt for me will be making a simple chat, for that it could be ...
1
vote
2answers
48 views

Execute a python function without response - Django [duplicate]

I'm working with Django in a project and I need to execute some functions depending on what user's want to do. If this action has to return and show new values I know how to do it, but when I just ...
1
vote
0answers
42 views

FormData() not working as expected - Laravel/Vue file upload

I'm trying to set up a multiple file upload with VueJS & Laravel. I'm running into an issue where, when using FormData() and adding a file, 2 spaces gets used up. Consider the following VueJS ...
0
votes
2answers
38 views

I have a loop and want to add the class to the last 4 elements with ajax

I am wanting to select the last 4 elements using nth-child. Is there a way of doing this? function(data){ var output; var html = ""; $.each(data.items, ...
-1
votes
0answers
23 views

DataTable load only single page at a time

I want to create a datatable to display details of customers. I don't want to load all data at once, instead load a single page at once. Ajax is used to get data from server and server returns a ...
0
votes
1answer
22 views

DIsplay Ajax data in Highchart js

Please i have this ajax code working fine but my problem is how to display it on highchart. This is the ajax code function ajaxGetRadiologyRecord() { let urlPath = 'http://' + window.location....
3
votes
1answer
55 views

Axios/ Ajax posting data issue

Im trying to learn react so Im rebuilding the magento2 minicart in react, all seems to be working well apart from Im having issues submitting the form data if the quantity changes - Im trying to ...
0
votes
3answers
24 views

problem in passing parameters in $(document).ready(function() ajax url in Laravel

My route is Route::get('staff/staffcardview/{dept}',['as' => 'StaffCardView', 'uses' => 'Staff\[email protected]']); and i want to pass parameter to this url from document.ready ...
0
votes
1answer
47 views

Ajax does not upload files when using session

I want to upload the file with Ajax in DRF, but I fail! var form = new FormData(); form.append("files[1]file", "/home/mshzsh/Pictures/photo.jpg"); var settings = { "async": true, "crossDomain": ...
0
votes
1answer
35 views

Loading a new page without refreshing the current page

here's my code.... okay.html {% extends "sch/base.html" %} {% load staticfiles %} {% block content %} <div class="row" id="ada"> <form action="" method="post"> {% csrf_token %} ...
0
votes
1answer
29 views

Parsing Python Script using AJAX request and showing data on same page in Flask

I am trying to process a Python script using an AJAX Request. I am rendering my webpage on Flask. My solution was working on my local machine when I was not using Flask but I have started facing ...
0
votes
1answer
28 views

Text loading based on selected ID using Ajax technique is not working

I am trying to load the textbox data based on Selected ID using Ajax technique and update the row of the db through a small PHP program. Due to lack of knowledge I could not implement the Ajax part. ...
0
votes
0answers
45 views

How to count total amount from columns and live table edit and amount change without page reload in Laravel

How to count total amount from columns and live table edit and amount change without page reload in Laravel? <div class="table-responsive"> <table class="ui celled table" id="...
0
votes
1answer
37 views

Is it possible to get the domain or ip address if the request came from?

I am trying to put security in the controller , by checking the domain or ip address from the request and compare it to the domain that is save in the database. But I'm having a problem on how to get ...
0
votes
1answer
28 views

How to show 8 videos on PC screen and 4 videos on Mobile screen [closed]

I have 8 videos shown on my computer but I want it to only show 4 when working on mobile devices.
0
votes
0answers
43 views

Why does the page go blank?

I'm coding an Adblocker for a specific website and it seems that whenever you go to Movie or TV series section, the page in some cases goes blank. I'm not sure what the problem is, I tried waiting ...