Category "ajax"

Debugging ajax flow

I am really confused on a program that I made. A few days ago, it was working just fine, but now I am having problems with initializing it. I think I've figured

result of my js calculation is not stored in mysql

Good day, I experimented with a simple JS math calculation. this calculation works as expected, but additionally I wanted to store the math calculation in a dat

admin-ajax.php - the server responded with a status of 500 (Internal Server Error)

I've drawn a complete blank with this if anyone can help. I have migrated a website from from a NGINX server to Apache. The installation works fine on NGINX but

Increasing Ajax request timeout in ExtJs

Is there one single configuration in ExtJs library to increase Ajax request timeout? I have tried following two configurations but neither helped: Ext.overrid

get json array from servlet using ajax

I have to json array in my servlet. I want to fetch json array value and print in to jsp page using ajax. below is code JSONArray htags = new JSONArray();

Response to preflight request doesn't pass access control check

I'm getting this error using ngResource to call a REST API on Amazon Web Services: XMLHttpRequest cannot load http://server.apiurl.com:8000/s/login?login=faceb

The usage of `header("Content-type:application/json");`

I just created an JQuery ajax function to retrieve some json-encoded data from PHP, here's my code : file name : bank.php $('form').on('submit', function(){

CodeIgniter 4: Like and Dislike Functionality

I have implemented the following like/dislike code inspired by Code with AWA. EDIT I'm using CodeIgniter now if that changes anything. I have updated my questio

Autocomplete shows only message N results are available, use up and down arrow keys to navigate. instead show list

my problem is clear. I'm using jquery autocomplete and i don't know why it shows me only the message: 9 results are available, use up and down arrow keys to n

To set the value to a (textbox) server control using jquery ajax

In the below mentioned code, I am able to set the value attained from ajax call only if I am using the HTML controls(button and text). If I am using asp server

Azure Web App does not load .json file

I have a problem with an Azure Web App, as it does not load a .json file that is located on the server. The app is running fine until it needs to load the data

Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)

so basically the task is quite simple, but I didn't find any workable solution for my problem. I have a huge upload script on my website (at the moment localhos

Getting "Unreachable code no-unreachable" in ReactJS

I am new to create GET requests in React. I am trying to fetch media_id from Instagram Content when someone enters the url in the input field. The interesting t

Open a popup box after receiving result from ajax

i have a ajax code that works properly and gives the desired result. I want to modify this code and want that when a reply is received from ajax a popup/modal b

Laravel csrf token mismatch for ajax POST Request

I am trying to delete data from database via ajax. HTML: @foreach($a as $lis) //some code <a href="#" class="delteadd" id="{{$lis['id']}}">Delete<

AJAX call fails with SyntaxError: Unexpected end of JSON input

Sorry for making a post with a generic error but I just can't figure this out! I have an ajax call that for now sends an empty object and just returns json_enc

appending array to FormData and send via AJAX

I'm using ajax to submit a multipart form with array, text fields and files. I append each VAR to the main data as so var attachments = document.getElementByI

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

Here is the deal: This area is a preparation for a dynamic chart where I'm opening a new select input when my first select input is selected. With its value(fro

ajax returns page source, not the message

All the answers I saw here or elsewhere on Google were with jquery. This is not jquery. I send an ajax string to a php file. The php, among other things, form

Getting Stored JSON data after Ajax is Complete

I am currently doing an exercise on Jquery, Ajax and JSON. I have found a few ways to get data, but now I would like to store this data from JSON into a variabl