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
-
0
votes1
answer99
viewsHow to display content from another page dynamically
I would like to be able to display various contents (from other pages) on a single page for each click on a link or button that the user gives. I know one of the solutions would be to use AJAX, but…
-
0
votes1
answer150
viewsError 405 - Cross Domain Request
Guys, I’m making a request for my page on github (tiagosilveiaa.gihub.io) for my test server, just to run the script of the same form, but I was presented a message that the protocols were different…
-
0
votes3
answers186
viewsDoubt validate . click() outside of Function() jQuery
I need to validate if the button with class .pop-yes was clicked, but I need to validate this outside the event .click() so that the code line $(this).parent [...] be executed. The way it is here,…
-
0
votes0
answers29
viewsconsume asmx with ajax(outside the webservice layer)
in my Solution I have several layers and one of them is the webservice, all pages that consume the webservice and are in the webservice layer work, but put in another layer of error in javascript.…
-
0
votes1
answer441
viewsList data with Ajax and PHP
I have the following table <?php foreach ($this->views->clients as $client): ?> <tr class="tr_<?= $client['id'];?>"> <td><?= $client['id']; ?></td>…
-
0
votes2
answers260
viewsCall in API does not work
I have the following code: // Script Jquery <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="…
-
0
votes1
answer140
viewsI want to declare a javascript variable by INPUT TEXT
I would like to do the inverse of this script, in this script you click the GENERATE button, it generates 4 digits What I want to do is the reverse, I want to declare the variable "1298105" (or any…
-
0
votes2
answers2971
viewsLine break
Good evening, I make an appointment and in my query I can not do break line, the results appear on one side of the other, already have \n, \\n, <br />,<BR> in PHP and it didn’t work...…
-
0
votes2
answers180
viewsAjax request in ES6 constructor
How I make a request in my constructor Ajax and assign the values of that request to my attributes? So far it’s like this and it’s not working, I’m returning 2 jsons... in the console.log attributes…
-
0
votes1
answer37
viewsI can’t take table value and use in ajas
You guys talking, Blz? I’m a beginner in php and have a table populated with while and need to use the value of a td in a select on another page returning in a modal. The structure I built works if…
-
0
votes1
answer179
viewsProblems When passing data via ajax
I have a form where it is validated by jqBootstrapValidation.js, and is sent to another file, which is the file below: // Contact Form Scripts $(function() { $("#usuariosForm input,#usuariosForm…
-
0
votes1
answer306
viewsAjax update only on selected line
I have a Datatable here and I’m using a plugin so that the user can edit the table data, got in parts(haha), the problem is that my call is not identifying what the user enters, and when I manually…
-
0
votes2
answers825
viewsHow to redeem checkbox value in the form using serialize()?
I have a form in which it is created dynamically using the method append. The result is something in this format: $('#form').append("<tr><td class='td-min'><input…
-
0
votes2
answers125
viewsPOST crashes the script and does not execute the code after form Ubmit
I have a problem at hand. I have a credit card form, where the customer will fill in the data and be submitted to the bank evaluation. However, it should perform some operations before to arrive at…
-
0
votes0
answers50
viewsMake a while run from the click of a button
I have a form that must be filled out automatically. But this fulfillment depends on a user’s choice, so it should be executed after the choice, I believe a button would be ideal. To illustrate the…
-
0
votes1
answer84
viewsajax without query permission
I have a wcf webservice on the link http://food-fast-com.web27.redehost.net/ServiceUsuario.svc/ConsultarRegistroPorCodigo/2, I can consume it without problem in my local iis with ajax: Consulta…
-
0
votes0
answers504
viewsRemove json_encode result /ufeff
When making a registration using ajax, Success does not execute the commands from within it, when analyzing the code I noticed that there is a /ufeff in the value returned by php and I think this is…
-
0
votes1
answer1070
viewsLoad DIV automatically with Ajax
I need a drug IVD to be filled in the moment the user chooses one of the options in a combobox (subtype). In my index I have the combobox, where I created the Ajax script as below:…
-
0
votes1
answer245
viewsError while generating file
I have a method that generates a file that method is generating the file in fact, There I have another method within my service that returns the file to the download and to that return a List until…
-
0
votes1
answer833
viewsRemove row from table after deleting via AJAX
I have a table that shows student records, and each row has a button to delete the student, and the deletion is done via AJAX. I would like to fadeOut the line that is deleted, so in AJAX Success I…
-
0
votes2
answers134
viewsNotification button update
I have a notification button on my software where I wanted it to automatically update itself. So I made the following code: setTimeout(mostrarNotificacao, 90000); function mostrarNotificacao(){…
-
0
votes1
answer38
viewsWhen entering, value is incorrect
When checking the mounted Insert PHP with the form information, I can understand the value of the field data_final is not captured correctly, I would like to know what is wrong, because I believe it…
-
0
votes1
answer42
viewsjQuery Store one item at a time
I have following code. There are several options But just one option I’d like to disavow I click one to check then another Finally when I find the option I want, then click on the button…
-
0
votes0
answers154
viewsRank system higher to lower order
As the title says I’m having trouble putting a rank system from higher to lower number. My system is in the order of the database order in the database = 10,9,6,8,2,3 <- is in the order msm on my…
-
0
votes1
answer245
viewsHow do I save the result of this GET query in a variable?
I have this code that goes in the Master Data VTEX (bank) and makes a query in a given email. If you have this email he has to bring the customer’s phone number. How do I save the result of the…
-
0
votes0
answers28
viewsError while calculating fields in IOS safari
I have a problem in the development of a small calculation system where the user needs to put a value in a field and the system brings the results according to a specific account. In all windows…
-
0
votes0
answers96
viewsModify function return in Fullcalendar
I’m trying to make a script go to my database and return the data through a function. Follows: events: function(start, end, timezone) { // var convert =…
-
0
votes1
answer64
viewsjquery ajax error
I cannot play the result of the ajax query inside a table. The result is an array (result = Object {Query categoriesresult: Array(6)}) <html xmlns="http://www.w3.org/1999/xhtml"> <head>…
-
0
votes1
answer43
viewsLayer KML using Openlayers3
I’m starting in Openlayers and I’m having a problem visualizing polygons on maps. I have a set of polygons being returned from a query in the database (postgres/postgis). This set of polygons is…
-
0
votes3
answers1191
viewsShow BD record without refresh
// esta é uma pagina separada, chamada adicionar_consulta.php <?php $conexao = new mysqli("localhost","root","","hospital"); if ($conexao->connect_errno) { echo "Failed to connect to MySQL: ("…
-
0
votes0
answers109
viewsError sending email with PHP, Ajax and JSON
I have a simple form in PHP where the request is made through a Javascrit with ajax that calls the PHP file and returns a response in JON. But the answer I always have is negative, according to the…
-
0
votes1
answer286
viewsUpdate multiple form files after jquery/ajax post request
I have two requests post in the form, one inactive and another activates a register, as they are equal I will display only one to exemplify: function inativarCadastro(cod) { $.ajax({ url:…
-
0
votes1
answer81
viewsHow can I make a log box always show the last line?
hi, I have a log file of other codes that keeps updating so I made a javascript code that shows this file and is a code that keeps updating the live text on the page inside a textarea but it keeps…
-
0
votes1
answer49
viewsMerge upload and input ajax
I have this form: <form id="formForum" autocomplete="off"> <div class="boxContent"> <div class="form" style="margin-top: 0"> <div class="profile" style="background-image:…
-
0
votes1
answer378
viewsadding controller foreach field to view
Hello! I have the following function of the controller. public function lancamento_listar() { $lista = $this->lancamento->obter_dados(); $data = array(); $no = $_POST['start']; foreach ($lista…
-
0
votes1
answer120
viewsAjax PHP Combobox Returns nothing
I can not return anything .. when I test instead of the city field and erase there it returns but with the name of the city it does not return has data limit for a CMB? $(document).ready(function()…
-
0
votes0
answers83
viewsAjax request canceled by browser
I’m using a plugin for multiple image uploads, the Kartik-v/bootstrap-fileinput. On my localhost is working without any problem but when I send the application to the server and try to upload the…
ajaxasked 7 years, 5 months ago Amanda Lima 3,428 -
0
votes1
answer95
viewsAlternatives to the get method
I am making a system and there is a part that will mess with bank bill. For security/privacy one user can not see another’s billet. I do a check every time he visits this page to see if it has…
-
0
votes1
answer240
viewsHow do I use checkbox to update information in mysql?
I’m using the Ajax to update the database, but I am passing data by reference, it works and updates in the database, but if you click the button to disable it works but if I click to disable and…
-
0
votes2
answers121
viewsSend date javascript format via ajax
I am trying to send data from a registration form via Ajax/javascript to a java service, but the database receives the data in date format and I do not know what I should do to convert to date, how…
-
0
votes1
answer126
viewsProblems and questions with sending Ajax and Php form data
Hello. I need to save some html form information in php but without reloading the page. I searched several tutorials and video ajax class but I’m doing something very wrong or I don’t really…
-
0
votes1
answer526
viewsHide select field according to radio button
I am trying to hide select fields according to the option chosen in the radio button I can hide the inputs, but the select fields I’m not getting, someone could help me? Form: <div…
-
0
votes1
answer47
viewsI need to take the patient id from the table to the next page, along with the user, by clicking the button
<?php $conexao = new mysqli("localhost","root","","hospital"); if($conexao->connect_errno){ echo"Failed to connect to MySQL: (" . $conexao->connect_errno .") " . $conexao->connect_error;…
-
0
votes1
answer236
viewsError Load multiple pages in php site
I have a PHP site where I have to upload several pages. But only once.What’s happening is the overlapping of screens with various inclusions. <div class="container"> <h2>MAPAS</h2>…
-
0
votes1
answer52
viewsPlot X Axis Graph with Date
Galley, I have a chart and I would like to put on the X axis the Date It was like this: xAxis: { tickColor: 'transparent', tickDecimals: 2 }, I put it like this: renderer: $.jqplot.DateAxisRenderer,…
-
0
votes1
answer2036
viewsPass parameters to the controller via ajax
Guys I don’t know anything about jquery/ajax and wanted to pass a parameter to the controller. I have a modal that opens only to ask if the person is aware of the cancellation where the only field…
-
0
votes2
answers171
viewsHow to send a table via ajax?
How do I get the position of a td reordered by drag and drop and send back to Java via ajax ? <table th:if="${!---.isEmpty()}" id="id-table" class="table table-bordered mdl-data-table">…
-
0
votes2
answers113
viewsPlay date returned from ajax in php foreach
I have an ajax search that picks up some data based on what was searched, how do I play this 'date' coming from an ajax in a foreach in php ? $.ajax({ headers: { 'X-CSRF-TOKEN':…
-
0
votes2
answers165
viewsInserting data into postgresSQL database with PHO, AJAX and JQUERY
I am trying to insert data into a postgres database using php and ajax with jquery. But always error. It is for a college job. Could someone explain to me the error in the code?…
-
0
votes1
answer120
viewsError entering data into database with Jquery and Ajax
This code snippet always returns ERROR: 200. It is entering the data into the database normally, but returns error in the interface. $("#registrar").click(function(){ $.ajax({ url : "registra.php",…