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
answer14
viewsListing duplicate data when performing SQL and performing . load()
I looked in several places, including in the jQuery documentation and did not find a solution. I need a light of what to do on this occasion. I apologize if it is not very clear, I have never been…
-
1
votes1
answer37
viewsRefresh of an <input> containing Database values
Hello let’s start explaining what I need kkk Basically it is a game where I attack, after attacking it inserts in DB the CD turns, and at each new attack reduces the time by 1, what I wanted to do…
-
0
votes3
answers311
viewsProblems with AJAX XML Request
I’m having a problem I made a Javascript code to display via AJAX an XML with a list: My XML is like this: <?xml version="1.0" encoding="ISO-8859-1"?> <telas> <item>…
-
0
votes2
answers2126
viewsError making Ajax request
When I try to make a requisition ajax using the command $.post jQuery appears an error in Chrome Network someone knows what might be this error Code: I’m using the codeigniter framework…
-
0
votes2
answers1228
viewsUsing Ajax in Cakephp 2.0
I cannot use the normal syntax of Ajax in the Cakephp. I’ve seen some things about Jshelper, but I can’t do what I want. What can I call a action of controller for Ajax sending certain data and then…
-
0
votes5
answers1939
viewsSending form via AJAX, method PUT
Problem: I am trying to send a form with ajax via PUT, but it is returning the following message on Chrome console: PUT http://intranet.dev/%7B%7B%20URL::to('upload/'.Auth::user()-%3Eid)%20%7D%7D…
-
0
votes2
answers1487
viewsAccent + $http.get
I’m having trouble making an Ajax call using Angularjs because the strings that have accents are returning null, in response to the call, my PHP is returning a JSON json_encode($data), and upon…
-
0
votes1
answer1726
viewsHow to save the results of a "drag-and-drop" in table?
I need to do a drag-and-drop that looks like the image below, which is the system I’m developing. In the buttons referring to "1st Period", "2nd Period" and others, I put a function that returns the…
-
0
votes2
answers241
viewsFiring CSS Transition when performing ajax request
I’m trying to do the following, before the element gets the answer ajax opacity from it to 0 and trigger the transition, until then this working beauty, the question is that after I pass the…
-
0
votes1
answer262
viewsHow to authenticate with Devise via AJAX?
I need to do login, for example, on the home of my website using GEM Devise with AJAX. Does anyone know any way?
-
0
votes2
answers470
viewsUpdating data from a div?
How do I update an element’s information div with jQuery without necessarily reloading the page? Ex.: Send a post of a insert and the information provided by insert appear right on the div pulling…
-
0
votes2
answers1336
viewsLoading with Ajax
I wanted to know how to make an image, or something, to indicate that the page is loading. I have a process that takes about 7 seconds and for the user not to keep clicking thinking it was not, I…
ajaxasked 10 years, 5 months ago Diego Zanardo 3,301 -
0
votes1
answer176
viewsProblems with multiple ajax forms on the same page
I’m having a strange problem when I put several forms on the same page (in the index case) all have the parameter remote: true created from a loop in my records. The problem is that only the first…
-
0
votes1
answer375
viewsList several ul inside a li using AJAX
How can I list varios ul within a li, dynamically, with AJAX? Something like ul>li>ul>li>ul>li The doubt arose because I’m making a linear network of a MMN system and I can’t…
-
0
votes2
answers2445
viewsJson is not getting the data
I’m doing some tests with ajax, and made a script very simple in php presented below: index.php <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <script…
-
0
votes1
answer1006
viewsSession variables in ASP.Net
I have an AJAX method that sends me a certain value, when requested, for a session variable (a list of strings in this case). Session variable private static List<string> ListData { get{return…
-
0
votes1
answer518
viewsHow to remove table row by passing your id to an object?
I would like to click the remove row button from the table, run an ajax function that would pass the row id to the java method. Page deletion works, but I’m not getting the id to delete the right…
-
0
votes1
answer357
viewsRun javascript function on AJAX calls to a specific page
I have a site in Laravel where the content is dynamically loaded with AJAX, IE, in each call Laravel returns only the view of the part I need, in a certain page I need to initialize a jQuery plugin…
-
0
votes1
answer2937
viewsHow to send PHP variables using Ajax
I am loading the page through ajax but as I have to send parameters by url I do not know how to send them with ajax . I tried so <?php $album=$_GET['album']; $id=$_GET['ntf']; ?> <script…
-
0
votes1
answer114
viewsCoffeescript/Javascript return/scope problems
I’ve got a route in the Rails get '/estados_por_pais/:pais_id which returns me a JSON array with states of this country. This works perfectly. I created a Coffeescript class with a static method…
-
0
votes1
answer252
viewsAjax paging via server
I need to make a pagination via server only via Ajax. Below I’m posting the grid how I’m doing, but I need to get the dynamic values and do not know how to do, follow the grid function…
-
0
votes1
answer519
viewsUpdating only a tr with ajax with returned mysql data
This is HTML code assuming it has already been processed by PHP. <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td>nome</td>…
-
0
votes5
answers2474
viewsHow to select a checkbox and recover data in the database?
I have two types of checkbox and I need that when selecting one of the two is displayed a field of type input text with the information coming from the database. The field input will be disabled,…
-
0
votes3
answers983
viewsGet URL Code ID and insert into JS
How to get the code galeria of url http://URL/galerias.php?galeria=casais and put in js? $(document).ready(function() { $('#conteudo').load('galeria.php?galeria='prodId'', function(){ $('#gallery…
-
0
votes2
answers233
viewsHow to reload a page with load.gif?
Dear, how do I make the page reload so it doesn’t "blink"? I can leave a GIF on the screen while the page is reloaded? $('#objetivos-form').live('submit',function(){ var form = $(this); // validando…
-
0
votes1
answer276
viewsHow to get values to popular a dropdown dynamically
I am developing in . NET MVC and in my application, I have a form that registers people via Ajax. This registered element should appear in a list dropdown, it should appear dynamically without…
-
0
votes1
answer358
viewsMVC Webapi Ajax error on type-approval server only
I have a mvc page that calls a method in the webapi (another project within the solution), it turns out that in the localhost everything works normally, when it will homologation, when calling the…
-
0
votes0
answers185
viewsCalling web service via Ajax with focusout function
$("#<%=txtProduto.ClientID%>").on("focusout", function (event) { event.preventDefault(); $.post(AjaxService.Pessoa(<%=txtProduto.ClientID%>), function (data) {…
-
0
votes0
answers328
viewsDuplicate BD data when requesting Ajax
Every time I try to register a new comment, it doubles in my database. It loads the comment by ajax, but after I refresh the page appears the duplicate comment. <?php…
-
0
votes1
answer68
viewsjQuery event without user interaction
I am accessing the Mysql database and giving a Select in a table q will return several ddd’s and phones, with this data I would send to a server via get or post using jquery with ajax. The problem…
-
0
votes2
answers9803
viewsSending form via jquery ajax
I have a form I need to send whenever I give a focusout in the input of the value. However I’m not getting it to give the Submit. Any tips for doing this? Thanks in advance. <?php foreach…
-
0
votes1
answer1032
viewsAction redirect another Action using Partialviewresult
public PartialViewResult Index(string quantidadeRegistro) { int qtd; int.TryParse(quantidadeRegistro, out qtd); var bdPedido = PedidosAplicacaoConstrutor.PedidosAplicacaoEF(); var bdCliente =…
-
0
votes0
answers970
views -
0
votes1
answer1761
viewsSave variable value javascript in database
function showpos(position){ lat=position.coords.latitude lon=position.coords.longitude var enderDe = (+lat+',' +lon); How do I save the variable enderDe in my database?!…
-
0
votes1
answer1811
viewsExplodes in Jquery
I’m still struggling in Jquery, before that I’m bringing a value of Mysql database: <div id="cod_<?php echo $jmValor->IdCodUsuarios; ?>">Nome do usuário</div> But I need to do…
-
0
votes0
answers333
viewsSave Inputs from a Website to a Database
I’m a beginner in HTML, Javascript and the like. I need to save the user inputs of my site in a database. My pages, especially the registration page, was developed 100% in HTML. What I need to do is…
-
0
votes0
answers64
viewsRun php on click, with jQuery
I’m trying to do a function with jQuery (I saw it once in jQuery), where when clicking on a link, runs a php page in the background. Note: I am not good with jQuery. <!DOCTYPE html>…
-
0
votes1
answer174
viewsSend select to print with php
I need to dynamically create a table with "n" lines and then send this table to print, but not succeeding, the construction of the table is like this: // laço para buscar e-mail e efetuar envio…
-
0
votes1
answer518
viewsVariable in Ajax request
Code to receive the numeroCartao of the user via $_Session and show all information about it. And from here I can delete this user via AJAX. In this excerpt of the code I can see the array…
-
0
votes1
answer237
viewsGET image/gif with jQuery
I tried this but the Google Chrome Developers utility recognizes dataType as xhr $(document).ready(function() { $.ajax({ type: "GET", url: "/img/img.gif", dataType: "image/gif", cache: true }); });…
-
0
votes1
answer1332
viewsUploading files using REST and Java
I am creating an application and need a way to upload xls/xlsx files by sending the file from the front end (Ajax) to the back end (Java) so it can be manipulated. Ajax code:…
-
0
votes1
answer164
viewsDifficulty with AJAX picking nodes values
I would like to separate this data with ajax, but I’m having a hard time with the nodes: <?xml version="1.0" encoding="ISO-8859-1"?> <android_ecs.xml>…
-
0
votes1
answer75
viewsPopular combo with ajax call
Well people, I would like to include a data and at the same time update the ajax that is next ... In the code I inform the content and after selecting the new button I include the content and update…
-
0
votes1
answer589
viewsObject Object, how to not issue this alert
Well, I have pages that send asynchronous requests, but when interrupted they send an alert [Object Object]. This gets in the way a little, because it appears while the server is pointing to the…
-
0
votes2
answers1012
viewsHow to list and query contacts with PHP and Javascript?
Hello, I need a practical example in PHP that brings me to contact list of a database table, and click on in a contact is displayed the information of the same. Follow the image below: I am a…
-
0
votes2
answers294
viewsRequest ajax accessing already included scripts
Eae guys, I have a view that renders a partial view. Index.cshtml <script type="text/javascript" src="~/Scripts/jquery-2.1.1.js"></script> <div class="tab-control"…
-
0
votes1
answer59
viewsFill in form with customer ID
I have a form with customer ID, customer name, address and email. As the ID is only wanted that when the input of the ID is filled in, do a search in the database and complete the rest of the form…
-
0
votes1
answer626
viewsAdd and remove favorite items with php Session and ajax
Personal talk, I need to implement a feature on my site, which will allow the user to select the properties of their liking by clicking an "add to favorites" button, and clicking again it can remove…
-
0
votes2
answers723
viewsXmlhttprequest Expect Response
I would like my Xmlhttprequest to wait for the answer. function UploadFile(campoFile, urlUpload, campoNome) { var img = $("#" + campoFile).val(); var resultado = false; if (img) { var file =…
-
0
votes1
answer69
viewsNot from Submit with only 1 click in form if the focus is on a p:ajax field
I’m not getting the Submit in the form with just one click. When I click "Ok" the field loses the Focus and processes the ajax. Then I have to click again to send. ... <p:outputLabel…