Most voted "ajax" questions
AJAX (Asynchronous Javascript and XML) is a technique for creating interactive websites uniformly through asynchronous data exchange between client and server. AJAX facilitates server communication or partial page updates without a traditional page update.
Learn more…3,397 questions
Sort by count of
-
4
votes2
answers825
viewsBlock PHP page to only display data if it is an AJAX request
I have a file .php which loads and displays all news from my database, I use this file to load the news dynamically with AJAX. So far so good, the user can go normally on the page index.html and see…
-
4
votes1
answer589
viewsJSON cut when sending by post with AJAX
I’m using Angular to register in the database, I take the data of my inputs put into an object and turn into a JSON and send by post, but it turns out that my JSON is cut and I don’t have a clue…
-
4
votes1
answer1406
viewsC# Receiving Serialized Objects on a Webmethod
Good afternoon, I am passing a list of JS objects to C#, to a Webmethod, as function parameter, what kind of parameters this should be? I created a class to receive the data: public class…
-
4
votes1
answer707
viewsPass values from a JSON to html via Jquery
I am trying to take the JSON data from Twitch and manipulate it in html, in case I wanted to put together a simple list with the online channels, using Alert it shows the channels but I thought to…
-
4
votes2
answers10690
viewsDisplay a Loader while processing ajax
It can show a message like: "Loading..." while my ajax does the operation? AJAX $.ajax({ url: url, type: 'GET', dataType: 'json', success: function(data) { console.log("sucesso"); }, error:…
-
4
votes2
answers1086
viewsPossible conflict between script
Good people, I use basically 4 scripts in my project. I have two pages, one where the posts are listed and the other where you view the posts. In the current browsing model, by clicking on any posts…
-
4
votes3
answers451
viewsPHP execution via Ajax jQuery
I am placing some instructions inside the same PHP file that are executed according to the variable value send received, at least that’s what I thought. This code has two of these instructions, one…
-
4
votes3
answers8129
viewsLoading in ajax
How do I add a loading to my ajax? This loading would begin when ajax was started and finished when the result returned. my code: $.ajax({ url: url + "login/ajaxLogin", type: "POST", data:…
-
4
votes2
answers12072
viewsTake the value of an input with javascript
I’m making a dynamic table where the data comes from the database, and the user has the possibility to edit this data. This data coming from the bank is inside <div>. Next to these dice is a…
-
4
votes2
answers756
viewssetInterval 5 seconds locking browser
I am developing applications using jQuery/Ajax and it has to refresh page 5 in 5 seconds, it works. But if I start using the application the browser starts crashing because of the code, how to fix…
-
4
votes1
answer315
viewsHow to use Javascript JSON to recover C result?
I learned that JSON is used to communicate between systems. So it is possible to communicate with C, recovering variables through a JSON generated by the code and sending through the Javascript AJAX…
-
4
votes3
answers1823
viewsHow to implement spinner loanding in Angularjs?
I’m trying to implement spinner loanding in my project in Engineering, it’s been a while! the spinner should run whenever a request is executed. What library do I use?
-
4
votes1
answer1018
viewsHow to remove an already selected item from an upload Multiple
I have this example and would like to remove an item from my selection. However it is not removing properly, has a problem with the index number, how could it solve this?…
-
4
votes1
answer1812
viewsHow to consume an "asmx" Webservice via Jquery Ajax
I created a button that calls the search method Ajax to consume a Web Service Asxm. Because the Ajax does not consume the Web Service? <asp:Button ID="btnPesquisar" runat="server"…
-
4
votes0
answers162
viewsHow does Ajax paging work?
I’m using a script to make the pagination through Ajax, workable assíncrona, the situation made me curious, because until then I had only used pagination php+mysql, never php+mysql+ajax. If my bank…
-
4
votes5
answers6237
views -
4
votes1
answer1116
viewshow to pass data to a php function by ajax url?
People try to give me a force around here, I’ve searched and I can’t find an answer that answers me. Come on! I am working with php classes, I would like to pass data from a form through ajax.…
-
4
votes1
answer409
viewsStreamline Ajax Jquery Autocomplete with json data
I want to make suggestions dynamically with this API. How to streamline the suggestion file by listing data from the mysql database? Download the DEMO:…
-
4
votes2
answers16723
viewsPicking values with names in JSON
I got this one JSON: {"nome_rede":"lucasl","nome":"Lucas Lima","imagem":"http:\/\/intranet.supersoft.com.br\/novo\/usuarios\/fotos\/lucasl.jpg"} How do I catch him using AJAX? So far my code is like…
-
4
votes1
answer8622
viewsHow do I get in the Input file?
I need to send several attachments via Phpmailer and am using jQuery to get the value of input file, now I need to pick up the file path to be able to send by email, but when I take the path it…
-
4
votes2
answers70
views$. GET Jquery Dùvida
I have the method: RepoApi.prototype.getContributors = function() { var returnList = []; $.get(this.url).done(function(response) { console.log(response); returnList = response;…
-
4
votes1
answer1107
viewsHow to handle Ajax requests with business error?
I searched the Internet and I still haven’t found an answer mature enough for a problem. I have an Ajax request and taking out errors released by the application as a possible connection drop, for…
-
4
votes2
answers2030
viewsAbort ajax request
I have a page where an ajax event grid is loaded. I also have on this screen a menu of actions. Once accessed, the page is loaded (including the action menu), and the events grid, being heavier is…
-
4
votes1
answer892
viewsAjax request
I am loading the menu, from the system I am developing, through a request via ajax using jQuery, but the formatting of the menu is not as expected. My request via jQuery <script…
-
4
votes2
answers1833
viewsDynamically execute model class method from an ajax request to the controller
I am creating a feature in my system for dynamic component reloading, so that queries are executed that are allocated in model layer classes, through AJAX requests. However, since I use the MVC…
-
4
votes1
answer604
viewsAJAX request error - ASP. Net and Jquery
I have an aspx file where I created a script with an AJAX call to execute the method populaGridMembros on the table gwMembros, the method is working perfectly and returning a string in JSON format,…
-
4
votes4
answers819
viewsShow post with ajax
I’m starting to log into jQuery only I need someone to write an opinion on my website and it will appear right below without having to update the page. wanted a person when inserting anything in the…
-
4
votes1
answer2826
viewsHow to update a DIV with Ajax/JS?
I am in the development of a page, but I am completely secular in the matter of JS... The site has the div with the ID #content, and inside it a refresh button. How can I make it so when someone…
-
4
votes1
answer541
viewsUsing ajax serialize in Laravel
What I need When the user clicks on the submit button the ajax will call a method of a class to check if the typed text already exists and in a table. It returns the result, if it is false it lets…
-
4
votes0
answers71
viewsSend image with ajax
I am trying to receive a PHP image sent through AJAX, but I was not successful. Follow the code: jQuery: $("#envmsg").submit(function() { $("#btn-enviarmsg").button("loading");…
-
4
votes1
answer84
viewsHow to know how much of the content was downloaded in an Ajax request?
I need to do that little animation, like on Youtube, of the progress bar that appears at the top. How do I know how much content has been downloaded, to have a basis for the progress bar? I didn’t…
-
4
votes1
answer4489
viewsHow to make an ajax autocomplete?
I’m trying to implement an ajax autocomplete, where I do a database search and show the input options, but I’m not able to identify where I’m wrong. Follows the code: <div class="row troca">…
-
4
votes1
answer1005
viewsAjax Synchronous Xmlhttprequest
What should I do in this situation. I have a script where I have to disable in AJAX function the option: async : false . I do this because it returns a variable wrong, previous to the last one that…
-
4
votes2
answers359
viewsHow to use @Delete annotation in Vraptor + AJAX?
In my Vraptor project I am trying to delete a record from a list without the page being reloaded. By the book I am following, AJAX is used so that the record removed "suma" without the whole page…
-
4
votes1
answer454
viewsReturn Partialview with validations for a Modal ASP MVC 4
I have an Index screen, where is the table of registered people, on the same screen I have a new button that calls a Modal(boostrap) this way: <a href="@Url.Action("Add", "Pessoa", new { area =…
-
4
votes2
answers1079
viewsEvent loading when conducting queries in AJAX with ASP.NET MVC
I’d like to know how to best place a Waiting to identify that the data of a survey is being processed, in case I have a table and can perform a search filter, when the request is sent I would like…
-
4
votes2
answers1807
viewsWhat is the use of cache = false in ajax?
What exactly does the Ajax code when I write: cache: false, in an ajax request?
-
4
votes1
answer176
viewsPass variables with same name to PHP
I can’t catch the return of the fields in PHP, when I enter more than 01 in quantity.... someone can help me? $(function() { var input = $('<input name="cp1" id="cp1" type="text" />'); var…
-
4
votes1
answer211
viewsAjax locks the computer
Analyze the code below function update(){ $.ajax({ url : 'http://localhost/sistema', type : 'get', dataType : 'json', success : function( data ){ console.log('Mostrar dados: '+.data.dado); } }) }…
-
4
votes1
answer421
viewsMETABOX with state/city dropdown in Front-End using Cmb2 Plugin
I have a little problem with 2 dropdowns selectors, so far so good, because I’m using the CMB2 plugin and a METABOX selector code, and everything is ok in the Wordpress Back-End, however, when I…
-
4
votes1
answer394
viewswindow.open() does not load the page
I am trying to open a link in a new window/tab but when it opens it does not load. Controller: public static Result loadCreateArtigo(){ return ok(request().host()+request().path()); } Javascript:…
-
4
votes1
answer502
viewsLoading external "pages" via AJAX. Will Google index?
Some talking to use #!, others say to use History API and others say that the Google already runs Javascript. I’m doing a project whose pages are loaded into a container leading. All link is an…
-
4
votes1
answer225
viewsProblem with slidebox and ng-repeat in Ionic framework
I’m trying to create the slidebox of the Ionic framework with data returned from the database and the slide is not appearing on the screen. I’ve looked for the solution to this in many places but…
-
4
votes3
answers3438
viewsHow to receive a pdf file via ajax?
I am using this method to return a PDF file. It works normal if I call this action directly via URL: public ActionResult GerarProva(int idEpo, int numero, bool existeProvaGerada) { try { var…
-
4
votes1
answer928
viewsHow to show table in return JSON?
Accurate, when returning from an insert pass parameter to a page and load it into a div specific, I tried something like this: var formData = new FormData(this); $.ajax({ url: formURL, type: 'POST',…
-
4
votes2
answers535
viewsHow to access Action in another Controller via Ajax?
I have an Aspnet MVC project structured as follows: Projeto L Areas L Area1 L Controllers L MeuControllerArea1Controller.cs Views Area2 L Controllers L MeuControllerArea2Controller.cs Views L…
-
4
votes1
answer8275
viewsModal + form + values (bootstrap and javascript)
From the following link http://getbootstrap.com/javascript/#live-demo I created the following modal https://github.com/rg3915/front_end/blob/master/javascript/modal_form.html In the modal I fill a…
-
4
votes1
answer1056
viewsAjax POST with jQuery and Node.js Express always returning 404: Not Found
I created the route below to accept POST requests, but calls via AJAX to this route are always returning error 404: Not Found. /* Arquivo: integracoes.js */ var express = require('express'); var…
-
4
votes3
answers346
views.serialize() only lines marked with checkbox
I need to serialize() only on the lines selected with the checkbox <form id='form'> <table class='table table-bordered'> <thead> <tr> <th>Código</th>…
-
4
votes1
answer2809
viewsPOST via Ajax with Django
Based on https://godjango.com/18-basic-ajax/ I am trying to make a post via Ajax using Django. Then I created a project on Github https://github.com/rg3915/front-dj-test #urls.py…