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

Datatable is not displaying

I have here a on click event which display the table data inside the jquery confirm, but datatable wont display and it is not working even the display only of datatable, it only displays the normal ...
0
votes
0answers
6 views

codeigniter ajax json validator with form Form Validation

I am trying to make ajax form validation work in codeigniter. if you have the same title don't add The data from the form always reports as successful. Even if the result is negative.Is there a ...
2
votes
1answer
24 views

PHP AJAX HTML: changing unique table data in foreach loop

I'm new to PHP and Ajax. I am trying to create a table of object data where I can select the displayed data based on a <select><option>... form. I have a PHTML template which looks like ...
0
votes
0answers
14 views

Notice : Undefined index in PHP with post when trying to delete [duplicate]

basically this doesn't work: $oTexteinfo = new Texteinfo($_POST['idTexteInfo']); even though i can see that there's an ID so this is where i click to get the id a href='#' data-s=".$_GET['s']." data-...
1
vote
0answers
6 views

Rails XHR causes error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

I am working on a rails app and implementing a form that uploads images. I am using the XMLHttpRequest object to submit the form. When I navigate to the page and attempt to submit the form I received ...
0
votes
0answers
8 views

attaching html from ajax call to shadow DOM

I am trying to make a custom shadow dom element get its HTML from an HTML file stored in a components folder. I can get the HTML just fine like this $.get( "/component/miniPlayer.html", function( ...
0
votes
0answers
15 views

Load Sensor Values from Flask App using AJAX

I want to use ajax to refresh data values on a flask webserver on my raspberry pi. I have a button I click and it reloads the entire page to refresh the sensor values, so to be more efficient I want ...
0
votes
0answers
6 views

Phonegap Ajax request use the wrong URL

I try to write an App with Phonegap. I want to make a ajax request from a php file. At the start, the user have to input a IP adress. I want to use this IP adress for a ajax request, but on a test at ...
0
votes
0answers
13 views

My offset seems to be working but pagination is showing the same listings on every page

I'm making a page that lists items from a SQL database. My pagination uses inView to load the next page when an image is in view. For some reason the first page (Page 1) keeps loading after the ...
0
votes
0answers
4 views

How to get value of team member field that is a classification in sitefinity 12 web services using odata and javascript

I am using ajax to query web services in sitefinity I can successfully pull a teammembers data with this apiURL: localhost/api/lawyerswebservice/teammembers?$expand=RelatedTeam,PrimaryImage; However ...
0
votes
1answer
45 views

How to execute for all possible combinations?

I've got this code below that generates a random 5-character code. For example AU330, UEEHB, 2EH8D HJ1LM. function makeid(length) { var result = '' var characters = '...
0
votes
0answers
11 views

Ajax Data Call with or without slash in Codeigniter getting error

suppose my URL is example.com/controller/method/ when I use this ajax code it makes URL like example.com/controller/method/method which not getting data. function getProductList() { var ...
0
votes
0answers
16 views

Most efficient way to post multiple forms

I have a project that requires posting of multiple forms linked to the contents of a "parent" form. Forms are not nested, the parent/child relationship describes the server side relationship. ...
0
votes
0answers
27 views

Sending a post request with python to extract youtube comments from json

I am trying a to build a comment scraper for YouTube comments. I already tried to build a scraper with selenium by opening a headless browser and scrolling down, opening comment responses and then ...
0
votes
1answer
44 views

SQL SET not always working with jQuery ajax and PHP [closed]

I have an html table that gets its values from a mySQL database. Whenever data is changed in the html table it updates it in the database through jQuery ajax and php. Each row has a delete button that ...
0
votes
0answers
15 views

Block XMLHTTP request vanilla javascript

I am working on a scenario, where i need to cancel third party library request based on some condition and then unblock if condition evaluates to false. Let us assume that third party URL is being ...
-1
votes
1answer
41 views

Why my ajax function isn't asynchronous and refreshes the page? [duplicate]

what i'm trying to do here is having a button on my page that alert some data without refreshing the page (the data is a password that's why i don't want it to be written in the code). My actual page ...
0
votes
1answer
21 views

Jquery Autocomplete Load Data at once ($.ajax vs $.get/$.post)

Somebody please help, really curious about this. I want autocomplete only get data source only once at page load. I've tried two ways. First, with $.ajax(GET/POST) and it was successful $.ajax(...
0
votes
0answers
38 views

Ajax “on change” doesn't fire

I have a form, which I would like to pre-populate depending on selected item in a drop down list. The HTML code: My Ajax.js looks like: $("#domain_selected").on('change', function() { $.ajax({ ...
0
votes
1answer
31 views

How to use Flutter http request when the url contain port?

I am trying to send post request to a website with port configured. http://example.com:8080/. When i send the request, it show some error http.post('example.com:8080/apps/api.php', body: {'name': '...
0
votes
1answer
20 views

How to load content from specific HTML-element of URL using AJAX with plain JavaScript?

I simply would like to replace the <main>-Element and it's content of firstPage.html ... // ... header of my 1st document ... <body> <main> The content of the 1st ...
0
votes
1answer
18 views

Problem with two send responses: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

I try to make a small 'database' where I can put some data into an input field and also make queries. For instance when I write a name into the field and click on the request button it will show the ...
0
votes
0answers
22 views

Assign result of .done promise ajax to outside variable [duplicate]

I want to return the received object when the function is completed. function getProductDetails(selectedProductId) { $.getJSON('/FieldData/GetProductDetails', { productId: selectedProductId }, ...
0
votes
1answer
31 views

Making an ajax call on beforeunload doesn't fire from selenium chromedriver?

I am binding the beforeunload event of a page to make a quick synchronous ajax call (not best practice but it is essentially a ping so we are trying it as an idea). $(window).bind('beforeunload', ...
0
votes
1answer
43 views

Format ajax success array of data

I want to format data which return from ajax request, to change the status of the buttons to disable. request is send when someone select a date from date picker. It returns array of data object ...
-2
votes
0answers
20 views

Submit a form and insert a value inside an array without refresh [closed]

How do i submit a form without refresh the page? I tried use AJAX but it just doesnt work, it seems to submit, but the page that take values from the array doesnt show anything (But it works without ...
0
votes
0answers
5 views

ajax call not working for few users in struts jsp web page

We are calling below code in jsp file.For few users drop down is loaded, but for few drop down not getting loade. Please advise on this $.ajax({ url : 'GetCategoryBasedOnDeptId', ...
0
votes
0answers
21 views

table displayed by ajax not accessible by script in the caller page

I would like to be able to dblclick on a row/record of a mysql table to open another window for modifying the record. If 'mytable' is printed from within the php page the script see its elements and ...
0
votes
1answer
18 views

How to i write into autocomplete the json objects?

I did an autocomplete request with jquery and ajax, i requested the object, they appear into the preview tab in "network" but i got stucked at writing them into the html... $(document).ready(...
0
votes
0answers
31 views

AjaxResponseText is empty

<label><input type="radio" name="category" value="children" checked="checked"/> Children</label> <label><input type="radio" name="category" value="computers" /> Computers&...
0
votes
1answer
27 views

WP + AJAX success message

I have a multilingual website where I should show a success message after successful submission. I use ACF filed and wp_send_json_success () to report a successful send, but I get an error in the ...
0
votes
0answers
14 views

Tippy.js content miss printing

i'm using tippy.js to show tooltip and it is working fine but at the end to the tooltip "[object object]" is being printed my code is. Here is link for the screen-shot showing main problem. https://...
-2
votes
0answers
12 views

TTFB time setting on Linux

I have one Django application which I have developed on local Windows machine and deployed on Linux server. Whenever my response takes more than 180 sec to any HTTP/AJAX request then it is being ...
-2
votes
0answers
20 views

Set FPDF Variable with value from another PHP File

I'm creating a web based php application using PHP. It requires the generation of an FPDF document (File B) utilising the value of an Text Field in File A on button click. What I have tried: ...
-5
votes
1answer
49 views

how to retring the data from the database and display on webpage using ajax? [closed]

I m performing crud operation using ajax. I m inserting data in the database but I want to get the data and that data update and delete run time but my getdata method does not work?? Emploee.aspx.cs ...
1
vote
1answer
18 views

Form submission in ajax without refreshing whole page only refersh a particular div tag in ATG

This is my Form <dsp:form id="add-to-cart" action="#?productId=${prodId}" method="post"> <dsp:input bean="CartModifierFormHandler.addItemCount" value="1" type="hidden" /> ...
0
votes
0answers
30 views

Word Press custom form links

On my Word Press website, I have a section on my website where I am displaying the job categories. My only issue is that I can't seem to create custom links for any of the categories on my site. Like ...
0
votes
1answer
23 views

Execute javascript Ajax and non-ajax calls in correct order

I have a for loop that executes a function. This function, depending on a variable, executes an ajax request, or just appends to the HTML. The code looks like this: var index = 0; for (index = 0; ...
0
votes
1answer
36 views

Class not found after ajax request - October cms

For my application in october cms I'd like to be able to send a mail with the click of a button. I call the php file with an ajax request, however when the button gets clicked I get the error 'class ...
0
votes
1answer
19 views

Load ajax content when keep active tab after page reload (Bootstrap 4)

I created a page with many tabs In order not to slow down the loading of the page during the first display, I get the content of the tabs only if we click on it I then set this up to save the last ...
-1
votes
0answers
23 views

How to insert data into phpmyadmin with php and xampp in Visual Studio Code? [closed]

Currently, I'm developing a Blockchain Dapp using Visual Studio Code. This system will register the user's details such as first name, last name and origin country. Here is the code snippet: (index....
-2
votes
0answers
13 views

Getting address from user using google map autocomplete and saving it to database [closed]

I'm a newwebie and I need help with storing user address in database using php. I have a script taken from https://softauthor.com/getting-users-location-using-geolocation-geocoding-apis/ which is ...
1
vote
1answer
14 views

Parameters not passed to controller using ajax

I am trying the following code for getting subcategory from the category field that I was selected using ajax. But the value is not passed to the controller function. I tried every solution and but ...
1
vote
5answers
54 views

how to clear the form after submit it

Hi I have a website which was developed using php and it contains contact form where users submit their data. Down below is the code for contact form <div class="form"> <div id="...
0
votes
1answer
60 views

AJAX post not being sent if triggered

I am trying to get AJAX post sent via trigger click event, click event is working but AJAX request not working. $(this).find(".headermodelbtn"+text).trigger( "click" ); $(".headermodelbtn"+text)....
1
vote
1answer
26 views

Ajax Request with Image base64 shows 403 Forbidden in Laravel

I am trying to crop and upload image with croppie plugin. The code is working fine on local server, but when I upload it on live server and upload an image, the POST URL shows 403 (Forbidden). I tried ...
0
votes
0answers
42 views

I need to create edit form each row using javacript [closed]

I have edit button i each row .I am able to get the Id for each row I need to get the details respective to the id for editing. nrOfRows = response.length; for (i = 0; i < nrOfRows; i++) { ...
2
votes
2answers
49 views

How to go from one page to another page when Ajax call is on in PHP?

How to continue run ajax call after redirect to another page in PHP? How to go from one page to another page when Ajax call is on in PHP? My ajax call is performing a very complex task and it ...
-5
votes
0answers
26 views

Ajax request not going in rails [closed]

Can someone help me that what all I have to do to make ajax request in rails
1
vote
0answers
23 views

How to passed array or arraylist from servlet to jsp using ajax? [duplicate]

I am trying to pass array or list from servert code to JSP using ajax call from website. Below is my code : Servlet protected void doPost(HttpServletRequest request, HttpServletResponse response) ...