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
-
3
votes1
answer1030
viewsHow to load picture graphicImage primefaces into different component
My idea at first is this: I have a component p:dialog header="Foto Funcionário" widgetVar="dlg" resizable="false", where I capture my image and crop, as soon as this image is cropped, I would like…
-
3
votes2
answers356
viewsAsync parameter of jQuery.ajax is obsolete, what now?
I’m developing a Javascript application and need to queue for requests ajax, and I need one to be done after the other, because they manipulate some variables of my scope. The parameter async of…
-
3
votes1
answer474
viewsCan you tell the response time of an AJAX request with jQuery?
I wanted to know if there is a function that returns the AJAX request time in microseconds, because I need to get this value for the project I am developing.
-
3
votes0
answers112
viewsDifference between Get and Post AJAX
In AJAX, I have the functions $.post and $.get. I’ve always used the $.post, and never had a problem. But what’s the difference between them? In what situations I should use each? I searched here in…
-
3
votes1
answer85
viewsHow to repeat a failed ajax query?
The problem is that sometimes the consultation runs out of time or even gives error, so I want to automate in these cases. $.ajax({ type: "GET", url: 'inserindodados.prisma', data:…
-
3
votes1
answer605
viewsWhat is the difference between long Lling and normal ajax?
I’m trying to understand more about long Polling to "manipulate" a site in real time, I’ve seen some videos and I’m thinking so far: Let’s say I have an old date that’s in sql and I do an echo on…
-
3
votes2
answers585
viewsHow to cause an Xmlhttprequest error?
I would like to understand in which cases the readyState will be equal to 4 and the status will be different from 200 and the difference that for the event onerror: xhr.onload = function (e) { if…
-
3
votes1
answer485
viewsSearch the bank in real time
How can I do in PHP so that when the user type in the search field it already appears the database records. For example, assuming that it is a register of cities, the user type "Field", should…
-
3
votes1
answer143
viewsAjax saving dynamically
I am trying to save the registration done, but when I open my modal, he does not understand that I am clicking on save and therefore he does not send the data, follow the code I am facing problems:…
-
3
votes1
answer1912
viewsReturning HTML Fragment with Ajax
There is the possibility to return only one fragment of a page’s code with the AJAX JQuery? What I want to do is: I have a page where through the POST send the ID with the AJAX, and I am the body of…
-
3
votes1
answer345
viewsRequest field fill in url
Good afternoon... I need your help. I have a page in html+php which is basically a field that queries a mysql database with ajax and returns the result as soon as the field is filled with the…
-
3
votes1
answer162
viewsAjax Address Search with PHP
I have a form with the client list. When selecting the customer, I want you to automatically fill in the address, number, neighborhood and city fields. I have Ajax, but I don’t know how to elaborate…
-
3
votes2
answers1100
viewsUser limit in a PHP application
Hello, I developed a php system controlled by Sessions.. I found that it is possible to limit the maximum number of users online on the system via apache(httpd.conf). Is there any function (ajax,…
-
3
votes1
answer8559
viewsWhat is the ajax error function for?
I have some doubts, what is the use of ajax error? $.ajax({ url: 'ws/controller/sys_controller.php?id=4', type: 'post', data: dados, success: function (data) { /*$("#loading").hide();…
-
3
votes3
answers1746
viewsHow to list a json object to generate a txt file and download that file via ajax request?
I have an ajax request that sends a large object. That in the browser console is seen like this: Object {data: Array[4936], paging: Object} Follow the request code: $.ajax({ type: "POST", url:…
-
3
votes1
answer715
viewsData returned in Ajax + PHP request
I have this Ajax that takes the return of a PHP script. For this, I gave an "echo" in php and it returned me the data. If I want to work with more than one data, do I have to create an ajax for each…
-
3
votes1
answer266
viewsCorrect View Creation on MVC using Ajax
I have a page that performs maintaining a budget. Below I present a briefing of entities public partial class Orcamento { public int IdPedidoCompra { get; set; } public int IdCliente { get; set; }…
-
3
votes1
answer77
viewsAjax and php protection
Using ajax in my case can bring some security flaw? If so, how do I resolve it? javascript: $(function() { if($('#login_submit').length !== 0) { $('#login_submit').on('click', function() {…
-
3
votes1
answer308
viewsHow to use Html.Beginform with Javascript/Ajax
I have a View to generate Report on my system and I am using a Beginform. The idea is when I give the Ubmit to my Gridrelatorium, which is another View, press inside one that I have inside in the…
-
3
votes1
answer1120
viewsHow to identify the type of request sent to the server?
I don’t want my ajax.php page to display anything when accessed by the user’s browser. AJAX.PHP <? $nome = $_POST['nome']; $email = $_POST['email']; $senha = $_POST['senha']; if (!$nome) {echo…
-
3
votes1
answer415
viewsModal bootstrap MVC 5
I’m trying to use the modal of Bootstrap, but I can’t make the window open in modal form with the style of the page, instead it opens as a page with no style and using the whole browser frame.…
-
3
votes2
answers625
viewsRead an XML in another domain
is it possible to read an xml in another domain? ex: http://mfmradio.fr/winradio/prog10.xml?player201507291645 did the code: <script type="text/javascript"> var i; var timer,timeout2;…
-
3
votes2
answers719
viewsRefresh ajax mvc core page
I need to close a modal, and refresh the page, I’m doing this way: function closeModal() { $('#myModal').modal('hide'); location.reload(); } But the first time it doesn’t work, and then it works…
-
3
votes1
answer192
viewsAJAX request works on all browsers except Firefox
I have tried to make an upload system with AJAX and works perfectly in Chrome, however it does not work in firefox. I used the function $.ajax() jquery. Have any suggestions of what might be? I have…
-
3
votes1
answer51
viewsProblems with set_include_path()
I find it difficult to make a single configuration file (responsible for __autoload) can be used either by the files that are in the root, or by the ones that are in the folder admin. The root…
-
3
votes1
answer650
viewsJavascript with ajax, function return. Why doesn’t it work?
I made a code Javascript to enable some buttons and inputs in a FORM, according to the user’s permission, stored in a SESSION. Had done so: function showEditButtons() { if ( verUserPermissions(8)…
-
3
votes1
answer141
viewsHow to find an HTML component in the DOM after using the . append() function?
I’m making a request to my server with $.get of Jquery, and populating my table with the method below : $.get(/*[[@{/empregados/salariosMinimos.json}]]*/ 'consultaEstadoSalario', {uf : uf,data :…
-
3
votes1
answer108
viewsIs there any way to hide Ajax in a web application?
Is there any way to hide AJAX in a web application? To what extent is AJAX safe? Because analyzing the code you can know the address of the server, the file, the function, and even the response of…
-
3
votes2
answers1716
viewsDisplays items as selected from a select (HTML)
Good afternoon! I have a database with two tables, products and menus, the two tables are indexed through the Cdcardapio field. I created an html select element that contains all the registered…
-
3
votes1
answer148
viewsController dependency injection with Ajax
Good afternoon, I am using ASP.NET MVC 5 with Windsor and when an Ajax request calls a method in the controller, the error informing that the controller has unsatisfied dependencies. How do I work…
c# asp.net-mvc ajax dependency-injection castle-windsorasked 9 years, 2 months ago Alan Almeida 633 -
3
votes1
answer3316
viewsValidate CPF with date of birth
On the site R7 in the part of e-mail registration a validation is made in the number of the CPF that is related to the date of birth how to do something similar in my form? I took a look at the code…
-
3
votes2
answers1281
viewsReturn JSON to PHP
I’m making a registration system, where the ZIP code search should appear as soon as the field changes. But the AJAX return is not working. How do I return JSON to PHP? PS: ZIP search is offline…
-
3
votes2
answers920
viewsHow to do an Xmlhttprequest to send values to the page itself?
What do I have: I created several buttons through PHP and to distinguish them I used the variable $botoes_criados. So I have the variable value $botoes_criados in PHP that is passed to a button as…
-
3
votes2
answers566
views400 (Bad Request) when sending array to Spring Controller using AJAX
POST http://localhost:7001/app/workflow/execute/ 400 (Bad Request) I’m getting this error when trying to send 2 array’s to my Spring controller, but I’m getting this error, tried some solutions I…
-
3
votes1
answer1251
viewsReload or Refresh Datatables
Good morning, I have a Datatables that is loaded by a WHILE coming from a QUERY in which I mount at the beginning of my page by PHP. My problem is when I need to insert or edit some information that…
-
3
votes1
answer267
viewsJSF page displaying Object reference value
good night. I have a JSF page called simulated.xhtml on which implement a filter to generate the simulated and I’m also trying to display results from the database that have already been filtered on…
-
3
votes1
answer192
viewsAuthenticate to Sharepoint online via Rest api + Angularjs
I’m trying to create an application using Visual Studio 2015, Cordova + Angularjs. My need today is to authenticate in Sharepoint and consume Web Services. I’ve tried several authentication…
-
3
votes2
answers1590
viewsHow to make a progress bar?
I have a page that is loaded via jQuery load. Inside this page is an SQL query that takes on average 8 seconds. I’d like to put some indication that the query is loading, could be a progress bar,…
-
3
votes0
answers37
viewsRefresh in a <li>
I have a content inside a <li> I need to refresh her at the event onclick. But within this li there is a function in php. How would that be possible?…
-
3
votes2
answers233
viewsAfter ajax action, data is not saved in mysql database
I am capturing latitude and longitude through the Geolocation plugin of Cordova, and after that I store it in two variables and then, through an ajax request, I transfer these values to a PHP script…
-
3
votes1
answer64
viewsHow to delete a term inserted in a form using jQuery?
The code below is part of a function that uses a search term in a text field to extract images from the Flickr site. After typing the word to do the search, it inserts the text below the field, just…
-
3
votes1
answer480
viewsRecover Mysql data and save to a vector
Rephrasing the question.. I have a Mysql database, inside it contains a table called map, inside the table map I have the fields idmapa (auto_increment), lat (which stores the latitude of a map…
-
3
votes1
answer128
viewsValidate by js with for each
On this screen I need to do a validation so that in each record, when the record has permission, in case it is marked bring me the record marked with it every time I edit (mark or deselect the…
-
3
votes1
answer1051
viewsCreate fields dynamically and set in model
I am developing a register, where I have my fields according to my model: public class Autor { [Key] public int IdAutor { get; set; } public string Nome { get; set; } public DateTime DataNascimento…
-
3
votes1
answer857
viewsPlace header in ajax get method
Good afternoon, I have the following piece of code: function getData(){ var url = "http://teste.com"; var data = ""; $.get(url, function(response){ serverResponse = response; for(i in…
-
3
votes4
answers3189
viewsAccess JSON with multiple JS objects
I have the following JSON [ { "id": 1, "nome": "Matheus Almeida Siccenna", "cpf": null, "matricula": { "id": 555, "empresa": 1, "unidade": 0, "descricaoUnidade": null, "curso": 1, "descricaoCurso":…
-
3
votes1
answer2230
viewsUpload AJAX select multiple files
This script below selects to UPLOAD only one file. I did several searches and couldn’t find anything I could implement so I could select multiple files. <script type="text/javascript" >…
-
3
votes2
answers374
viewsSelect and view data with Ajax
I got the following ajax: var id = $('#idCliente').val(); $.ajax( { url:"/Administrar/chamadas/ajax/endereco/" + id, dataType : 'json', success:function(result) {…
-
3
votes1
answer177
viewsDisabled field does not pass to $_POST
I have problems with the field that I disable if one of the options is checked, but when the field is as desabled it does not pass values to PHP. I would like to know how to check whether the value…
-
3
votes1
answer62
viewsItem class in list always initializes active
I used as a reference for solving the problem: angular ng-repeat Skip an item if it Matches Expression. Next, we know that Bootstrap has the class active to mark with a different color of the…