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
votes1
answer528
viewsShow a single DIV with Ajax
I am making an ajax request for an external URL and want to show only three elements of the original website on the page I developed. But when executing the code it brings all the elements of the…
-
1
votes1
answer107
viewsHow to use a single form to register a new user and change data of an existing user on the system?
Hello. I have a form and table (which lists company employees). When I click on a TR (from your respective employee) in the table, the form data is filled in with the company employee data. So, if I…
-
1
votes1
answer29
viewsScan barcode for product data
Good evening everyone, I am developing a system in JSP and in it I have a form for the user to register a product. My question is, if there is any way, when the customer scans the product’s barcode…
-
1
votes1
answer194
viewsPhonegap application does not request ajax with HTTP protocol, only with HTTP s
I have an application created in Phonegap, however I can not make a request with it using the HTTP protocol, I can only make the request with protocol Https, someone has some idea of how to fix it ?…
-
1
votes1
answer53
viewsFilter data from a JSON
I would like to filter some data from a JSON returned from a query, in order to return a list with the title and value of each property. code I’m trying to modify: var titulo = Object.keys(retorno);…
-
1
votes3
answers247
viewsI cannot send form data with AJAX
I have a problem a few days, that with testing and research I’m not able to solve. My problem persists in a certain form send the data via AJAX to PHP treat and send an email, until then works…
-
1
votes3
answers63
viewsId of Dice changes before JS time
Hello guys I’m having a huge problem, next I need to create an element and send via ajax wait for the return (done/fail) and perform an action on this element, but sending and creating elements can…
-
1
votes1
answer340
viewsI am trying to consume an api in js via get by Xios
I’m trying to consume an API on js via get by axios, API containing a parameter apikey, how the code should look? as I’m trying to do: axios.get('url', {params{apikey:'chave_api_key'}})…
-
1
votes1
answer453
viewsPass Ajax (X-Editable) data via $_POST
I am trying to receive data from a form, where some fields use Ajax more specifically the plugin X-Editable. When receiving in my PHP page appears the error message below. HTML: <form…
-
1
votes0
answers103
viewsI cannot modify the coding of my charts in Google Chart
I’m trying to change the encoding of my chart that I made using Google Charts with data coming from a json file. I’ve changed the contentType of $.ajax() but nothing happened. The chart is displayed…
-
1
votes0
answers49
viewsHow to change the cookie in each click?
I am doing an exercise to change the cookie at each click through ajax. I would like to set each click a different cookie according to the content that was sent by ajax. I am sending this Ajax to…
-
1
votes0
answers13
viewsTake data from the elements and pass to form inputs without Submit
I believe it must be simple my question, but I have no knowledge yet. Come on, let’s go: I got this canvas right there By clicking the Use button this pass the Cod data and name to form, without…
-
1
votes2
answers543
viewsCatch reCaptcha Value Google Ajax
I am registering a form with Ajax, how to implement the use of reCaptcha? <input type="text" name="email" id="email" class="form-control" placeholder="Email" required> <div…
-
1
votes3
answers561
viewsAJAX: Send value to php file, query using this value, and returnate a Json array
Can anyone help me with this code? Why doesn’t it work? I am trying to send a value received by a form to a php file, use this value in my SQL query searching for records that contain this value,…
-
1
votes0
answers171
viewsjQuery datatable sAjaxSource - Show error while searching
At great cost, I was able to find an ajax code for loading the tables. It was necessary, because there are more than 5 thousand records. Error appearing while searching: Datatables Warning (table id…
-
1
votes2
answers2016
viewsSending Model to Controller via Ajax
I have a strongly typed View with a small form and a javascript function with ajax: function emitir () { $.ajax({ type: "POST", traditional: true, url: '@Url.Action("EmissaoRapida", "CND")', data: {…
-
1
votes2
answers87
viewsHelp with concatenating
I need to pass a variable inside an item array, a parameter that only accepts string, but when I pass a variable the API does not accept, it says that the parameter is incorrect. Better explaining:…
-
1
votes1
answer841
viewsUpdate content of DIV
Is it possible to update the content of a DIV? I have a DIV in which I pick up data present in the browser cookies and make a foreach to the listing of the items of cookies showing them to the user.…
-
1
votes1
answer493
viewsHow to put the return of Ajax [form] inside a div?
$.ajax({ url: 'executa.php', type: 'POST', data: {emailDestino: emailDestino}, dataType: 'html', success: function(data) { $('#notifyInscrito').appendTo(data); } }); I’m going to the file room…
-
1
votes1
answer220
viewsCarrregar view table with JSON object
I have the following code in my controller: public JsonResult List(string nome){ IList<ClienteDto> clientes = string.IsNullOrEmpty(nome) ? _repositoryCliente.Get() :…
-
1
votes1
answer180
viewsManipulate json with ajax and use your data separately
PHP: if (@mysql_num_rows($resultados) > 0){ while ($linha = mysql_fetch_array($sql)) $retorno = array($linha); // print_r(json_encode($retorno)); echo json_encode($retorno); } How to manipulate,…
-
1
votes2
answers6021
viewsValidating Email with Jquery and Ajax
I own a form where I perform login to access a restricted area of my site, but now I need to validate the typed email, I tried to change the script that I currently have and have not been able to…
-
1
votes1
answer7862
viewsSend form without updating page
I have a registration page and I wanted it to be sent my form the page did not update and open a div occult. With the script below does not let my page refresh, but also does not send my form to the…
-
1
votes1
answer67
viewsHow to return check value marked via ajax
I have a student registration form. It is all ready, the only thing I’m having difficulties is to return the value of a checkbox, which in the register refers to the student being active or not. On…
-
1
votes1
answer626
viewsUpload image to AJAX server serialize and PHP
Good afternoon friends, I am making a website that the person makes the registration in my form and I, using AJAX, play the dice in the bank. I wanted to know how to save this image that the person…
-
1
votes0
answers148
viewsAJAX request on the server
AJAX request does not work when on the server...locally works normal... Does anyone have any idea what it might be ? function SalvarPedido() { //Data var data = $("#Data").val(); //Cliente var…
-
1
votes3
answers190
viewsAjax upload does not send image and parameter
I’m trying to upload without From, for image upload, but I can’t. html <input id="avatar" type="file" name="avatar" /> <button id="btnOcorrenciaSalvar">Salvar</button> Javascript…
-
1
votes1
answer123
viewsAjax / Jquery - Select / mark an option disabled automatically
Fala galera! The following is, I have a dynamic page where the elements of the selects are loaded via Ajax according to the elements previously selected in other selects, type, for example, when…
-
1
votes4
answers1314
viewsCheck checkbox with ajax
I have a checkbox that when checked or unchecked performs an update in the bank, with ajax. But I don’t know how to analyze his change of state event. If I use the checked it only considers the…
-
1
votes3
answers480
viewsHow to load an ng-controller through ajax and inject it into the DOM
I am creating an application where I would like to load my modules through ajax. This application uses Angularjs to do the treatment of each module and these are injected into my DOM using Jquery,…
-
1
votes3
answers410
viewsSend variables to PHP via Ajax - undefined variables
I’m trying to send data from one PHP file to another via Ajax, but the variables are going undefined (in Alert, it displays: "Notice: Undefined variable:"). A brief description of the structure used…
-
1
votes1
answer2473
viewsUpload PHP Images and Ajax send file path to Input
I’m using an image upload system that I found on the internet, serves me a lot! In addition to uploading images, it resizes and facilitates the work of users. The question is this:: I have a form…
-
1
votes1
answer878
viewsRecover ajax response value
I have a service that registers in a system (the code below) var userstocreate = [ { username: '' + usuario + '', password: 'E@d123456', firstname: '' + primeiro +'', lastname: '' + lastname + '',…
-
1
votes1
answer128
viewsPass GET parameter through AJAX to activate page
I need to make the redirect after doing some commands in php need to load an ajax. The link that sends to PHP page:…
-
1
votes0
answers538
viewsUpdate Datatable - Ajax cellEdit (Primefaces )
Hello, I’m trying to update Datatable but I’m not getting it. Follow the code: <h:form id="testeForm" > <p:panel toggleable="true" id="panelTeste"> <h:panelGrid columns="1"…
-
1
votes1
answer338
viewsAbort an Ajax request
In a situation where I use the ASP.NET MVC, can cancel a request AJAX depending on the response of a modal? I am doing something like this: function atualizaStatus(sel, id) { var $status =…
-
1
votes1
answer930
viewsEvent change is only triggered when changing tab or changing window
Good afternoon, everyone. I am trying to implement an autocomplete using typeahead.js. Assigns a change event to my input to make an ajax request that brings me the data that will be displayed in…
-
1
votes0
answers126
viewsAjax error - unexpected end of data
I’m trying to figure out what’s going on with the ajax code below. If the string comes with data, it works correctly, but if it comes empty, error occurs: JSON.parse: Unexpected end of data at line…
-
1
votes2
answers1141
viewsWhat code to search for available domains?
I have searched the network but found nothing that would help to have a PHP script that would check the searched domain. Look what I got: <? function whois ($domain, $tipo) { $server[0] =…
-
1
votes1
answer910
viewsUpdate div with PHP return after Ajax request
Opa, I have the following function for an ajax login function show_login_client_enter(id) { var url = 'store/content/validate_user_client_action.php'; var method = 'POST'; var params =…
-
1
votes3
answers3061
viewsUpdate a specific DIV without refreshing the page
How to update a DIV without refreshing the entire page? Formerly in Rails 2.3.10, remote_function was used to update a certain div. Now in Rails 4.2, since you could no longer 'remote_function' how…
-
1
votes1
answer51
viewsCapture Script Opening Time
Hello, everybody. I am trying to create a project, whose function is to identify the time the page is open (eg if it was 1 or 2 minutes open). When closed, save time information in the database.…
-
1
votes1
answer257
viewsIs it wrong to mix $.post with $.ajax in jQuery?
I am making a login screen with Ajax, jQuery and PHP. Follows the code: $(document).ready(function(){ //Quando 'btnEntrar' for clicado $("#btnEntrar").click(function(){ //Envia por POST para a…
-
1
votes3
answers556
viewsPass multiple variables in Ajax function
REPEATED QUESTION TO FACILITATE THE EXAMPLE I have the following inputs in an HTML (I will show 3, but the actual situation is 20): <tr> <td>Digite o código:</td>…
-
1
votes0
answers71
viewsjquery . load and . ajax return different values, why?
Hello, My problem is that using . load or . ajax on the same address, I get different data values. Here’s an example: <span id="charset"></span><br/> <span id="d_nome"…
-
1
votes3
answers801
viewsReplace in the javascript array
Good afternoon, friends I’m having a problem here in javascript. I have an array, but with each Dice it is adding a double quote, and I want to remove them from there. My code is like this: dados =…
-
1
votes2
answers870
viewsProblems making an ajax request
I have a requisition problem when I click save button it makes 1 request or be saved 1 time in the bank if click again it does 2 at once saving 2 times in the bank clicking again it does 3 at a time…
-
1
votes1
answer108
viewsShow information without updating page
I am creating a project in which I will have "two interfaces", one used by the mobile phone, and the other used on a computer, in the mobile phone I will have the Youtube API, using list,…
-
1
votes0
answers68
viewsI can’t get a return from the REST webservice
I’m trying to communicate my client . html with a REST service that I created in ASP.NET C#. At first it was just to login and if the login and password was correct redirect to the home page of my…
-
1
votes0
answers985
viewsJquery with Ajax to update same PHP page
I have a page called php form. which has the following code: if(isset($_POST['date'])){ $date = ($_POST['date']); echo "Data: ".$date; } The page also has a form with a Jquery datepicker: <form…