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
answer427
viewsCreate Dropdown list from another Dropdown with PHP
I’ve been trying to do this for a while, but I failed miserably, I’m trying a different method than the ones I saw on the forum so I don’t think I fall for duplicity. I need to create a second…
-
0
votes0
answers84
viewsIs there any way to set up spring MVC to receive an Object with subobject?
I have in my project a controller that receives data via jquery. But this data is converted into an object that contains subobject. that is: class Teste{ String a; String b; Test2 teste2; } class…
-
0
votes1
answer225
viewsReturn of incorrect AJAX Success
I am using Jquery AJAX in my ASP.NET MVC application and I am having a somewhat strange problem. When performing an AJAX request, instead of retouching the content I want to load (a new ".cshtml"…
-
0
votes1
answer42
viewsUPDATE not working with ajax?
The problem is this, I have an editing form whose data is sent by ajax. Here’s the code: $("#edit_rua").click(function(){ var id = $(this).attr("data-id"); var nome = $("#nome_rua2").val(); var cod…
-
0
votes1
answer430
viewsCordova: Ajax works in browser but not on Android device
I need to make an ajax request using Cordova in visual studio, and ajax through Jquery. When I test through the browser works correctly, but when I test Android it returns error with stauts "0" and…
javascript jquery android ajax apache-cordovaasked 7 years, 4 months ago Anderson Brunel Modolon 1,111 -
0
votes1
answer9360
viewsError: [Object Htmlinputelement]
How do I resolve the error: [Object Htmlinputelement] The code should save the text typed in the field, and even giving F5 stay saved, example: same as the script of this site. function digGet(){ //…
-
0
votes0
answers171
viewsI can’t use the webservice
I have the following webservice: http://IP:PORTA/wsexecbo/WebServiceExecBO?wsdl and in that WS i have the following function: http://IP:PORTA/wsexecbo/WebServiceExecBO?wsdl/userLogin I send a user…
-
0
votes0
answers659
viewsHelp? Uncaught Typeerror: $(...). tooltip is not a Function at Htmldocument.<Anonymous>
I have this mistake and I’ve tried everything, but nothing here the mistake: jQuery.Deferred exception: $(...).tooltip is not a function TypeError: $(...).tooltip is not a function at…
-
0
votes1
answer89
viewsHow to call a zend method using Jquery?
I have this Jquery function that enables an input for the user to edit a form, when editing and clicking 'Enter' I want to save the change made in the database, without submitting the form. -- My…
-
0
votes0
answers59
viewsPHP file requested by jQuery to respond only to the domain itself
I made a code .ajax() jQuery to avoid direct access to PHP files, but would like to improve the security of the requested PHP files, read on Access-Control-Allow-Origin and other tips, but I…
-
0
votes0
answers182
viewsHow to improve ajax update ? JSF performance
I am developing a system for restaurant and I have a datagrid that updates the other. For example: I click on the class and update the product datagrid. It works, but the result is slow. I’m wearing…
-
0
votes1
answer85
viewsAjax does not run correctly
I have an Ajax request that I make for my controller and it returns a array with necessary data, however, the return of the request is correct because giving a console.log(retorno) he shows me on…
-
0
votes1
answer157
viewsDisplay Dialog (Materialize) with ajax without clicking the button
Guys, I’m building a ticket system and I’ve decided to exchange a closed ticket message alert for a dialog, would be the Toast materialize.com. However, I am not able to make it return already…
-
0
votes0
answers496
viewsGoogle maps measure mileage between two points per hour
Next galera: has how in google maps measure speed (mileage) between two points by the time of each point example: Point A (Lat and Long + time type 10:00 hs) Point B (Lat and Long + time type 11:00…
-
0
votes2
answers53
viewsHow to slideToggle() from div that was requested via ajax?
Dear Mr(a)s,, I have a div that is filled via ajax: function atualizaConteudo(){ $.ajax({ url: 'getters/conteudo_amanha.php', success: function(data) { $('#conteudo_amanha').html(data); } }); }…
-
0
votes1
answer54
viewsZerar Specific field in the Form
As I do not have much knowledge in javascript I ask a help from you... In my code below I need to reset a specific field that is the field People by the last Select field This form is a calculator,…
-
0
votes1
answer109
viewsHelp with AJAX request
I have this function that searches in the database the quantity of products in stock. public function contarProduto() { try { $pdo = Conexao::getInstance(); $sql = "select id_produto as produto,…
-
0
votes0
answers33
viewsGenerate auto-sequence of the api when you click on the specific product
I have a customer portal, and in this customer portal will have a page of "my purchases" there will show the products purchased, and when you click on it will appear the "tracking" of this product…
-
0
votes1
answer545
viewsCancel Event Click Jquery preventDefault
Hello, I am not able to use addClass when I give a replay on my page using ajax. What happens is that it adds the class to my html element for a moment, but the behavior is as if the page is being…
-
0
votes1
answer73
viewsI’m having a problem validating a contact form
Html code: <section class="contato"> <div class="parallax-targetaf section-0" data-parallax="scroll" data-image-src="img/4.jpeg"> <div class="container cf"> <div…
-
0
votes1
answer36
viewsHide a table after clicking
I have a table that lists the customers of a company. The user selects the client he wants through the links in each. By clicking the table data feed the form inputs. Only now I want to hide the…
-
0
votes1
answer36
viewsxmlhttp is not defined
I’m having some problems when performing an ajax request by javascript, however, it appears that the variable xmlhttp was not defined, even though I defined it before the function and before using…
-
0
votes3
answers62
viewsFill in 3 selects without repetitions
Good night, In a view I need to fill 3 select without repeats. In the application form in a precise selection process that the student chooses in the first select the first course option, in the…
-
0
votes1
answer507
viewsDjango + AJAX - POST 404 (Not Found)
I am trying to implement a Likes system in a Django + AJAX application but when trying to do the operation in question I am getting the following error in the browser console: POST…
-
0
votes1
answer107
viewsError include_once using AJAX
The code is on the link because is in a folder system. PROBLEM: I have an MVC architecture.Inside the view I have a class that contains a registration form that is in the initial tela_class.The form…
-
0
votes1
answer458
viewsInsert items into a table using Jquery
I have a form where I insert into the bank the sale and the sale items. When opening a particular sale, the items of that sale are displayed in a table. When I want to add a new item to this sale,…
-
0
votes2
answers579
viewsAjax request from multiple Forms, with javascript function
I’m having trouble sending the forms correctly, I have several forms, each with its id, and a function I call on all forms: <script> function enviaForm(id){ $(id).submit(function(){ var camp1…
-
0
votes1
answer133
viewsPlace Variable inside Formdata
How can I put a jquery variable inside Formdata? Example: I have a CKEDITOR, but I am not able to save in the database, but I am using the format of sending with ajax, I found on a website, to…
-
0
votes1
answer1379
views'Can’t set headers after they are sent. ' Express.js
I’m trying to send the variable 'name' to the client-side, but it’s only working when I run a respons.end() when I use two, returns this error: > 'Can't set headers after they are sent.' Server…
-
0
votes1
answer147
viewsScript for Reading Webservice
I’m trying to make this code work, but in the excerpt: success: function(retorno) { If(retorno[0].erro){ $("h2").html(retorno[0].erro); } There’s been an error, and I can’t identify what’s missing.…
-
0
votes1
answer318
viewscarry data to another page
I’m frontending a login system and I’m using pure javascript for it. I can already log into the browser API and console to receive the data from the user who is logging in. This is my AJAX: function…
-
0
votes1
answer270
viewsUpload JSF File with ajax
I’m trying to upload any file by the element h:inputfile jsf itself, and, I try to do this with ajax, but when I try to upload this error appears in the browser console... Uncaught TypeError: Cannot…
-
0
votes0
answers60
viewsRecover Json after Success and use in PHP
I have the javascript code that returns me in a 'msg' variable the result of a query made in PHP. var page = "busca.php"; $.ajax({ type: 'POST', dataType: 'html', url: page, data: {idtabela:…
-
0
votes0
answers381
viewsUsing a php variable in a js file
I have the following problem I have a variable that contains the path of an image in the database I need to send this variable with the path to a js file, but I even found several scripts with…
-
0
votes1
answer39
viewsValue is not being taken via POST
In the index.php has 1 field input that sends a value per ajax, which must be read by cdb.php. index php.: <script type="text/javascript"> $(document).ready(function(){…
-
0
votes1
answer118
viewsServlet is responding but ajax does not reflect the answer
Good morning, I have a simple form in which I do Ubmit via ajax, then my Servlet takes this result and gives an answer, from the answer ajax will do something. I can see the answer in the browser,…
-
0
votes1
answer181
viewsCapture and parse a Torage location
I’m looking for data from an API to log in to a page. To log in I need to use the POST method, but it returns the user data already registered. So I’m storing this data in an Storage location to…
-
0
votes1
answer1129
viewsPopular Datatables via a JSON variable
I have the following function that returns data from a query in the database and stores in json format in the msg variable. $.ajax({ type: 'POST', dataType: 'html', url: page, data: {idtabela:…
ajaxasked 7 years, 3 months ago Rafael Christófano 365 -
0
votes1
answer183
viewsProblem catching Json in AJAX
I am trying to recover the data from my ajax request in json, they arrive correctly, but at the time I will use them only returns "Undefined". $("#selecionada").on("submit",function(){ var…
-
0
votes1
answer43
viewsJquery of my page does not work after being called by an Xmlhttprequest
I have the following code that takes a table on a php page and brings the table inside a div in my index. But on this my getreult.php page there are codes in jquery, but they do not work, and if I…
-
0
votes1
answer206
viewsAfter destroying the Datatable, next load shows error : Cannot read Property 'column' of Undefined
When loading the datatable for the first time, everything works normally, the table columns are viewed without problem. But when I update the table with a new filter parameter, the table is not…
-
0
votes3
answers2980
viewsAJAX Return Handling with JQUERY
I have the following script, which processes the form and updates the div #list by ajax: <script type="text/javascript"> $(document).ready(function(){ $("#formulario").on("submit",…
-
0
votes1
answer108
viewsshow user by informed Codeigniter plate
Hello, I would love your help, because I don’t work in the area, but I love to learn, I started to work with codeigniter, I’m making a system for the people of my work, today everything is done in…
-
0
votes0
answers42
viewsFetch the returned value via REST and insert into an input
I’m searching, via Restful, the value of id of a user registered in an API. Now I have to enter this value in a input HTML. I’m trying this way: I capture the value of the variable in a tag…
-
0
votes2
answers44
viewsHelp with HTML form
Sorry about the title of the post, but I’m not thinking of something to specify what I want (feel free to edit). It’s as follows: I have an html form and a button: <form id="formflor"…
-
0
votes1
answer45
viewsTake data by url (string was not recognized datetime)
I am passing an initial and final date per parameter (according to the image), as you can see in the localhost the bars (/) I am passing %20 and normally the generation of graphics occurs, but on…
-
0
votes1
answer849
viewsHow to load data from an XML file into an HTML input field?
I’m trying to upload an XML by uploading it to an object and showing it on the screen. I managed to do it in a Div But I’m not getting to show in Inputs. Follow the process and the code: I choose…
-
0
votes2
answers132
viewsProblem at the time of popular elements in the database
I was doing a project of a chat in php, with ajax, but my code it does not insert anything to the database, only I have no idea what it is, and before you think that I did not search, I tried to…
-
0
votes1
answer131
views -
0
votes1
answer19
viewsThree inputs within the same form. Can I do your actions without leaving the page (without refreshing)?
Blz Galera. I have three buttons inside the same form (register, change and view) and I would like to do the actions of the buttons without leaving the page. How can I do this? Some colleagues…
ajaxasked 7 years, 2 months ago Márcio Fernandes 51