Questions tagged [ajax]
AJAX (Asynchronous JavaScript and XML) is a technique for creating interactive website user interfaces without the traditional web page refresh or reload. It uses asynchronous data exchange between client and server to update displayed information and respond to user interactions seamlessly. Include additional tags for programming languages, libraries, frameworks, web browsers, protocols and other environmental information.
77,455
questions with no upvoted or accepted answers
21
votes
2
answers
3k
views
Post form via ajax and get a form object in play framework java
I am using play framework 2.3.8 java and using ajax to submit a form but I am not able to get the Form object from that request.My problem is explained below.
I have a Model
@Entity
public class ...
19
votes
2
answers
5k
views
Post JSON ajax request with cors not working in IE10/Edge
Background:- I created a WCF service hosted in my local system IIS. Service exposes GET/POST method and cross domain enabled and can be accessed using https too. To make it accessible, self signed ...
18
votes
5
answers
1k
views
long-poll jQuery.ajax() fails to callback after phone sleeps?
My web app uses the 'long poll' method to keep up to date with the latest data from my server. The server only responds when it has new data, which can be many minutes apart. (It is a heating control ...
15
votes
0
answers
8k
views
Equivalent of Fetch 'no-cors' mode in XHR or Ajax libraries?
Is there a way to write fetch {mode: 'no-cors'} in an existing (and most browsers supported) HTTP request? As an example, I would like to know if it's possible to translate this:
fetch(url, { mode: '...
15
votes
0
answers
7k
views
Intercept Ajax calls in UIWebview - iOS
I have a UIWebView in my application. The website I am loading uses Ajax for making service calls.
I want to intercept Ajax calls made by the web content inside the UIWebview.
Is there anyway this ...
15
votes
0
answers
539
views
best_in_place ":nil" function does not work in AJAX inserted partial
I have a list of records on my page. I submit a form remotely via AJAX and the new record is appended to the list. All best_in_place features immediately work apart from the :nil option. This doesn't ...
14
votes
1
answer
2k
views
Is there a way to trigger scroll event with HtmlUnit or is it not possible at all?
I am currently learning HtmlUnit in order to scrape websites. Everything went well and smooth until I encountered a dynamic page (as an example, I am using Pinterest website) on which elements are ...
14
votes
3
answers
1k
views
input validation not working on asp.net mvc 4 model sent as JSON
I have a model and a form in the view. I have a simple field of string which is called description. I'm able to insert scripts like: <script>alert('xss')</script> to that field.
I can see ...
13
votes
1
answer
8k
views
Fetch API increase timeout
I want to increase the timeout (say to 10 mins) of the fetch API for one of my PATCH request.
So far I only found a way how to decrease it with here with AbortController
Fetch API request timeout?
Is ...
13
votes
1
answer
755
views
Aquery ajax request seems not starting in android
I think the code that I build for getting data from the server in JSON is not starting. In the logcat there is no text from "log.v". Also, the code that I made seems not good with the try-catch all ...
13
votes
1
answer
1k
views
wicket 6.0.0-beta2 Updating content of DataTable when submitting a form with AjaxButton
I want to change the content of a DataTable depending on the content of a form (think of it as a searchbar functionality). I used to do that in wicket 1.5.x but I can not seem to make it work in ...
13
votes
2
answers
5k
views
crawl dynamic web page using htmlunit
I am crawling data using HtmlUnit from a dynamic webpage, which uses infinite scrolling to fetch data dynamically, just like facebook's newsfeed. I used the following sentence to simulate the ...
13
votes
1
answer
6k
views
Occasional ajax response error { readyState=0, status=0, statusText="error"} using jquery
I have run into a problem with the AJAX response using jquery (and coldfusion serverside). Sometimes it works and sometimes it doesn't. When I test the serverside component calling it directly - it ...
12
votes
1
answer
626
views
Ruby on Rails Gon Gem vs. cookies or regular AJAX request
I've been programming on Ruby on Rails for a while now, and to be able to easily access data from my controllers in my javascript code, as a beginner I came across the Gon Gem. It solves the problem ...
11
votes
1
answer
4k
views
How to prevent element is detached from the DOM errors?
We have a timing problem with cypress/jsf and two PrimeFaces-Autocompletes. Our input of facility depends on the selected element. When an element is selected an ajax request is sent and the facility ...