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

showDialogPopup Refresh Page after Click

I have a dialog box which displays an OK button once the process completes. I would like to refresh the page once user clicks OK. However, in my existing code, there isn't a code to handle the ...
0
votes
0answers
11 views

Why does sumbitting a form for an AJAX request using “onchange” on an html element on Rails an “Authenticity Token” error?

I am trying to trigger an AJAX request using a select element in a form. I use the "onchange" event on the select element simply to submit the form. In addition, I have submit buttons within the ...
0
votes
0answers
15 views

Autocomplete is not showing result

“I’m trying to get firstname from database as a search bar using autocomplete function and then retrieve the lastname from database using submit button Here i have created a dashboard @app.route('...
-1
votes
0answers
11 views

how to filter data from database by date on chart js?

i really need help for my college test rn. i want to add date filter to my chart based on mysql database does anyone have an idea how to code it? please guys i really need help. Here's my chart code ...
1
vote
1answer
26 views

How to change span value from a html input which has been appended using ajax call?

I have a modal which is triggered on click and modal data is added by ajax request to my php file. After the ajax call, when the modal shows,I want the span values in my modal to change ...
0
votes
1answer
28 views

dynamic content not loaded from file in AJAX code

Dynamic code not loaded up in the page. It loads only when I reload the program again Tried onload event in body. It loads the content from xml file using ajax code only after closing and running it ...
0
votes
2answers
32 views

how to exit from loop after a ajax call

i have a table and I need to bulk updation. Before I need to check one column have no null value and the values are unique.So i loop the table.But how can i exit from the loop when same values appear ...
-1
votes
1answer
41 views

Convert Base64 String to String Array

I am using request.getParameter and getting this value: [ "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAA0NDQ0ODQ4QEA4UFhMWFB4bGRkbHi0gIiAiIC1EKjIqKjIqRDxJOzc7STxsVUtLVWx9aWNpfZeHh5e+tb75+...
0
votes
1answer
15 views

Change elements css based on url multiple times without reloading page (AJAX needed)

I need to display element "theater-capacity" when user selects "theater" from a dropdown. Then show "banquet-capacity" when user selects "banquet", hiding "theater-Capacity". I'm tweaking a theme, ...
-1
votes
0answers
16 views

PHP - Headers already sent - header('Content-Type: application/json') causing problems on contact form [duplicate]

EDIT: I looked at the suggested question. I tried the answers but none of them works for me. This question is still open! I've tried to make a contact form work on my website using phpmailer. I can't ...
0
votes
1answer
25 views

Fetching data just after another fetch is complete in react hooks

I have three separate useEffect functions. One is to fetch submission records: useEffect(() => { if (props.loading_submissions != true) { props.fetchSubmissionsByReviewRound(...
0
votes
2answers
40 views

Enabling a button based on selected values

Fair warning I have super janky code. With that being said, I have my button disabled from the start, as to reduce the amount of human error that happens upon submission of my form. I need to enable ...
0
votes
2answers
25 views

Rewite fetch function in jQuery.ajax()

The current solution using fetch We currently have this function implemented and working perfectly. function setupCKConnect() { fetch('ajax/myfile.php?id=1234567') .then(response => ...
-2
votes
0answers
9 views

Download multiple PDF's from a website into folder after selecting all checkboxes for PDF's without getting 'saveas' dialog for each pdf

I need to access website with login information after which a screen appears. On that screen are listed some pdf files with checkboxes beside and also a download button. If all checkboxes are selected,...
0
votes
0answers
17 views

Rails ajax call routes to wrong controller action

I'm trying to use an ajax call to retrieve some data in Rails but it is getting routed to the wrong controller action. route get 'articles/retrieve_articles' => 'articles#retrieve_articles' ...
0
votes
1answer
22 views

How can I populate a table using ajax and php and add buttons in table rows?

I'm trying to read information from a database and put them in a table and also to include buttons on each of these rows. Besides adding the buttons, I'm having trouble getting it to work. This is my ...
-2
votes
1answer
32 views

How to send different AJAX URL if input is empty

I'm making a live search with AJAX that searches all the rows of the SQL column called number and sorts by number. But I cant figure out how to change the SQL sort to another column called wt when the ...
0
votes
0answers
9 views

Chrome decompresses gzip, but Firefox doesn't

I'm using ajax to get .gz files from my web server. I want the data uncompressed though. Chrome gets the uncompressed data, Firefox gets something strange. Here are some images of my Firefox headers ...
0
votes
0answers
4 views

Request and decompress already gzipped file from webserver

I have an already gzipped file that is stored on my Apache webserver. I request that file through Ajax. When I request the file, I want it to be served uncompressed. How can I set the headers so that ...
0
votes
0answers
8 views

How should a dialog announce dynamic content to screen reader users?

I have a <dialog> element which, when opened, requests some content from the server using AJAX. When the content returns (which of course can be any length of time depending on connection speed ...
-5
votes
1answer
27 views

NodeJS Instagram private API client in react JS [on hold]

I am facing an issue I am new in react and node js I need to use Instagram private API library but I didn't figure out how to use. I found one library: NodeJS Instagram private API client but didn't ...
0
votes
0answers
27 views

I am trying to do CORS JQuery request and am receiving an error, am I parsing the api wrong? [duplicate]

I am creating an AJAX request using cross origin. For some reason I am still receiving an error about CORS even after implementing it. It has worked perfectly already with a different API. Maybe my ...
0
votes
1answer
29 views

laravel internal Error, What is the problem?

When I try to submit the form using ajax I'm getting 500 (Internal Server Error) error. Can any one tell me what is the wrong m I doing? Here is my ajax, route, controller code. Ajax $.ajaxSetup({ ...
0
votes
0answers
19 views

How to get <access token> in every request using ajax

I'm using Caspio Bridge Database (REST API). I would like to know how can I generate a access token in my every request using AJAX. To get the access token I need: Client_ID, Client_Secret, URL_Token. ...
1
vote
0answers
38 views

How to upload files using Array index in MYSQL Database using codeigniter

Sorry if this is a noob question, i am still a newbie in codeigniter, here is my problem, i have a response, which is look like this Array([0] => Array([original_name] => avatar_img12.png [...
0
votes
0answers
19 views

print uploaded filename after ajax submit success in modal [duplicate]

I have a simple AJAX call that uploads a single file to a PHP page. I want to print the filename of the file in a modal after AJAX success. I have all of the upload and modal stuff working, I just ...
0
votes
1answer
33 views

Show mulitple images after event change using jquery

I have a mulitple input file and I will want to display the selected images in a div. I tried with this code but it just shows me the first image I try with this : function readURL(input) { ...
0
votes
0answers
16 views

How can I create a custom email sender file in Wordpress?

I created a custom contact form in JavaScript which collects data in JSON. I would like to pass it via HTTP POST to a PHP file which should format the email and just send it, but I can't find the file ...
-2
votes
1answer
24 views

Pass data to server using token (barer) using ajax , jquery, json in laravel 5.1 [on hold]

I Tried to use ajax to pass data. but don't know how to use token with ajax and jquery. How to pass data to server using ajax and jquery using token? I need to post data to server but after running ...
0
votes
2answers
18 views

Website toggling full screen mode in Chrome, after ajax load

I still fighting with one Chrome issue on my webpage. There is pagination, that loads content via ajax call: https://elody.cz/nase-nevesty When I click 2nd, 3d, .. tab in pagination. The load is ...
-3
votes
0answers
32 views

My Question is about toolset Infinite scroll that not working correctly [on hold]

For some reason when I enable infinite scroll when you get down to the bottom it swaps out the content that's already on the screen with the next content, after its done this and you scroll down ...
-1
votes
0answers
19 views

Can cookie be passed from one port to another port in development? [on hold]

My server is running at localhost:8080 port and my client application is running at 8081 port. I made a login request which is successful, received response which sets a token in my browser cookies. ...
0
votes
0answers
25 views

How to Post List of Objects through AJAX to Spring Controller?

I am trying to POST a list of forms through AJAX. $('html').on('click', '#update-cartentries', function() { var forms = $('html').find("form.updateCartForm"); alert('there are : ' + forms.length ...
0
votes
1answer
30 views

How to enable CORS from .htaccess (inside ZURB Foundation Project)

So this is the first time I build a website in Full and my own, including front-end, back-end and database. I'm using the ZURB Foundation Framework (ZURB Template) which makes the project modular ...
0
votes
1answer
34 views

Remove dropdown selection after form submission

I have a form a user fills in 10 times a day, they select an option from the dropdown then fill in the form and submit. I'm trying to find a way to remove that option once it's been submitted, or ...
0
votes
0answers
13 views

How to use Ajax-Bootstrap-Select to populate laravel select options on keyup

I want to do ajax search in order to populate multiselect options with the keyword entered by user, so on key up event. I am using https://github.com/truckingsim/Ajax-Bootstrap-Select. But I am ...
0
votes
0answers
55 views

How to set the session properly? [on hold]

I have a PHP API which returns JSON encoded data when it's called through POST or GET. Then I have a login form which needs to set the session. I send a jQuery AJAX request from my client to the API ...
2
votes
1answer
35 views

DELETE http://localhost:8000/product/[object%20Object] 500 (Internal Server Error)

I'm setting up the ajax for delete method like this and I have got some error in the link, like 500 internal server error, I've done with all tutorial and get a little bit frustration so please ...
-1
votes
1answer
25 views

Update and Delete the list items based on the selected item using ajax and jquery

The GET function for the api data works, but the delete and update doesnt work. what can be the issue? How can I target specific id for the deletion? //get data $(function GetData() { var ...
0
votes
0answers
9 views

Joomla 3. Dependent select in custom component

I make a component for Joomla 3. It has two lists "City" and "Place". How can I make the "Place" list update without reloading the page when I select "City"? <field name="cityid" type="sql" ...
2
votes
3answers
76 views

LARAVEL - Missing required parameters

hi im new to coding and ive been watching this youtube tutorial about a simple server side processing crud and datatable in laravel and im getting this error which i have no idea why im getting it. I ...
0
votes
1answer
38 views

how to change the value of the input field of the bootstrap modal

I am new to js,ajax and jquery, i am trying to update the value of the input field of the bootstrap modal but this code isn't working,please take a look and suggest the changes html/- (have to change ...
0
votes
0answers
22 views

AJAX request to a Django server stays on stalled Chrome

I have a simple django server with the Django Rest API installed. My problem is that when I make a simple query using AJAX the query stays stalled by Chrome: If I make this request disabling Chrome'...
0
votes
0answers
13 views

How by using ajax to update Label1.Text loading from database without refresh

On Page_Load MasterPage I have Label1.Text = model.GetAmountOfOrdersUpdate(); It updates on refresh. How can update Label1.Text without page refresh using javasript or ajax <script type="...
-1
votes
0answers
26 views

Sending a Json data from my html page to a php

I took a code from stackoverflow and created a "index.htm" page where it will also send a json data from html page to php here it is "test.php" When I am trying to submit the data and seeing in web ...
0
votes
1answer
40 views

How to fix 'Uncaught TypeError: Cannot read property 'length' of undefined'

Currently working on a website project for my portfolio and I've recently gotten a javascript and jquery book to help me learn this new language since I'm already familiar with HTML and CSS+Sass. The ...
3
votes
1answer
87 views

Convert JSON string to object and display as HTML table

I have a dropdown select option with onchange event which will send selected value via AJAX to my controller and then query data based on the selected value from MySQL database and return it as JSON ...
0
votes
1answer
25 views

How do I improve my php code to sorting column correctly on Datatable?

I'm trying to sort some columns on my Datatable using php code and ajax but it's not working properly. In my research i found some questions about this theme but unfortunately i didn't get the correct ...
-1
votes
0answers
6 views

Is there a way to load photos from an iCloud link into a web page?

I was messing around with a link to an iCloud album and trying to find a way to grab the images/videos from it to load them into another page. So, you end up with a dynamic page that automatically ...
1
vote
1answer
25 views

adding a href in ajax while using codeigniter and getting data from curl

I want to add a link inside AJAX and needs a html.tpl[i]['nip'] in a tag because I want to display another view that required data with the chosen nip. This is for PHP language in framework ...