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
-
1
votes0
answers271
viewsLoading large JSON file
Staff I have equipment here that provides a log on JSON which is inserts the data each 2 seconds,It provides this log for reading, the problem is that this file has log 30 days, I am using ajax to…
-
1
votes0
answers90
viewsconsume the webservice in WCF with ajax
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <form id="form1"> <div class="jumbotron"> <input type="text"…
-
1
votes1
answer103
viewsclick() does not recognize button inserted dynamically inside tr
Insert items dynamically into a table using the following function: $("#inserir-item").click(function (){ ... $("table#tb-itens tbody" ).append(retorno); } The return variable contains something…
-
1
votes1
answer1246
viewsError consuming json using ajax
I have the following return in json: { "ConsultarRegistroPorCodigoResult": { "Codigo": 2, "CodigoSetor": 1, "Login": "ednilson1", "Nome": "Ednilson", "RegistroAtivo": true, "Senha": "123456",…
-
1
votes1
answer430
viewsMethod being called several times in the change event of a p:ajax
I have a table with a p:inputText with a p:ajax inside, the same holds the event change, when I fill that inputText with a value a query and some validations are performed. The problem is that when…
-
1
votes1
answer22
viewsresult.lenght ajax error with wcf
The following script works in part: <script type="text/javascript"> function ConsUsuario(){ var value = $("#codUser").val(); $.ajax({ type: "GET", url:…
-
1
votes2
answers1121
viewsDelete record with Laravel via AJAX
I am developing an application in PHP with Laravel and I have in my Alunoscontroller and following method: public function destroy($id) { $aluno = new Aluno(); $result =…
-
1
votes0
answers100
viewsAjax/js function does not work
It follows below my code, with the function and the field. When testing does not work anything, I do not know what is wrong. I did this function to check if such a period already exists in the bank.…
-
1
votes2
answers400
viewsPass javascript parameter to a php page by a button
I need to delete a record in the database by id, I am displaying my table with the records through ajax and jquery, however I need a button that excludes by the id of the record, I have created the…
-
1
votes1
answer177
viewsAnimation during ajax request
Personal I have an ajax request, Only it is taking a little while, she only gives me the return when it is successful or not, but during the request I do not show the user how the procedure is. How…
-
1
votes3
answers373
viewsMount html structure with result of ajax array?
I would like the following structure for my page: <div id="ProdutosSeller" class="col-md-3 col-sm-6 hero-feature"> <div class="thumbnail"> <img src="imagem" alt=""> <div…
-
1
votes1
answer509
viewsGet JSON return without "result" in Ajax or return without "result" in Delphi
I am generating a JSON in Delphi with mORMot and I need to pick it up on a page to generate some graphics with Google Chart, however the Delphi return me the JSON within a result. I just mount the…
-
1
votes1
answer1659
viewsOn-demand loading
Guys I’m trying to make a charging system on demand and I don’t know anything about ajax and I don’t understand very well how it would work. I have a posting system that shows an amount of 10 posts…
-
1
votes0
answers253
viewshow to get the selected value in the combobox (h:Selectonemenu )?
<h:form> <div class="form-group"> <label>Categoria de Produto</label> <h:selectOneMenu value="#{produtoController.produto.categoriaProduto}" styleClass="form-control"…
-
1
votes0
answers88
viewsAJAX request returning error 415
I am new to WEB development and I have a small problem I created a Java Webservice with only one test method that sums two values received by request parameters. follow it: import…
-
1
votes1
answer189
viewsEach Database Row enter a separate DIV
Good afternoon I’m trying to make a query Mysqli , ie , I want each line of the database enters a separate div , I searched and found nothing resembling what I think is in a difficult way to…
-
1
votes1
answer273
viewsCalling separate functions via Ajax with Jquery in PHP
I have the following example: My file HTML has this code snippet: <script> $( "form" ).submit(function( event ){ event.preventDefault(); $.ajax({ url : 'funcoes.php',//url para acessar o…
-
1
votes1
answer180
viewsJavascript - Focusout does not activate AJAX
Hello! I’m having a problem with JS which is the following: The focusout event is not activating $.ajax JS: $('.focusout_input_budget').focusout(function () { var amount = $(this).val(), id =…
-
1
votes1
answer61
views(json with object) ajax
How can I consume in ajax the following Json(Coming from a Web Api Rest?) [ { "usuario": { "id": 1, "login": "gleyson", "senha": "123", "ativo": "S" }, "id": 1, "tipo": "J", "razao_social":…
-
1
votes1
answer450
viewsUpload a file with JS
First I wanted to say that I got to read some posts about it right here in the stack, but I couldn’t make it work, so I decided to post my code. My idea seems to be very simple, I need to upload a…
-
1
votes1
answer795
viewsSELECT DINAMICO CODEIGNITER - AJAX
Hello! I have the following tables: tbl_lancamento tbl_category tbl_burden Whereas in tbl_lacamento there is a field (id_categoria) that receives the ids of tbl_categoria and tbl_categoria receives…
-
1
votes0
answers158
viewsDoubt in a jquery with div print
following doubt, I have a javascript code that it makes impression of a div by id, only the following, is a form, I would like to customize, with header and images, it is possible without I have to…
-
1
votes1
answer101
viewsTable line deletion in Jquery
I have a table with an delete button where it should, when clicked, delete the record in question, but when I click delete it performs the correct deletion in the database and when updating the…
-
1
votes3
answers314
viewsJquery function does not find the Controller when I go up to the server
During development the function below finds the Control and makes the request correctly, but after publishing on the server the function no longer finds the Controller: During the development I have…
-
1
votes1
answer810
viewsRemove dynamically created html element in ajax Success
I created an ajax request to dynamically create a new element li, however I have a function also in ajax to eliminate registration and in success eliminate the li valet. The problem is that, in all…
-
1
votes1
answer256
viewsError while sending Json
I have the following variable: json_sending = JSON.stringify(obj); the value of the: "{"usuario": {"login":"gleyson", "senha":"1"}, "razao_social":"INTELIDER", "nome_fantasia":"INTELIDER LTDA",…
-
1
votes0
answers30
viewsAutomatic JPG hosting from PHP and Javascript functions
I have on a client’s website a part where it shows the name of the logged in user, the drive where it works and the photo of the user. I want to implement an automated function (in javascript and…
-
1
votes0
answers259
viewsPick up a php array after an ajax request
I’m having to make an ajax request, which returns more than one value and as soon as I click on that value, another ajax request would be executed. It turns out that to make this request, I send to…
-
1
votes1
answer804
viewsJquery autocomplete for city search, does not distinguish data from cities with the same name
I’m using Jquery, Ajax, PHP and MYSQL to do Autocomplete in a Brazilian city search field. When I type the name of the city the suggestions appear and when I pass the mouse over each city the code…
-
1
votes2
answers529
viewsPrintar content in list format with jquery ajax
I have a jquery ajax code that returns data from a request, but it returns me a line and then erases and throws the next one on top of the Anteriror, I want it to print me on screen 1 result under…
-
1
votes0
answers54
viewsPage redirection with inconsistent JS and PHP
I am trying to redirect to a page using window.location.replace(). However, sometimes the page does not redirect. At first I thought the error was loading a google source, but even removing, the…
-
1
votes0
answers27
viewsProblem with Ajax does not support BLOB ?
I want to bring a file with ajax that is in my database only that the file becomes too big for ajax. It has how to modify the ajax for it brings the file or there is another way. MY AJAX CODE…
-
1
votes0
answers43
viewsError in View message
I have that code: $.ajax({ url: "/InternalAuditRecord/SaveInternalAuditRecord", type: "post", data:…
-
1
votes1
answer1009
viewsHow to submit a form and after the submission load a div with ajax
Good night, you guys! I am having a problem with my application. The problem is this, I have a form to log in and a button like submit, when I click this button, the form is submitted to validate…
-
1
votes2
answers60
viewsAccess the data returned in the success of an ajax request, within a $('form'). on('Submit'...)
I have a $('form'). on('Submit', Function()); and inside it I would like to make a call from a function that runs an ajax and returns an array of data. however when saving the return of the function…
-
1
votes1
answer848
viewsProcessing status in Ajax calls (jquery)
I have an application that communicates with the server using ajax calls with jquery. However, in some cases, the time for the return of the call ends up being too long. I would like to know if…
-
1
votes1
answer423
viewsHow to start a function with onclick?
I have a script that reads one . log basically in real time and shows it on screen, but the point is that it starts with the DOM, I would like it to start only from the click on the button, could…
-
1
votes1
answer34
viewsRequest not working in firefox
I’m making an Ajax request, where it works on Chrome perfectly but firefox does not work. He tells me that Event is not defined function pegarValor() { dado = event.srcElement.innerText; var XMLHttp…
-
1
votes0
answers127
viewsI have an MVC system I need to make a request in ajax to display content on demand, I am unable to do by data_url
(function($){ $.fn.loaddata = function(options) {// Settings var settings = $.extend({ loading_gif_url : "https://zippy.gfycat.com/ImpoliteLivelyGenet.gif", //url to loading gif end_record_text :…
-
1
votes1
answer446
viewsHow to query via AJAX and store the data in a javascript variable?
I have this code <script> $(window).load(function(){ var source = [{ label: "Tom Smith", value: "1234" }, { label: "Tommy Smith", value: "12321" }]; $("#descricao").autocomplete({ source:…
-
1
votes2
answers737
viewsFilter select fields using other selects with Ruby on Rails
Good afternoon, I have a problem to solve here in my application. The problem is to filter the select HTML "Solution" field, based on the values of the other selected fields above it. The image…
-
1
votes3
answers2363
viewsEnable 'Access-Control-Allow-Origin' in jQuery [xml]
I don’t have access to .htaccess server and need to enable Cors on jQuery The code to access Webservice is: $(document).ready(function(){ jQuery.support.cors = true; $.ajax({ url:…
-
1
votes1
answer595
viewsLoad Json file with Ajax
How to upload a Json file to my html. The console does not show any error, but no field is filled with data from the Json file. <h3 class="center">Tela de alunos</h3> <div…
-
1
votes1
answer51
viewsgift only updates at the end of the event
Hello, I have a button with a click event, and when I click on it, I make an ajax request in a foreach. I would like to open a loading modal to run while the requirements are being made, but the…
-
1
votes0
answers36
viewsXmlhttprequest "dirty HTML" answer
I did 3 functions to optimize Xmlhttprequest: function _ (x){ return document.getElementById(x); } function ajaxObj (meth, url){ var x = new XMLHttpRequest(); x.open(meth, url, true);…
-
1
votes1
answer3371
viewsConfiguring CORS in Spring Security
I need to configure Spring Security to accept requests from external applications. I do not know how to do, I have a project in Spring Boot and Spring Security where only accept request from the…
-
1
votes1
answer631
viewsSending an Array by POST with JSON to PHP
Next, I need to send an array by POST with JSON. I have read about JSON.stringify and in my PHP code use json_decode, but in practice I am not able to apply. I will put the code here and change it…
-
1
votes1
answer51
viewsAjax without sending the action
Good afternoon, I have this ajax code where I use to update my form, it happens that when I give the Submit it goes to the php page, and I do not want it, I just want the return of it. follows the…
-
1
votes0
answers43
viewsRun search update on button
My search field updates a selectManyMenu whenever something is typed in it <p:inputText id="txtFiltroOrgaoDestino" value="#{mBManifestacao.txtFiltroOrgaoDestino}" style="width: 350px">…
-
1
votes1
answer330
viewsJquery Ajax not working properly on Mobile Browser as well as Macos
The following code works perfectly in the Windows 10 Browser, but it doesn’t work in the Android/IOS mobile browser completely and in Macos gives a message telling the user that it is not working…