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.

0
votes
0answers
14 views

How does the browser load content of the previous page?

I'm creating a web page with laravel and the main menu pages contents are loaded with ajax. The problem is when I go back to the previous page with the back button of the browser, the browser loads ...
0
votes
0answers
17 views

Uploading a non-pdf file using jQuery AJAX causes issues

I've been tasked with the creation of an html file uploader that has to create a POST request to our ORDS endpoint. I've come up with a solution that works well for PDF files, but when i try to ...
0
votes
0answers
14 views

Ajax call stops abrupt and goes to Http Post instead

I have a form, where throught templates the html is replaced when the user clicks a button and fills in parts of the form (I do it this way to guide the user in what he fills in first). the problem is ...
0
votes
0answers
26 views

How do I extract each bit from json frame?

I'm a beginner and don't know much about java script and PHP. I need to extract data i.e single bit from JSON frame received and accordingly update that each bit in my HTML webpage table.What function ...
0
votes
1answer
13 views

Does IBM Watson provide support for all the locations?

I wanted to use IBM Watson so does it provide support for all the locations? In their docs they have mentioned it does not provide support for all the locations. All locations might not support ...
0
votes
1answer
14 views

How to show loading animation for set period of time upon AJAX request

I've run into this problem where my ajax request processes too fast to show my loading icon, I'd just like it to run through for a second or so, how would I be able to achieve this? HTML: <img ...
-2
votes
0answers
11 views

Increase the number of people watching live video facebook

I have a question? How can I watch live stream video via token or cookie ? And if I can't use it, what should I do to increase the number of viewers when I live. thank you
0
votes
0answers
23 views

Laravel massive upload of data with csv

My problem is when I'm uploading data using CSV with 25k rows it takes more than 30 minutes to finish. so I open another tab to browse my page but then I can't load my page until I finish my upload. ...
0
votes
2answers
32 views

error when trying to search data with multiselect in CI

I'm new in CI. In my Views Page, I have a search box that uses multiselect. So I can choose some data and search is based on the data that I choose. But when I click button Show Data there is error ...
0
votes
0answers
13 views

Load Records on Select box When doing dynamic multiple adding

We apply the concept ' load records on select box'. It is only impact for the single row. After apply the multiple dynamic insert data, it failed to do. How can we ensure it is also impact in multiple ...
0
votes
2answers
18 views

Node.js read multipart/form-data POST

Im passing a file to node.js with AJAX. the file is passed as a Base64 string and I pass it using multipart/form-data. The AJAX part work flawlessly, but I need to have said string stored on a ...
0
votes
0answers
18 views

How to update quantity in a WooCommerce mini cart via AJAX?

I’m working on a project in which my goal is to replace the /cart page of a WooCommerce WordPress site with the “Mini Cart” feature included in WooCommerce. I’ve updated the Mini Cart to show the ...
2
votes
0answers
24 views

Add Progress Bar in HTML Upload Form, PHP with Javascript or Ajax

I have some code from my website for upload form used in html to upload files using PHP. The form is working perfectly but it doesn't show a progress bar. I've tried to add a progress bar in the same ...
0
votes
2answers
22 views

How to pass an array of “FormData” via ajax and access in Laravel controller

I am attempting to send multiple forms data as an array by ajax to a Larave controller. Javascript Code: var array =[]; array .push(formdata 1); array .push(formdata 2); . . . array .push(formdata n)...
2
votes
0answers
16 views

ng-view does not load pages

I am developing a app that presents page which in turn will present 1 of 2 other pages based on sql query results. The primary page will not display so that I can select 1 of the other 2 pages I've ...
0
votes
0answers
40 views

Jquery .click function for getting subcat of id element

I try to build a car search plugin, with 3 category levels. Like: 1 row = Maincat, 2 row = Subcat, 3 row = Subsubcat... Here is an example of what i want to do: https://www.aez-wheels.com/...
0
votes
1answer
14 views

Pass data (JSON) from class C # to JS- ASPX

