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
votes1
answer583
viewsHow to refresh on another page after entering data in the database
i am creating a service system where there is a screen only to display the passwords that are being registered in the database. The problem is that I can’t update the passwords in real time, because…
-
2
votes0
answers338
viewsNavigation by Arrows in Div
I’m doing an autocomplete on jquery and ajax, the results obtained by ajax I’ll put in <div>. I wish the user could navigate with the arrow for the results, leaving the <input> and…
-
2
votes1
answer899
viewsLaravel - Test script errors to return certain status to AJAX
In an application in Laravel I have several scripts using ajax. Everyone expects a response from the controller script and, if it returns true, I run a certain function with the 'Success' ajax…
-
2
votes0
answers227
viewsUpdate a Repeater after inserting a new row in the Table?
Good morning, you guys! I have a table that is populated with a Repeater. This table has a filter, which is programmed all via javascript from a ready Layout. After adding a new value to the table…
-
2
votes1
answer137
viewsData loss in session
I’m making a form with steps in Ajax. The idea is to each step take the form data, play an array and store the array in the session, so I can manipulate all the data in the last step: Ajax…
-
2
votes1
answer1103
viewsCodeigniter - Dynamic form
all right? Well.. I’m a beginner in the world of Web Programming and I’m trying to develop a codeigniter system. Can you help me? I’m trying to make a dynamic form in which I have a select that has…
-
2
votes3
answers3043
viewsAssign $.ajax received value to variable
It is possible to associate a value received by $.ajax a global variable, because from these values, I need to add them and show them in another table. I tried but always interprets with local…
-
2
votes1
answer83
viewsjavascript result for method in parameterized controller
I am trying to send the result of a Webapi that is consumed via javascript on the page to a method in the controller that will make a persistence with this data this is javascript…
-
2
votes1
answer124
viewsProblems accessing PHP page via Ajax
I am having trouble accessing a PHP page via ajax. When I am trying to access the access.log the following error: "POST /Eglise/mobile/Mob_acao.php HTTP/1.1" 200 84 "-" "Mozilla/5.0 (Linux; Android…
-
2
votes1
answer885
viewsCreate https session with ajax http request
I’m developing a site where the client side initially accesses http until they log in. The login is done from http itself with an ajax request that calls the php script in https and in this script a…
-
2
votes0
answers134
viewsPhantomjs Wait for ajax Request
I am here with a huge difficulty in Phantomjs; We go there since yesterday I am trying to automate the process of Natran within a system. How will it work? I already have the user’s CPF and RENAVAN,…
-
2
votes0
answers375
viewsHow to Force Download mpdf Files Using Ajax
I am trying to download pdf files using the library mpdf. Calling the php page in the browser it works normally. Example: require_once 'mpdf/mpdf.php'; $mpdf = new mPDF(); $boleto =…
-
2
votes3
answers9570
viewsUpdate DIV without refreshing the JQUERY page
Good afternoon Guys, I have an ajax that sends a post some information, in PHP I saved this information in Ssion, I would like to update the DIV where I have a foreach (PHP) to update so that I am…
-
2
votes2
answers1182
viewsUpload Json to Google Maps
I am drawing a Poligono on the google map, I managed, but as it is big it got a very repetitive code that I would like to isolate in one . json but could not. I tried to do something simple with…
-
2
votes2
answers40
viewsCriteria for dynamic inputs
I have a dynamic input that checks the date the user selects and then returns the available hours for scheduling, however when the user selects the date of the day (data = hoje) i would like the…
-
2
votes2
answers674
viewsValidating input file with ajax request
Whenever I give a Submit in the form appears an error in the line in which this variable $file, I disabled the ajax and did not appear the error, so I guess it is not php problem…
-
2
votes1
answer312
viewsDoubt when returning string json to Fullcalendar event
I have a question. I’m using Fullcalendar on a project. I can display the data registered in the database normally. My problem is in the eventClick: did so: var date = new Date(); var d =…
-
2
votes1
answer3982
viewsHow to check the modal closure
Via Ajax I register items in the database and return a certain value to the user through a modal using the innerHTML. Done that the "html" of modal is filled with the amounts I pulled from the bank.…
-
2
votes3
answers1376
viewsRetrieve data in Mysql DB using AJAX/PHP to create a badge containing DB item count
I need to get an item count in my Mysql DB using ajax and php. My ajax is like this: <code> $(document).ready(function(){ $('#badgewel').empty(); //Limpa a tabela $.ajax({ type:'get', //método…
-
2
votes1
answer250
viewsSend data to client without using an additional url
Hello. What I want to know is the best way to send data to the client and this data will be received through a function (which can be executed in a click). In the example below I will render a page…
-
2
votes3
answers404
viewsAjax Requests - Tips
The thing is, I’d like a suggestion and tip to make a correct system. For example, today I use jquery and many requests $.ajax, this is to popular some data, to send form data and etc. But I…
-
2
votes1
answer1631
viewsForm validation php and ajax
Sorry if the question is silly, but I don’t know much about ajax and I’m trying to make a basic form to test the validation using ajax and php (if possible). Good reading on the internet and seeing…
-
2
votes1
answer150
viewsJquery/Ajax - How to keep the page up to date?
I have a page that is loaded with $.ajax() from Jquery, ajax pulls a page in php with a database that is constantly updated and need to keep the page updated, as serious the best way ? I read about…
-
2
votes1
answer29
viewsSearching Array of variables via Ajax and inserting in their due inputs of a form
I have a form that searches and fills, via ajax, the name of the person and year of birth (in their respective fields), all this from the Cpf typed by the user. It’s something like this: Digite o…
-
2
votes1
answer93
viewsHow can I view my instagram feed without caption
With this example I am viewing my feeds only with caption, but when I do not put caption appears nothing. var token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', userid = XXXXXXXXX, num_photos = 10;…
-
2
votes1
answer435
viewsAJAX request after other AJAX requests
I need to make an AJAX request after any other AJAX request. However, using the method $(document).ajaxComplete(), for example, the request would end in an infinite loop. Is there any easier way to…
-
2
votes1
answer976
viewsAJAX request for PHP (Codeigniter) does not return values
I’m working on a situation I haven’t been able to resolve in over two days straight. I have an AJAX that is requesting values for a controller to popular a select with cities. The request seems to…
-
2
votes1
answer174
viewsNull value is going to the ajax error function - ASP.NET MVC
I am developing a ZIP consultation page where sending and feedback information is done in ajax: $.ajax({ url: "@Url.Action("PesquisarCEP", "CEP")" + "?cep" + retirarMascara($("#dsCEP").val()), type:…
-
2
votes1
answer38
viewsDialog inside php/ajax/js form
Well at first glance, the title already shows the error, but this is the process I need but I have no idea how to execute it. Given a simple form for example: <form method="post"…
-
2
votes0
answers145
viewsDrag & Drop AJAX
I have the following codes INDEX.PHP <section class="content"> <div class="row"> <div class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading">…
-
2
votes2
answers1283
viewsUser Registration in Laravel
I’m starting with Laravel for a couple of weeks and automatically it’s raining with doubts. I have a registration form with the following button below: <button type="button" class="btn…
-
2
votes1
answer395
viewsHow to access json?
I think the simplest thing is to access a key and a value in json, but for weeks I haven’t been able to do it... it returns the correct json through ajax but when I try to access it from. Note: I am…
-
2
votes1
answer155
viewsAjax Polling shared between tabs
First of all I need to inform the current situation. I own a website, there is an ajax Polling, which requests every 5 seconds to get notifications and the like. The entire site is supported by two…
-
2
votes2
answers611
viewsAjax does not return the date of requests
I perform a query with ajax on a php page, the problem is that even asking to return data, the ajax 'date' does not return anything, I give an Alert in the 'date' and it returns me a blank alert, JS…
-
2
votes1
answer1791
viewsWhy do I have to use Formdata to send files via Ajax?
I created an HTML page with a form, and in it a imput file and another field hidden, all of them with the attribute name. <form id="meuForm" action="..." method="POST"> <input type="hidden"…
-
2
votes1
answer191
viewsJSONP breaks at two points (" : ")
The server sends a JSON, normal. Follows the code: @GET @Path("email") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public String getEmail(){ ViewStatisticsEmail…
-
2
votes3
answers779
viewsAssigning an image(s) value to the Javascript input
I have the following input <input type="file" id="imagefiles" name="files[]" multiple accept="image/*" style="display:none;" /> This input receives up to 3 images I’m using javascript to give…
-
2
votes1
answer2308
viewsProblems with Xmlhttprequest in Chrome
After this update of Google Chrome to version 53, I am facing problems in calls Ajax (jQuery), $.http (Angularjs) and Xmlhttprequest (Javascript) presenting the following message: XMLHttpRequest…
-
2
votes2
answers123
viewsHow to make the parent relation between two select elements?
I am making two elements Select a "Area" and another "Problem" and I need to relate to each other, in the BD table of the problem FK spr_sar_codigo referring to sar_codigo of the table Area. I am…
-
2
votes1
answer96
viewsList errors returned in an ajax request
I have a Controller that is returning errors this way: return response()->json(['erros' => $this->renderHttpException($e)]); I am receiving this json as a response to the ajax request:…
-
2
votes0
answers174
viewsUPDATE PDO, AJAX, PHP Object-Oriented
I have the following function within my class public function update(){ try{ $stmt = $this->conn->prepare("UPDATE Tabela SET Dado1 = :Dado1, Dado2 = :Dado2, Dado3 = :Dado3 WHERE DadoId =…
-
2
votes1
answer95
viewsInsertion of record with webservice returns error but inserts in the database
Hello, I have a javascript function that makes an ajax call to a php file that must insert the records in the Mysql database. Well, I am able to enter the records but the function is returning me an…
-
2
votes1
answer494
viewsRemove registry in ajax without giving refresh
I have a code in ajax to remove rows from a table, but to delete, I have to click the delete button and give a F5 so that the record is deleted in the current code. I tried to do in some ways…
-
2
votes0
answers168
views -
2
votes1
answer100
viewsAsp.net MVC does not recognize dates in dd/mm/yyyy received via GET
I am making a filter for a paged list. The values of this filter should be sent via ajax with Verb GET. This is the model: public class FiltroViewModel { public DateTime? CriadosDe { get;set; }…
-
2
votes3
answers950
viewsLocal communication through online application
I am developing a system for ordering a snack/pizza shop. Let’s assume that the waiter makes the order with the Tablet (Android) at the customer’s desk or the customer goes and makes the request at…
-
2
votes1
answer323
viewsHow to change DIV style using AJAX without updating the page
I am doing a complementary activity in college, and I have to do a system to change the style of the div if the user problem is already solved or not. When you click solved if the div is already in…
-
2
votes1
answer1254
viewsReceiving an ajax request with Laravel
I am having problems in recovering the data sent by my ajax to the laravel. Man ajax is like this: var id = $(this).siblings(':hidden').val(), qtd = $(this).val(), dataUser = { "id": id, "qtd":…
-
2
votes2
answers1489
viewsHow to execute one code only after finishing another?
I need to run the search for cities only after I finish loading the states within select and capturing the ID. I’m taking this ID to send another Ajax that will popular the cities of this state…
-
2
votes2
answers449
views