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
-
2
votes2
answers646
viewsEncoding problem Servlet, json and jquery.ajax
I created a Servlet q returns a simple JSON. I was able to consume it quietly, but by putting the content in a div was as follows: 0: �gua 1: a�ucar 2: sal 3: canela 4: �leo Looking at the return of…
-
2
votes2
answers220
viewsJquery problem in handling ajax data coming as array
My array returns from php like this (post): Array ( [0] => Array ( [O email digitado é invalido! Por favor insira um email correto.] => 1 ) [1] => Array ( [O telefone digitado está num…
-
2
votes2
answers1667
viewsHow to do a simple "ping" on external sites returning status: 200, 400
I’m a beginner in Javascript, Angularjs and jQuery. I have already broken my head here and I could not solve the following solution using as a basis the Javascript: I want to make a list of the…
-
2
votes2
answers1528
viewsFilter c/ AJAX + PHP
Within my system, the user logs in, some information searched in my database is shown, follows function that searches the data and how they are listed: Function # função que busca os dados de…
-
2
votes1
answer103
viewsProblem with JS/Jquery/Ajax
I have a button that when clicked it performs a function: function searchTradeItems() { var uid = $("#useruniqid").val(); var iusername = $("#username").html(); var userid = $("#balmung-id").val();…
-
2
votes3
answers17051
viewsChange a select based on the selection of another select (from data in BD)
I have the following problem: In a form, I need to select a MANUFACTURER, and according to this selection, it shows the PRODUCTS linked to that manufacturer only. I have the following table where I…
-
2
votes1
answer904
viewsHow do I interact with HTML created with javascript?
I am creating a site posts that will be updated by ajax, but when you add one more post the side menu does not work. How to upgrade without making the menu stop? This is the code I’m using, I put a…
-
2
votes1
answer133
viewsPut variables in the URL in MVC to use with JS
I have a search page that will fetch the results using ajax. Do the searches you do, the URL is always the same, because the page does not change. Is there any way I can change the URL also when I…
-
2
votes0
answers52
viewsUpload thumbnail post type frontend via AJAX
I have a professional registration form, where the same register entering name and image (photo). This registration without the use of Ajax, I can do, but it must be done in Ajax, and the image I…
-
2
votes3
answers313
viewsDynamically generated ajax tags are not viewed by jquery
I am generating a dynamic table through AJAX that in one of the TDS there is a link. <a href="#modalInserirDescontoCB" class="modal-trigger id_aluno">104490</a> The link must perform two…
-
2
votes1
answer162
viewsHow to optimize Tictactoe in HTML5
Project: https://github.com/jvpessoa10/TicTacToe Source code of header.php: <!DOCTYPE html> <html> <head> <title>Jogo da velha</title> </head> <body>…
-
2
votes1
answer2164
viewsDatatable with JSON
I’m making a datatable with ajax return. $.getJSON("sql.php?operacao=usuario_lista&excluidos=false", function (data) { alert(data.users); $('#tabusuarios').DataTable({ "aaData": data.users,…
-
2
votes1
answer1074
viewsDynamic form and send to mysql via jquery and ajax
Already open some questions about it , I was helped , but kind of the way they spoke only serves if the form is normal , with inputs with name"something here" my form only has an input"text"…
-
2
votes1
answer1359
viewsCalling functions/procedure via buttons using Object-Oriented PHP
I’m starting in PHP O.O and I’m having difficulty calling the functions that are in the class through HTML buttons. In fact, it is not in calling but in setting the values that are in the function.…
-
2
votes1
answer100
viewsEffect of ajax on button
In the commandButton of primefaces we have u attribute ajax which may be true or false. What effect does it have on submission? I am making a silly example where the user type a name and triggers…
-
2
votes1
answer642
viewsFunction of "Like" without reloading the page?
Hello, good afternoon! I’m having a problem that I don’t know how to solve. I don’t know how to program in Jquery or Ajax, but I intend to start learning. How can I make the following PHP code work…
-
2
votes1
answer371
viewsAjax Reload div
I have a page that displays with Ajax database information inside the div #addremoveprod, so far all right, everything is being printed perfectly. I have also in a part of the code a function of…
-
2
votes1
answer141
viewsRequest with Ajax unsuccessful
Hello, I am making a request in Ajax, and there is an error where the value of the code of the line clicked (in a table) is not passed to Ajax, but I have another example that works perfectly and…
-
2
votes1
answer2265
viewsjQuery validation with ajax does not work
When I click on Ubmit it does not validate the fields, it simply does Ubmit without even having filled in. Does anyone know what can be? Obs: The form is with id form_redes_social and all fields are…
-
2
votes1
answer1124
viewsPassing data from a table to an Laravel and Ajax modal
I have a table that brings my results from a search via Ajax. But I need to open a modal with more details about the table items, but I can’t pass the data to the modal. Follow the code: Contents of…
-
2
votes0
answers92
viewsPass value of href jquery to Spring MVC
Good afternoon guys, I am having trouble passing an id that is in the jquery href for Spring MVC controller update method. Someone could help me. Thank you. $.ajax({ url : "listAllForum", dataType :…
-
2
votes0
answers68
viewsDoubt: Web Sockets and how to use
I was seeing this question link. Then I did not read in the answer about nodejs and researched about, but I did not understand much. How to apply this technology (nodejs)? I am developing a site in…
-
2
votes2
answers121
viewsHow to screen a serialized object?
I’m trying to convert an object that contains a relationship and Serializando afim, to send it to View by Ajax. I have two related classes public class Eventos : IEntidade<EventosAuditoria> {…
-
2
votes2
answers804
viewsUpload PDF by ajax
I have a form with several inputs text and 1 input file (where I send a PDF file). If I send by ajax it does not send the "FILE", I tested send without ajax, only by Ubmit, and it worked. The…
-
2
votes1
answer2388
viewsHow to download file via $.ajax()
This doubt arose from this post Send data to an Actionresult from a Controller other than the current one answered by Tiago S, currently have this ActionResult that downloads file through a Post in…
-
2
votes2
answers443
viewsHow to create Associative Array in javascript, json, how to manipulate?
It’s the first time I’ve dealt with this situation, so I don’t know exactly how to get around it. The fact is, I have a form with several inputs, divided by sections: In Experience Tab, I fill some…
-
2
votes0
answers348
viewsChanging Mysql with ajax and PHP
I created a system that the user can view data from a mysql database and eventually interact with that data (by changing through a select the column status in the database). There is currently a php…
-
2
votes2
answers318
viewsObject array in ajax with mvc
I have a function that takes the variables from a list, creates the objects, and inserts them into a list of objects. But I need to pass this list to the mvc controller; Jquery function $(function()…
-
2
votes0
answers44
viewsProblems with AJAX
I’m trying to delete a photo with ajax. I was able to collect the data (location of the photo) and now I was trying to receive that same location with another . php file . What is failing me is that…
-
2
votes1
answer164
viewsHow to echo PHP to Ajax? Login System
I’m working on a login system that warns the user if the username already exists in the database. I basically have a popup window on the same page where the input fields are for both login and user…
-
2
votes2
answers526
viewsHow do I print jquery results in a div?
My codigo js is working perfectly however I wanted to printase the result inside a div in the index.html itself below my textarea and without redirecting to another page, because it is redirecting…
-
2
votes1
answer998
viewsHow to show result via ajax and jquery without refresh happening on the page
I tried to implement an Ajax call in a project and I can’t identify the error. I have a form for posting status and I would like that as soon as I post something it does not refresh the page but…
-
2
votes0
answers329
viewscorrect sql query does not work in php
I have a query, where this query works perfectly in mysql Workbench, but in php does not work. $dados = explode("-",$ids); $sql = "SELECT prt_produto_item.nome as nome_item,…
-
2
votes2
answers152
viewsPass search input to another file
I am doing a car registration project, it is almost at the end, but when changing a bit the style file and tinkering the listing to leave in AJAX without refresh a bug strange happened, I have tried…
-
2
votes1
answer435
viewsPreloader with Materialize
I’m making a request via ajax: $(function () { $('#loader').hide(); $('#formSend').on('submit', function (e) { e.preventDefault(); $.ajax({ type: 'post', url: 'proc_pedidos.php', data:…
-
2
votes1
answer1081
views -
2
votes1
answer1256
viewsRun Mysql search after opening Modal
Guys, yesterday with the help of Bruno here on the page I managed to solve my need to create the modal but today I have a new difficulty, I could not pass over. Next with my modal opening through…
-
2
votes1
answer353
viewsHandling synchronous and asynchronous request results
I have a function that triggers an ajax request for a route, see: var getInstituicoesSemUsuario = function(tipo) { var resultado = ""; $.ajax( { url: "{{path_for('instituicao.sem.responsavel')}}",…
-
2
votes1
answer12636
views -
2
votes3
answers664
viewsRequired no Ajax
I have a code that I need that when submitted, some fields are mandatory to be filled in, type o required html only in Ajax, instead of using Alert as I am using, it uses required as in html. Follow…
-
2
votes1
answer83
viewsTreating logic and exceptions - jQuery
I have some buttons which on onclick of them work with two Ajax requests for an external file that add products, but this is not of utmost importance in this issue. My problem is this: if the buy…
-
2
votes1
answer145
viewsFunction . Unload() - jQuery
I make two ajax requests to an external file from which they add and remove products, but that’s not very relevant in this issue. I wanted every time the page was updated, the function…
-
2
votes1
answer132
viewsAjax Commit - Enter
How can I make a commit with ajax using the enter key? That is, I have the following code: var nome = $("#nome").val(); jQuery.ajax({ method: "get", url: "teste.php", data: { "nome": nome },…
-
2
votes2
answers356
viewsChanging the variable name during a repeat loop in Javascript
I want to make an indefinite number of ajax requests, according to the number of urls passed as parameter, I just need to know how to increment the (name) of the variable so that the answer does not…
-
2
votes2
answers78
viewsWhat is the correct way to send a form to a controller via AJAX?
I have a simple form, which is basically my Viewmodel. I am doing a post via AJAX passing this form, however, on the server side, everything is always null. My AJAX is as follows: var formData =…
-
2
votes0
answers36
viewsFile (.PDF) for Ajax/Webmethod Webforms
I wonder how do I get the information from a pdf file (Binary, name, size) public class Arqs: IHttpHandler { Funcoes f = new Funcoes(); public void ProcessRequest(HttpContext context) { try {…
-
2
votes1
answer580
viewsDeleting records marked with checkbox
I wish I could delete multiple records from a table just by selecting the records using the checkbox, Like Gmail, I select the emails I want to delete or mark as read. Because when I need to delete…
-
2
votes1
answer62
viewsAjax, PHP Problems when receiving data
Okay, guys, here’s my problem. I have a JS function to make a query in mysql database via ajax, it returns apparently correctly but when I try to access the value of "Undefined" This is an…
-
2
votes2
answers485
viewsFunction . ajaxComplete() performs several times
I want to add this function after a . ajaxComplete, but every time an ajax happens, this bolco executes an amount of times equal to the amount of ajax that happened. For example, if I first click…
-
2
votes1
answer41
viewsSet variables to call a function
I’m trying to include variables to call a function, but I’m not getting it function Geral() { xmlHttp=GetXmlHttpObject(); var url="pagina.asp?a=1"; xmlHttp.onreadystatechange=stateChanged;…