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
answer81
viewsForm with two destinations
I have the following form: @using (Ajax.BeginForm("minhaAction", "meuController", new AjaxOptions() { HttpMethod = "POST", OnFailure = "alert('Erro!')", OnSuccess = "TrabalharResultado" }, new { id…
-
2
votes1
answer163
viewsSend image in form with AJAX / PHP / Mysql
I’m redoing a form for a website that I need to send an image of, but I’m not able to upload and I need your help. I’ve already searched and I can’t find the answer... Function: function…
-
2
votes2
answers1231
viewsChange variable value in Ajax
The Problem I have the variable flagExistenciaArquivo, and I need it updated if the file exists or not. I call the function verificaExistenciaArquivo within another function, setting as parameter a…
-
2
votes1
answer645
viewsPHP Upload ajax of miscellaneous files without Submit
I need to upload without leaving the page, I believe the best would be ajax, correct? I found some post here on Sopt, but I could not adapt my need. I need to send these two fields, one of file and…
-
2
votes1
answer119
viewsEvent that performs a database query when clicking on a <tr> table
Hello. I’m making a system that when the form is submitted, a table is generated with the survey data. So far so good. Now I’d like to know how I do for when I click a button (), which is inside a…
-
2
votes2
answers529
viewsLoad page without loading music player
I’m making a website I have a music player on HTML5, only that every time I change the page the player loads again. In my research it seems that there are all solutions or AJAX or IFRAME. IFRAME say…
-
2
votes2
answers1455
viewsLoad remote content into a Twitter Bootstrap modal
I’m trying to load the contents of a modal from a remote page. This is the code I’m using to run the tests. $('[data-load-remote]').on('click', function (e) { e.preventDefault(); var $this =…
-
2
votes1
answer35
viewsScript adding multiple submits to form in modal
Next, I am trying to perform a password recovery form on a modal, however, each time I click on the button that opens the modal, a Submit event is added to the form. Any idea how I can solve this…
-
2
votes1
answer129
viewsRecover parameters with $_GET and $_POST in the same php file, is that correct?
I make this request: app js.: fetch(URL + ?controller=UserController&action=insert, { method: 'POST', body: formData }) fetch php.: $controllerName = $_GET['controller']; $actionName =…
-
2
votes1
answer366
viewsLoad HTML into received DIV via AJAX request by converting special characters
I am maintaining an application where there is now the need to load an HTML from the database into a div. Regarding the return of this database HTML, it’s cool, I already receive the values in a…
-
2
votes1
answer61
viewsWhen using AJAX, can I upload content without being around the form tag?
should be placed the inputs, etc within a <form id="algo" method="POST"></form>? <form id="algo" method="POST"> <input type="text" value="NADA" name="valor1" /> <input…
-
2
votes1
answer1432
viewsReturn ajax function with result of an sql search
I am doing a section on my website, in which there is a field select. When I select something in that select, i want to conduct a BD search by returning the information about that item selected to…
-
2
votes1
answer2118
viewsHow to fill an xml (request of a WS SOAP) with Javascript
I have an Ajax function doing a POST for a SOAP webservice and I need to insert values into the request XML elements based on what the page user inserts into an input text. How can I do that? My…
-
2
votes2
answers1317
viewsWhy content-type false AJAX - JQUERY
I am sending files via AJAX with Jquery, using the FormData(), and then a question arose, why does it work: $.ajax({ url:"action/receipt.php", method:"POST", processData: false, contentType: false,…
-
2
votes2
answers915
viewsHow to keep the data filled in <input> after clicking send the data?
Hello! I have a table with some input fields, which need to be filled in before the user submits it, however, I needed these completed data to remain after it was sent, even after the page was…
-
2
votes0
answers366
viewsSend POST with Ajax and Codeigniter
For almost 1 day I am facing a problem that so far can only solve (make sure I was right) doing the wrong, IE, gambiarras. I’m trying to create the Transparent Checkout of Pagseguro but I can’t send…
-
2
votes1
answer1603
viewsError while listing Data via Json
I’m wearing a method to return an object of the type JSON but is not listing the information: Man Controller public ActionResult GetDados() { int codigoVenda = 2; try { SistemaDBEntities db = new…
-
2
votes2
answers581
viewsGet the ID of a line from a Gridview query
I made a query where it is populated a gridview, the columns are code, category, noprazo, foradoprazo. In the columns noprazo and foradoprazo, I left them as linkbuttom that by clicking on the…
-
2
votes1
answer46
viewsDouble Message Error Javascript Ajax
I tried to make a code so that when I changed something in a div, I would automatically change the page in real time without having to refresh or anything like that, however when I change the…
-
2
votes1
answer8914
viewspass variables from AJAX to PHP
I’m trying to pass values through two variables in AJAX to a PHP file, but it’s not working. if I put data: { idUsuario: "5", idEscolha: "1", } right. What is wrong? $(document).ready(function(){…
-
2
votes1
answer82
viewsRemove Session Data Dictionary with ajax in Django
I have an array with a data dictionary in my Session and would like to remove according to the row the user is going to click on a table where these values are displayed. My view: def…
-
2
votes3
answers1751
viewsReceive Json array and insert into a loop with HTML
Good evening, I’m using phonegap to make an app and then I get the following problem: I have this code in HTML: <div class="content"> <article class="underline"> <a…
-
2
votes2
answers60
viewsI cannot print out the values of my Array.
I am unable to print the values added to my Array in the Console. The Console response is empty as if it had not added the values to the Array. Below follows the code and the XML Document. Code…
-
2
votes0
answers356
viewsSelect dependent with three levels
I am setting up a simple system of booking vehicles for the company and I need to assemble a "triple" combo that will check the vehicle and the available schedules for it. I set up a double of the…
-
2
votes2
answers398
viewsSelenium Python
I’m having trouble manipulating popup. Apparently, the popup code is generated in real time, not being captured by Selenium. In fact, it is possible to see the use of jQuery, I did not detect Ajax,…
-
2
votes1
answer283
viewslightbox on page loaded with ajax
Good people... here’s the thing: I’m making a page in php but java I don’t really know anything.... I used only java that I removed from an example to make dynamic page loading and to make a…
-
2
votes1
answer1167
viewsHandle JSON data coming from a jQuery datepicker request with ajax
I need to create an agenda.. I have a datepicker and a fixed table beside with schedule that start from 08:00am until 19:00pm and when I click on a datepicker day it returns to me all the queries of…
-
2
votes2
answers316
viewsJSON function Does not return value
I have a problem, I would like to popular my Dropdownlistfor with the result of another Dropdownlistfor, for this I am using Ajax and Json, same concept they do when they want the result of State to…
-
2
votes2
answers301
viewsAjax request data with Angularjs is not getting to the action method
I know this is very basic, but I’m starting now. I’m creating a neighborhood register, using Angularjs, my back-end is in C# with ASP.NET MVC. My method is called by view, but does not receive JSON:…
-
2
votes3
answers1108
viewsManipulating with Update Panel
I’m working with asp:button e asp:Listbox using the event of click of asp:button to popular the listbox. I am trying to manage so that there is no more postBack in the event of click button, but the…
-
2
votes3
answers310
viewsdoubt with ajax and angular
I have my back-end, in my controller I have a way salvarBairro(string dados) I’m using angular, this guy here calls my way to salvaBairro from the back $scope.AddBairro = function (bairro) {…
-
2
votes2
answers1363
viewsSubmit from several sources with AJAX, one at a time
I have a code that I pick up with PHP the students registered in my bank, and I do a for so it has 1 form for each student. Each form has its Submit button, which takes it to AJAX to serialize the…
-
2
votes2
answers560
viewsRescue data from checkbox stored in the bank
I am recording data from 6 checkboxes in the database. I am treating each one separately, as below: <tr> <td>Tabela Nutricional:</td> <td><input type="checkbox"…
-
2
votes2
answers2413
viewsAjax does not work - send PHP data without refresh
I’m trying to send merged data from a form + PHP variables to be inserted into the BD, without there being page refresh. For this, I have a simple html form, and a PHP conditional that checks the…
-
2
votes1
answer476
viewsAJAX appear Divs according to database ID (MYSQL)
I’m trying to do that every time I squeeze in #buttonIdUltimoItem a structured DIV appears taking information from database from the younger to the older according to the ID. The problem that…
-
2
votes1
answer123
viewsAjax - Protect Webservices
I am building an Asp.net MVC application and make many calls to actions and webservices via ajax (jquery or Angularjs). How could I hide these calls, or ensure they are made only by my app? For…
-
2
votes3
answers1955
viewsAjax works locally, but does not work on the server
I have an application on Asp.net mvc 5 where the code below works locally (visual studio 2012), but does not work after the publication on the server. controllerAction = "/Controller/Action/"…
javascript jquery asp.net-mvc ajax visual-studio-2012asked 8 years, 10 months ago Thiago Rodolfo 129 -
2
votes1
answer1028
viewsSend data from a dynamic table via ajax
I have a dynamic table, where I can add or remove a row, when I add a new row I can send that writing by the form... But not how much I try to send via ajax , just sends the first line. How right it…
-
2
votes0
answers366
viewsAjax returning HTML along with JSON
The code I made was working normally but suddenly it started to behave differently. I’ve done all the debug possible, take a look $( function(){ // When submit it…
-
2
votes1
answer343
viewsHow to return POST in the same div in which it is executed AJAX
Actually there are 2 problems: 1º I have a DIV CONTENT where I open via AJAX the content in it, the same is happening like, if I click 2 time on the same link he instead of reloading the page he is…
-
2
votes1
answer835
viewsHow to pass dynamic variables from a url to php via ajax
First of all I have looked in several other posts on the subject here and I did not find what I need, my scenario is the following I am generating several EX links: challenge.php? id=2&name=Joao…
-
2
votes2
answers168
viewsInclusion of external files . js
Guys, I have a . js file in meudominio.com/.js file (example). This file contains functions that send requests via Ajax to another file, the.php data (does the search and returns in json), which is…
-
2
votes2
answers547
viewsPHP Works Local (XAMPP - PHP 5.5.33) but does not work on Server (PHP 5.5.31)
I’m making an API, and locally it’s perfect. The problem is when I test it on the server. I created it in a subdomain, example: http://api.dominio.com And I’m testing in another subdomain:…
-
2
votes1
answer474
viewsAJAX PHP system - When using $("#div"),load("page.php", {foo: bar}); jQuery not found $("#div")
I have an AJAX system in PHP and I have an index.php where I have all src js included: <head> <link rel="stylesheet" href="/assets/fileinput/css/fileinput.min.css" media="all"…
-
2
votes1
answer6201
viewsHow do a select html load a list of options each time another select to change selection?
I am needing to have a select load an option list each time in a previous select change selection. I know I’ll use Javascript to do this, but how? Follows the code:…
-
2
votes0
answers261
viewsError, status 200 load Ajax
I have a call ajax that falls in the callback error and brings me a status 200 and statusText load. Follow the ajax: $.ajax({ type: "GET", crossDomain: "true", dataType: "jsonp", contentType:…
-
2
votes2
answers1057
viewsImprove code to only get value from localstorage
I have the following code: jQuery.ajax({ type: "POST", data: $(accent_color).serialize(), success: function(data) { console.log(data); } }); How do I get this code to pick up the value below: var…
-
2
votes1
answer685
viewsLoad datepicker into modal
Good morning. I’m not able to load the datepicker inside a modal called via ajax, someone would have an example of code? MODAL: <div class="modal fade" id="modalaltera" tabindex="-1"…
-
2
votes1
answer58
viewsFunction to send AJAX data?
I am trying to set up a function to send an ajax, the function should return my ajax result: var url = localStorage.getItem("site"); var dataForm = new FormData(this); $.ajax( { type: "POST", url:…
-
2
votes3
answers127
viewsAJAX - Appearing Ivs
How do I get one div on the return of AJAX, for example: I type in input a user, and send the data by AJAX thus: $("#botao").click(function(){ var xprocesso = $("#segundo").val();…