Questions tagged [ajax]
AJAX (Asynchronous Javascript And XML) is a popular technique for creating interactive websites.
                184 questions
            
            
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                2k
            
            views
        
        
            
            
            
        ASP.NET Core - Using Partial Views inside a Modal window for my Add/Edit/View Details screens?
                    I've been developing .NET projects for the past 3 years, and on my recent web .NET projects, I've been using Partial Views for all the screens that contain Forms for Add/Update/Delete or other ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                486
            
            views
        
        
            
            
        Websockets vs Ajax for live search
                    For building a simplistic live search system, I trying to decide whether to use Websockets or Ajax. Implementation wise, for every letter the user types (or maybe every 0.5 seconds), a database query ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                147
            
            views
        
        
            
            
        How could I optimize an AJAX-based site by avoiding unnecessary/duplicate file-reads for each AJAX call?
                    I'm an IT guy (read: not a professional programmer) and have made an internal monitoring webtool which allows users to search for printers on our print servers. Based on the filtering criteria given, ...
                
            
       
        
            
                -1
            
            votes
        
        
            
                2
            
            answers
        
        
            
                144
            
            views
        
        
            
            
        How to GET multiple values from a database while keeping the request asynchronous?
                    This is a very small-scale project that I am coding myself, so I am able to build all of the resources however I like. I've done research on this site for help on this issue and can't find anything ...
                
            
       
        
            
                -2
            
            votes
        
        
            
                3
            
            answers
        
        
            
                3k
            
            views
        
        
            
            
        REST API design: Best practice for POST to create an object to a list
                    I have an API that return list of Employee. This API will have an offset and limit for pagination purpose.
On the frontend, I use Single-Page Framework (Vue/Angular/React..). This SPA have a Employee ...
                
            
       
        
            
                2
            
            votes
        
        
            
                2
            
            answers
        
        
            
                121
            
            views
        
        
            
            
        Server-side script to handle many near-simultaneous incoming XMLHttpRequests
                    I am building my own analytics platform, which I want to work like this... 
A JS script in each of my webpages collects data about users' clicking behaviours and sends that data to a PHP (or other ...
                
            
       
        
            
                -1
            
            votes
        
        
            
                1
            
            answer
        
        
            
                288
            
            views
        
        
            
            
        What sort of data limit would make sense for pulling down all data vs autocomplete/pagination via ajax?
                    Imagine a page with an autocomplete textbox on it, to get Customer.
I am wondering what sort of limit for record size makes sense in this day and age regarding whether all the customers should be ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                2k
            
            views
        
        
            
            
            
        Handling an empty path variable request
                    I have a scenario where I can take a student Id as input via a part variable and return some data back as JSON objects where JavaScript handles the response as a part of AJAX call.
Suppose the method ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                71
            
            views
        
        
            
        An approach to send the contents of a file on the server to the client in real-time
                    I have a relatively simple front in good ol' JQuery, that makes a POST Request to a Flask Python web server, that runs a Python script using the subprocess module. Here's the whole route for ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                471
            
            views
        
        
            
            
        Resolving request congestion at browser by using socket as "fast lane", any consequence?
                    I have received multiple reports from users of a Web-based GIS application we have rolled out one to two year ago, complaining the application becomes unstable/unresponsive. After a brief ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                3k
            
            views
        
        
            
            
        PHP MVC controllers using ajax
                    I'm learning to use the MVC pattern to design my PHP's software. I always use ajax to send requests to my controllers so often I've a code structure like this:
<?php
if(isset($_POST['action']) &...
                
            
       
        
            
                1
            
            vote
        
        
            
                2
            
            answers
        
        
            
                1k
            
            views
        
        
            
            
            
        WebSockets vs Ajax call for scheduled event?
                    Intro
I have been weighing the pros and cons of using WebSockets vs. an Ajax call for an event which will happen every x number of seconds (in this case 5). I'll start by explaining the scenario.
...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                2k
            
            views
        
        
            
            
            
        Chat application - write to file and then save in database
                    I have followed this approach that is described here to implement a simple chat application: https://code.tutsplus.com/tutorials/how-to-create-a-simple-web-based-chat-application--net-5931
I'm ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                199
            
            views
        
        
            
            
            
        Advantages/Disadvantages disallowing non ajax login requests
                    On the project I'm working on, I noticed that on login there is a check in backend which checks if the request is an ajax reques (checks 'X-Requested-With: XMLHttpRequest') or not. If the request is ...
                
            
       
        
            
                -4
            
            votes
        
        
            
                1
            
            answer
        
        
            
                3k
            
            views
        
        
            
            
        What happens if multiple users send http requests to the server concurrently? [closed]
                    So basically, it is a web server that is hosting a php project. The project accepts some inputs from the users and send them to the server via ajax for validation each time the check button is clicked....
                
            
       
         
         
         
         
        