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
answer528
viewsValue attribute of options in select are not set correctly
I need to go through an element select on a page HTML placing the elements option within it. I can already do that, the problem is that in the attribute value of those option should receive the…
html ajax angularjs html-select html-optionasked 8 years, 9 months ago Giancarlo Abel Giulian 3,999 -
3
votes2
answers58
viewsJson return from php to jquery ui
I have a php code that returns data in JSON. When it has only one value returns as it should: ["[email protected]"] When more than one value is found returns as follows: [, "[email protected]",…
-
3
votes1
answer499
viewsAjax call webmethod with friendly URL
I don’t know if it’s a frequent question, or something that’s not possible. During my studies I realized that it was possible to do this with PHP, but I didn’t see anything with ASP.NET Web Forms. I…
-
3
votes1
answer4285
viewspass javascript variable to catch with php post
Good afternoon, I found numerous ways to pass javascript to php but no way worked. thought in a way but do not know how to effect, saw that with ajax would be the only way I think, what I thought…
-
3
votes1
answer773
viewsBrowser message after AJAX request
I have an ajax request responsible for sending a file to Servlet, it is performing the process correctly. But when I update the page the following message is displayed by the browser (When I give a…
-
3
votes2
answers70
viewsSet click event to an element that was inserted via AJAX, after page loading
I am developing an instant search system with jQuery, Ajax and PHP. I created a navigation system by the arrow keys of the keyboard in the options resulting from the search. It is working smoothly.…
-
3
votes1
answer306
viewsReceive post from one view to another view
I have two Views. Index Assincrona When access to index, he calls the View Assincrona and there’s a gif uploading to the whole page (Assincrona) be loaded and displayed in View. Controller Codes…
-
3
votes2
answers3686
viewsDownload file via Ajax
In my Asp.Net MVC 4 project, I have a View with a button and the following script: <input type="button" value="Teste" id="baixarArquivo" /> <script> (function () {…
-
3
votes2
answers579
viewsReceive real time variable ajax
Well I’m making a system, and I need to receive a php page variable every time, so I can work on it on my index.php page. A friend of mine who understands more of ajax than I gave me the following…
-
3
votes1
answer2398
viewsRun PHP without updating the entire page
My code is this: <?php $buscarusuario=$pdo->prepare("SELECT * FROM top5 WHERE status = 'ativo' ORDER BY colocacao ASC"); $buscarusuario->execute(); // Exibir com Fetch_Obj…
-
3
votes2
answers1848
viewsAjax returning [Object Object]
HTML index.html <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script…
-
3
votes1
answer190
viewsAjax play audio after running successfully
I need to play an audio in the execution of the excerpt below, where it displays the data found in a query: // Verifica se o Ajax realizou todas as operações corretamente if(req.readyState == 4) {…
-
3
votes2
answers2998
viewsTake id onclick and send values via Ajax
I have a list of tasks, it has the status part, which shows for example 'On test' and a button of Approve. I’m trying with that button Approve when clicked take the task id and send an update to it…
-
3
votes1
answer455
viewsPass Datatime javascript to ASP.NET MVC Controller by Ajax
I’m having trouble passing date of javascript to the Controller via ajax.. Model: public class ModelA{ .... [Required] DataType(DataType.Date)] DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]…
-
3
votes2
answers700
viewsCall ajax inside another
How to wait for the return of an ajax to continue the requisicao of another? I got the following: $.ajax({ type: "GET", url: 'http://uma_url_qualquer.com', success: function (e) { var item =…
-
3
votes3
answers3825
viewsLimit for sending files
I have a project in Asp Net MVC . NET Framework 4 as follows: View: <div class="file-content"> <label class="custom-file-upload"> <input type="file" id="importar-arquivos" multiple…
-
3
votes1
answer13619
viewsHow popular is a select with Jquery, JSON and AJAX ? (MVC)
I followed some codes I found here of how popular a selectbox, but it is not working, is it missing something ? I’m getting a list of data with my Controller. Javascript $(document).ready(function…
-
3
votes2
answers580
viewsTake JSON value and set AJAX behavior
How to take the JSON value with ajax and define the behavior, which div and which message to display, for example: If the JSON returns {"error":"true","message":"Algo deu errado"} would display any…
-
3
votes4
answers345
viewsHow to select an option with value comparison?
I need to do "selected='selected'" in a option whose value is what is saved in the variable state recovered in Ajax. How can I do this? $('#cep').on("change", function(){ $.ajax({ url:…
-
3
votes1
answer594
viewsReturn Json PHP to Ajax
Next I have a variable in php client. printing : [{"CODIGO_CLIENTE":3,"CGC":"78.079.128\/0001-80","RAZAO":"Cliente 2","FANTASIA":"Cliente 2","TELEFONE1":"+99(99)9999-9999"},…
-
3
votes1
answer985
viewsDynamic forms on the same page in Jquery and PHP
I’m trying to make a comment portal, and so will have a text input in each POST for people to comment, these POSTS will be on the same page (Facebook style), as well as inputs, which will have to be…
-
3
votes2
answers514
viewsHow to return a pure Json (without XML encapsulation) using webservice in c#
I’m with a webservice running locally, which conducts queries directly in a database through a string type parameter. Follow the outcome of the consultation: The second moment I have an application…
-
3
votes1
answer191
viewsSummarize dynamic text in PHP with jquery
I managed to do the function of See More, with a code here from Stackoverflow, but the texts come from the dynamic database, or whatever I do to get each text? Code in php: < div class="box-body"…
-
3
votes1
answer697
views -
3
votes2
answers614
viewsUpdate database via input using ajax/php
I need to update a table in the database, reading the data entered in the input, by clicking the button. This is what I have so far: HTML: <td>ADSL</td> <td class="superdanger">…
-
3
votes1
answer570
viewsHow to feed real-time notifications while logged in?
I’m looking for a system that keeps updating the logged in user to show the messages he receives. Considering that this system will have 250-500 simultaneous users, what is the best way to search…
-
3
votes1
answer3888
viewsHow to send Images via AJAX to php
Good afternoon, I’d like to ask for your help. I’m with a system where I need to send an image of a <input type="file>" for a PHP page via $.ajax() for in, I can upload this image to a…
-
3
votes2
answers643
viewsAJAX request with form is updating the page
I am making a simple form to be sent with jQuery Ajax. Data is being sent, but is updating the normal page. I would like to know what I am doing wrong, because when sending the form the page is…
-
3
votes1
answer1297
viewsFill in PHP session via ajax
I’m having a hard time solving a problem. I have an application in PHP that needs to fill some sessions I’m using this method to send. <script…
-
3
votes1
answer45
viewsUse closure as return of a function
I need to use a variable of a closure as a return to the function to which this closure is nestled. How can I do this? response must be the return of ajaxRequest(): function ajaxRequest(type, url) {…
-
3
votes1
answer57
viewsProblem getting access time
I’m trying to take the time that the internet remained on the page, however is returned nothing. Main php file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
3
votes1
answer1708
viewsuser location by IP
I would like to know a php library that would help me with the location of the user access by IP, well I found one on the internet and even worked well (did not show exactly the location) only a 50…
-
3
votes1
answer192
viewsJquery/Ajax Duplicating
Good afternoon, I already researched this problem here in the forum and tried some solutions but I do not know what I can do wrong. I have this Function that calls my Modal. function…
-
3
votes2
answers14983
viewsHandle error: "Uncaught Typeerror: Cannot read Property of 'value' Undefined"
Hello, When making an AJAX request, I have the following error: Uncaught TypeError: Cannot read property of 'rede' undefined. Until I understand the reason, I do not have the following value on…
-
3
votes2
answers28
viewsAJAX and Weakmaps requests
As I put into practice what I have learned so far about ES2015 with Babel. specifically about Weakmaps, I got into a problem that I don’t know why it happens and with that, I don’t know how to…
-
3
votes2
answers4034
viewsdynamic url in ajax
How do I get Ajax to get the current URL? Here are the values that go to php. If I do so it works jQuery.ajax({ url: "http://localhost/jogoteocratico/consulta.php?dificuldade=1&rodada=1", type:…
-
3
votes1
answer1067
viewsEditable table with jquery and php?
I’m trying to make a dynamic table for editing the data without refresh, but when double-clicking on the line nothing happens, follow the code Jquery $(document).ready(function(){ $('#tblEditavel…
-
3
votes1
answer485
viewsPass the (integer) Return from a Controller method to the View
I have this method in a controller: int GetSpot() { List<CompanyDetail> topCompanies = GetTopCompanies(); CompanyDetail topCompany1 = topCompanies.Where(x => x.Company.TopCompany ==…
-
3
votes4
answers949
viewsChange select element value (Ajax + php) with innerHTML
Hello, I’m doing the famous combo of state carries city. Everything is working perfectly, as I will debug in my script, until the moment that must change the value of select (options returned from…
-
3
votes2
answers340
viewsCache on Web Systems
I have a web system using Ajax that is constantly updated. I need to implement a way to update the user cache of files. js and . css when these files are modified. I tried to solve it in two ways.…
-
3
votes2
answers443
viewsRemove element by clicking the jquery link
I need to make sure that when clicking on the link it removes this element tr that is the link, someone can help me? <?php foreach ($emails as $v): ?> <tr> <td><?= $v->id;…
-
3
votes1
answer1472
viewsHow to change content within div with Ajax/Jquery?
Here lists all records that when clicking edit opens a modal with description value. <?php foreach ($beneficios as $v): ?> <tr> <td><?= $v->id; ?></td> <td…
-
3
votes2
answers376
viewsSort Select by javascript ID
Folks I have a select via ajax pulling data from my database only when it comes to presenting the select, I’m not being able to present in order to ID Crescent, <div class="modal-body">…
-
3
votes1
answer2416
viewsFreight calculation with WS post office via javascript
I’m trying to calculate the mail freight via javascript, but when I do the test does not pull the data and returns me the error Xmlhttprequest cannot load…
-
3
votes2
answers433
viewsCheck if email is registered in the BD
I’m doing a search in my BD to verify the existence of email, avoiding the registration of the same again, but I’m having problem in return, the script below sends and treats the return. if…
-
3
votes2
answers255
viewsWHM/Apache + jQuery Ajax Server Configuration
Recently I started having the following problem in my server domains with WHM: When executing an asynchronous AJAX call in the background, I cannot proceed, that is, I cannot access anything else in…
-
3
votes1
answer91
viewsHow to call the id of the previous select
I have two selects, one for division and the other for groups. When the division is selected it has to bring in the second only the groups that are part of that division. In the url variable that…
-
3
votes2
answers1061
viewsTreat AJAX return (responseText)
I made a code in AJAX runs PHP and prints in HTML the result of the SQL query, the problem is that when it displays on the screen, the data is not processed, stay like this: What I need is simply…
-
3
votes0
answers49
viewsSEO, what are the odds that Googlebot will read this Rich Snippets code?
What are the odds of Googlebot read that code Rich Snippets? Tips on how to improve are welcome... I can only use Front-END, if you hadn’t already used one PHP to solve this. <script…
-
3
votes2
answers295
viewsError in Spring: console Delete request points out that the method is not supported
I am making a request via Ajax to delete a user and get the message that the delete method is not supported, someone has any idea what could be? My controller: package com.br.livraria.controller;…