I have a webforms in which I am passing data and I convert it to JSON in the following way: protected void enviarDatos_Click(object sender, EventArgs e) { string nombre = ...
0
votes
0answers
23 views

Ajax-loaded parts in php mvc

I am creating a sort of mvc (or mvc inspired as some would say) "framework", mainly for learning purposes. The issue i am having is in terms of the logic of how things should work in regards to ...
1
vote
1answer
32 views

Dropdown search list needs to have a html form with a submit button

I have this dropdown list that shows the name of different conferences. I can select a certain conference, but as I select the conference, I want to be able to click the submit button so I can get a ...
0
votes
1answer
13 views

Jump/Reload to same page from Ajax success function on razor view in MVC

Here is my Ajax call, I am calling an API that updates the database and I want page to be reloaded on success function. $("#Pendingbookings").on("click", ".AcceptBooking", function () { ...
1
vote
1answer
21 views

Web scrape website with dropdown menu that changes website dynamically (onchange)

So I'm trying to scrape census data from a website that changes dynamically when a county is selected from the drop down menu. It looks like this: <select id="cat_id_select_GEO" onchange="...
3
votes
3answers
33 views

parameter not send in ajax request

I want to call the action method(AddCompare) using an Ajax request at the View, My problem is that the parameter sent to AddCompare Action always has zero value, While the parameter value in the ...
-8
votes
0answers
38 views

js function doesn't function on the first onclick [on hold]

I am trying to call the js function from onclick button. This is the .js code This is the html code I use: <button class="button_aud" id="stopButton" alt="5" onclick="return voice.send(this, <...
-3
votes
1answer
22 views

Removing response from AJAX call

I'm currently getting a response from an AJAX call, the response is added to the inner HTML of an ID, is it possible to create a function which only removes this response? function get_chat(name){ ...
0
votes
0answers
10 views

Problem parsing json response in ajax function using Selectize.js

I'm trying to build a combobox with an autocomplete functionality for my c# mvc web application. Doing some research i found out Selectize.js is a good option to accomplish this task. According to the ...
0
votes
0answers
19 views

Can I download .zip file to the browser using ajax?

I'm using spring boot as my backend and I need to download .zip file to the browser which is in a remote server. Can I do it using ajax or is there any other method to download .zip file to the ...
-3
votes
1answer
25 views

fetch from database and display in input fields

I have a 7 check-boxes(monday,tuesday,wed,thur,friday,sat,sunday) and each of these tag i am having start and end time tag. Down below you can see the picture of the design Now in database there is ...
0
votes
1answer
32 views

Sorting by price using ajax and php

Ive created a product filtering page using ajax and php for my realestate website. Im now trying to add the option to order the results by price but i cant seem to add this last part of sql code to ...
-1
votes
0answers
15 views

Why is Wordpress reloading when using Ajax in comments?

I am using this cool snippet on Github: https://github.com/JonMasterson/WordPress-Post-Like-System Working: clicking on like for posts. Not working: clicking on like for comments. When clicking on ...
0
votes
3answers
19 views

$.each not looping through all the object coming in ajax response

I am getting 3 objects from an AJAX response in console.log(). However, only one data is being displayed as an output in the website. I have tried using $.each with the response coming from AJAX but ...
0
votes
0answers
10 views

Popover content not getting displayed through variable

I'm trying to implement a popover on hover on a table where the popover displays notes for the current item I'm hovering on. The code makes an ajax call to get the data and display it on the popover ...
0
votes
0answers
10 views

How to load MS-SQL data in Bootstrap Modal Body using AJAX?

I'm working on a php CRUD application. I'm done coding for the Add part of it and it's working properly. Now I'm stuck at getting the data from sql database into the edit modal to update it further ...
0
votes
1answer
26 views

PHP datatables / ajax : <td> in data

I need to update an old project - it has its own backend and does deliver row data as an array which gets displayed as a standard html table. The last attribute in the row array has an "editing ...
0
votes
0answers
9 views

why is fetch/ajax not working in a ruby rails app on mobile

i have a rails app that am using fetch to send data to my database, function like(x, y){ fetch('/post_likes', { method: 'POST', body: JSON.stringify({post_id: x, ...
0
votes
0answers
4 views

How to call apex.server.process without passing in any variables

I have a simple straightforward ajax process that clear an APEX collection and I want to call it using apex.server.process form my javascript code. I tried the following: apex.server.process("...
0
votes
0answers
11 views

The ajax website didn't return the json when using postman, even if I gave it the same form data and request headers

I want to grab the news of my school's website. Before I write the code, I did some test with postman. The website of my school I found the data that I want is returned by the file named ...
0
votes
1answer
46 views

Why is AJAX call ignored?

I don't know why the process ignores my AJAX call. It simply jumps from console.log("1"); to console.log("2");. Can someone explain to me what is going wrong? render: function() { let view = this; ...
0
votes
0answers
28 views

Jquery animations with Ajax post to php script

I am trying to get my jQuery to work with CSS animations/class changes and working with an ajax post for this logon forum. I am having trouble reworking the JQuery animation script and incorporating ...
0
votes
0answers
42 views

Why does string with special characters behaves differently in GET and POST methods?

By using jQuery, I am trying to save my string array in backend and following is my approach. 1.Using jQuery ajax sending array. var tagTexts = $(ul li.select2-selection__choice") ...
-1
votes
0answers
14 views

How to create a mySQL table with 2 users for a login and chat program

1) Create a MySQL database with the following table and add 2 users for testing: CREATE TABLE `tbl_users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(50) NOT NULL DEFAULT '', `...
0
votes
0answers
8 views

Adding check box in laravel datatable each row using ajax

//I was trying to add a checkbox datatable each row. I was doing this code but an instant of the checkbox, the code is display. //ajax in laravel $('#compliance_list').DataTable({ '...
0
votes
1answer
13 views

Whether or not to use new url parameter in jquery 1.5 ajax

I notice from http://api.jquery.com/jQuery.ajax/#jQuery-ajax-url-settings that jquery v1.5 onwards allows us to use either jQuery.ajax( url [, settings ] ) or just jQuery.ajax( [ settings ] ) and ...
0
votes
1answer
25 views

How can I return a generated excel file to download when link_to remote: true?

I need to download a generated excel file in rails. When the user click on link a excel file begins to be generated a formatted correctly in the backend and return as download file. When I set remote:...
0
votes
0answers
51 views

Delete a record on clicking multiple checkbox

I want to delete a record which is selected in the checkbox and also deleted a whole record as well. This is the tab where user can select checkbox for select all. <button type="checkbox" id="...
-1
votes
0answers
23 views

Unable to write data in to .json file

I have JSON file named form.json { "name": "John", "email": "john@example.com" } $(document).ready(function() { /* bind to the submit event on the form */ $('#registerform').submit(function(...
0
votes
0answers
8 views

Freeze web page while throbber running

enter image description hereI want to freeze my web form modal dialog or the whole web page while web form submission progressing. I tried to call other class with throbber class but it didn't work. ...
0
votes
0answers
15 views

Getting null response to Recaptcha V3 with ajax

I'm having a problem with getting a problem when submitting captcha v3 to ajax. I get a null response to Google. I have tried multiple tutorials but I think it does not fix to ajax request. I think ...
0
votes
1answer
13 views

How to get the API to test locally the server after docker-compose up?

I want to test the server for AJAX request before pushing my code. I am running a docker server using the command docker-compose -f docker-compose-withdb.yml up. But I don't know what's the API I have ...
0
votes
0answers
8 views

ajax loaded html-entities in select option

I am loading some select options via ajax. That works fine. But if they contain html entities they are not encoded correctly. html: <select name="selectid1" id="selectid1"></select> &...
0
votes
0answers
25 views

How to send the data on external api?

I want to send the data on external api and receive on the page. Actually I am new on this for sending the data as a JSON format to the external api. Here is my code- <input type="hidden" name="...

http://mssss.yulina-kosm.ru