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
-
3
votes1
answer735
views -
3
votes2
answers67
viewsRoute c# redirecting to wrong action
I have an action that returns a Partialview [HttpPost] public ActionResult SelectCidadesPorCodigoUF(int idUF) { //It do something and returns a PartialView } This action is mapped as follows:…
-
3
votes1
answer135
viewsProblems with Ajax
I’m making a website that has requests ajax and login area. The problem is that when I create a form within a modal in bootstrap for the user to log in, my requests ajax stop working. Form code…
-
3
votes2
answers269
viewsLength of jQuery does not update with the append, how to resolve?
I am working on a script that makes it load more records from the database when the user arrives at the end of the page scrolling. PHP/SQL is right, the problem is that jQuery does not correctly…
-
3
votes1
answer353
viewsHow to fill in selected input only
I have a problem filling a field within a table that is within a loop For, and one of the titles of this table is a button modal, that as it is clicked opens a selection of units of measure. And to…
-
3
votes1
answer1275
viewsPrint table with ajax and php
I’m trying to print a table using php, ajax and mysql. I have this excerpt in Html <!DOCTYPE html> <html> <head> <title>Teste Ajax</title> <?php…
-
3
votes0
answers138
viewsJquery Ajax - During upload - show real-time return date
I want the user to be able to track the progress of each shipment in an application. I have on one side, sending via ajax, and with php I perform a foreach for batch sending. For example, select id…
-
3
votes1
answer3994
viewsHow to upload an image using jquery/ajax?
I am sending the following data to save a form: function editaFeira(id, descricao){ if (confirm("Confirma a alteração de " + descricao + "?")) { $.ajax({ type: "POST", url:…
-
3
votes1
answer183
viewsDifficulty in picking up a certain type of return in c#
I have a return that I send via Ajax that it returns in the URL as follows:…
-
3
votes1
answer152
viewsTable Fipe Change year 3200
Hello... I have a system that pulls the information table fipe, but it pulls the year 2018 or 2019 as 3200 How to trade? This is the code that searches through a dynamic select $conectando = "SELECT…
-
3
votes2
answers1373
viewsAjax request to return Forbidden error 403?
I have the following code on my website. setInterval(function(){ var id = $("#id_radio").val(); var id_glob; $.ajax({ type: "POST", url: "ajax/update_radio.php", data: "id="+id, success:function(e){…
-
3
votes1
answer144
viewsAjax function for MVC controller
I have this function with array and I’m not getting through to the controller values, i listing, it appears correctly, use angular. $scope.addItem = function (user) { $scope.items.push({ de:…
-
3
votes1
answer524
viewsAjax and PHP for image upload + information registration
I am hitting myself since yesterday with an upload of images in AJAX. I will publish the advances I have studied and the difficulties I still have in case anyone can help me :) My script as I always…
-
3
votes2
answers397
viewsJquery.get() asynchronous or synchronous?
I’ve seen the official documentation here and I do not see mention that the default value is asynchronous or synchronous, I see no example of how to use both (in the second code below). I know it…
-
3
votes1
answer282
viewsAjax does not work on firefox and Chrome works
I’m giving an input in the database, Chrome works, firefox my request not success. Someone has already gone through this? I switched the serialize() function and passed the values invidual, to see…
-
3
votes2
answers304
viewsSending data with ajax
I have a online chat that works with ajax and PHP. Yet, oddly enough, when I enter only one question (?) and sending the jQuery, returns an error in the console. The ajax gets into the error() and…
-
3
votes1
answer199
viewsHow do I make my form work with reCAPTCHA?
I am saving the data by Ajax, however my reCaptcha is not working properly, the form is sent even without pressing inside the Captcha. My Controller [HttpPost] [CaptchaValidator(PrivateKey=…
-
3
votes2
answers887
viewsHow to receive a json in Controller and pass to Object array
I am having the following problem, I need to take the Controller filtered objects to export to report. I’m sending by json using Ajax, but I don’t know if object is being sent to Controller,gave a…
-
3
votes1
answer530
viewsHow to save data to database through ajax?
I am trying to send a javascript form to my webservice through ajax. The idea is that: javascript send the complete form, and in the webservice, it will be saved in the database through the persist…
ajaxasked 6 years ago Weslley Fillipe 161 -
3
votes1
answer187
viewsWhat to put in the $.post ajax variable
Hi, I’m not very good at javascript,ajax,jquery and json I’m still learning and remembering that I’ve researched a lot, but I couldn’t do what I want. The following is my project is in MVC with…
-
3
votes1
answer150
viewsajax with jquery - data format
A doubt. In this example: This is just a test where the api-clients-edit.php page receives the data, saves and returns the status. var dados = $("#editarClientes").serialize(); dados +=…
-
3
votes1
answer155
viewsSuccess message with ajax boostrap 4 validation
I have this code that works perfectly. On the page cadastrarFuncionario.php are made an INSERT in the database and an image upload and if successful in the upload has a echo "Upload efetuado com…
-
3
votes1
answer396
viewsReturn only a certain element of the current page with jQuery AJAX
Personal I am needing to pick up only one element of the current page returned via AJAX. The element I need is the id="main". The most I could get is the full page, but I just wanted this element…
-
3
votes1
answer1116
viewsDownload functionality with Ajax request
I’m doing a download function with request via ajax in my application, but it is not working. If I access the address using the GET method with parameter in the address, the download works…
-
3
votes1
answer1600
viewsHow to update content without reloading an HTML page?
I built a Flask API connected to a Mysql database, which has its entries displayed in an HTML page. player_manager.py: from flask import Flask from flask import render_template from flask import…
-
3
votes2
answers102
viewsAdd new checkboxes with ajax
Hi, I’m having a problem with my code, it’s a little complicated to explain, but I’ll try. My goal is the following, when clicking on checkboxes, a target is selected and added in the textarea…
-
3
votes0
answers330
views -
3
votes3
answers48
viewsEmail sending problem like Ajax
I’m developing a website where on the main page it has a section with a form. This form is for registering emails for sending newsletters. The other pages of the site also have other forms and all…
-
3
votes0
answers136
viewsUpdate all View data via Ajax
I need to update all my data View, i call this function to update, passing the company parameter: function CarregaCaixa() { var Empresa = $("#EmpresaFiltroId").val(); var url =…
-
3
votes0
answers645
viewsAjax always returns HTTP error Error 404.15 - Not Found ASP.NET MVC 5
I use ASP.NET MVC 5 and developed a website, when I execute the following Ajax request: $.ajax({ method: "POST", url: "/Galeria/AddGaleriaItem", data: { ID: galeriaID , ObjectString:…
-
3
votes2
answers53582
viewsAccess to Xmlhttprequest has been blocked by CORS policy
I have two Flask applications running locally on my machine. One is running on port 5000 and the other on port 5050. I need to make a 5000 app call to 5050. But I’m having this problem: Access to…
-
3
votes1
answer1209
viewsPOST communication Ajax for Flask
I would like a help with a Python application using the Flask framework, I want to send and receive data via Javascript using Ajax, but I’m not sure how to do, all I got was a collection of…
-
2
votes2
answers634
viewsajax duplicating div
The function $.ajax is working correctly, but the return of the data being entered inside the div <#exibeCep> is being duplicated when the user clicks several times on the button. I tried to…
-
2
votes1
answer206
viewsLoad javascript file together with Infinite scroll
I need to reload a JS function as soon as I scroll the page with infinite scroll, in AJAX. When the page is scrolled the JS file needs to track.
-
2
votes1
answer537
viewsAjax request in C# update authentication
as I do for each Ajax request, update the Forms Authentication cookie. I want to update on Forms Authentication in my controller, because it is a calendar screen that uses Fullcalendar. I’m having…
-
2
votes3
answers1028
viewsHow do I populate a $Scope (angular) with get. Json (jquery)?
I have a PHP application and use $.getJSON jQuery to fetch data and present it to my user. I would like to fill a table using Angular. How do I fill one $scope with the response of $.getJSON ? Code…
-
2
votes1
answer464
viewsAjax between domains - how to do?
I need to do an Ajax for a webservice that is in another domain, because a browser security policy is not possible. You can do this via JSONP?
-
2
votes1
answer381
viewsJSON Structure for Highchart Line
I would like to know what would be the correct structure to create a LINE chart in Highcharts with dynamic data: Example http://jsfiddle.net/gumaro/6u4Ha/2/ I have values that I want to show in a…
-
2
votes2
answers504
views -
2
votes2
answers1555
viewsCalling action with AJAX, but does not return Alert to view
In the textbox Ticket, at the event onChange() I call AJAX below: $('#Ticket').on('change', function () { var tkt = this.value; $.ajax({ url: '@Url.Action("VerificaTicket", "Oc")', data: { 'tkt':…
-
2
votes2
answers993
views -
2
votes1
answer240
viewsjavascript array communicating in php
I need to create a array in javascript send your information to a page php. How can I do that? Next, I had a pg in php that carried a lot of data from the bank. So to improve her performance, I…
-
2
votes1
answer1518
viewsCall the Jquery function
I am developing a shopping cart, I am wanting to put an element inside a DIV, this element has a function Jquery that is not working your call(function to remove products from the cart).…
-
2
votes2
answers143
viewsFunction with jQuery recording in two tables does not persist in BD
My need is as follows: write to a table, take the generated ID and write to the second table with this ID. As the order is to do this in jQuery, a function has been made (by a colleague). But…
-
2
votes1
answer180
viewsRun JS inline inside the return of an AJAX
I have a hotsite that works on AJAX and friendly urls (more specifically with PJAX). Where the top and bottom are fixed, and only the content is injected into the page. The problem is that now, I…
-
2
votes1
answer132
viewsSending php email - Swift_attachment does not work
I’m trying to send an email, but I can’t attach a file. The file is copied to the tmp uploads folder, I have checked and it is there. If I comment on the line that attaches the file, the email is…
-
2
votes1
answer183
viewsForce a 200 header in Ajax while the PHP function is in Sleep
I am creating a chat function, however, the server is waiting for a BD interaction for a period of 10 seconds. The problem is that while the Ajax connection is open waiting for an answer within 10…
-
2
votes2
answers847
viewsChanging index.jsp dynamically without reloading the page
Within my index.jsp I have a table that in one of its cells and an iframe that displays one of my jsp, and depending on the type of action taken by the user it changes which page is displayed within…
-
2
votes1
answer27528
viewsCalling Javascript function with onclick with content loaded from div
I have a div that has its contents loaded after loading the rest of the page. It is called by a button via AJAX. I have another button inside that content that would call a Javascript function to…
-
2
votes1
answer88
viewsHow to remotely recover text from PHP messages in jquery.validate
Friends, I would like to know how to remotely recover text from PHP messages in jquery.validate. $('#ajax_form_inclusao').validate({ rules : { numeroContrato : { required : true }, dataInicial : {…