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
answer851
viewsReload table without refresh with Ajax jQuery
I have a table that has the option to update records, but need that when changing a record it is changed dynamically in the table without the need for refresh.. already working the part of the…
-
1
votes1
answer26
viewsReturn of Service
I am with the following problem, I make an ajax call to my service and it returns me a paged list everything ok.. And I have a button where I download to excel, only because it is a very heavy table…
-
1
votes1
answer383
viewsLoad pages without duplicating content through AJAX
I have a navigation system by ajax + pushState on my website. If the user clicks on an internal link, a $.post and I check in PHP if $_SERVER["REQUEST_METHOD"] === "POST" then I load a page, for…
-
1
votes0
answers33
viewsHow to enable cross-origin on Tomcat?
Basically I need to enable the Cross-Origin in my Tomcat 8.5. I want to know the right way to do this and what the risks are?
-
1
votes0
answers37
viewsWhat is Ajax and how to use it?
I looked for exactly what Ajax is here in the OS but I did not find, I only found how to use ajax for this and for that. So I wanted to understand better, because I only know how to use Jquery,…
-
1
votes0
answers362
viewsError with Ajaxsubmit
In doing .ajaxSubmit() of a form with a input type="file" I always get the error: Uncaught Typeerror: jQuery(...). data(...) is not a Function Form: @using…
-
1
votes1
answer511
viewsWhen clicking the button makes two ajax requests, how to avoid?
When I click on the "Hire" button it makes two requests on the server at once, as I can avoid this? <button type="button" class="pagar" id="10.00">Contratar</button> Ajax…
-
1
votes2
answers148
viewsWhat does this line mean? --> $.ajaxSetup({ scriptCharset: "utf-8" ,contenttype: "application/x-www-form-urlencoded; charset=UTF-8" })
Hello, I’m analyzing a program already made to learn, it’s working, but I got to this part and I’m not finding online the meaning of it. Could someone help me? Follow the line of code: $.ajaxSetup({…
-
1
votes0
answers66
viewsFullcalendar remove Ajax/PHP event
I am trying to use the removeEvent method in my calendar and send data in ajax to delete the event from my database. eventClick: function (calEvent, jsEvent, view) { $.ajax({ url:…
-
1
votes0
answers33
viewsUse callback output in a javascript variable
I have a variable within the success of function $.ajax() only that I need the contents of that variable in a part of the code, outside the $.ajax(). I’m trying to create the way: jQuery.ajax({ url:…
-
1
votes1
answer128
viewsSave uploaded file to Ajax in backend Node
Hello I have a backend in Ode and I’m getting this ajax request var arquivo = $("#assinatura"); arquivo.on('change', function (event) { if (arquivo[0].files.length == 0) return false; var data = new…
-
1
votes3
answers1809
viewsAssign received value via ajax to a variable
I have the following function: var idArtigo = $(".codigo", this).text(); myJSRoutes.controllers.ArtigoDocumentoController.getArtigoByDebitoTipo(parseInt(idArtigo)).ajax({ success: function (data) {…
-
1
votes0
answers26
viewsSend image via API to AMAZON AWS
I need to send an image via jquery or javascript to an API hosted on Amazon. I can send it through Postman, it shows me this sending code: var form = new FormData(); form.append("file",…
-
1
votes1
answer499
viewsMask in Ajax table
I own a autoComplete that I developed, where when typing some value, the system returns a table with the data of this autoComplete. This table is being returned via Ajax. However, I would like to…
-
1
votes1
answer615
viewsWebsite with audio MP3 does not touch iPhone
I have a website where I play MP3 songs when I click on PLAY. On PC it works perfectly, but on iPhone it doesn’t play. PLAY BUTTON echo "<a href='#' id='tocar-musica'> <input type='hidden'…
-
1
votes0
answers93
viewsProblems to display data with Ajax
Hello. I’m having a hard time getting every time the user clicks a different button on my form to run an Ajax. If I put Ajax out of mine $('button') it displays on the page perfectly, list all the…
-
1
votes0
answers91
views$.ajax error while reading php
I have the following file index.php which has 2 forms. One of Login and one of registration <?php header("Content-Type: text/html; charset=utf-8"); /* Carrega as classes em tempo de execucao */…
-
1
votes1
answer1234
viewsDompdf Illegal error "string offset 'Hex' online 1150 style.cls.php"
I have the following code: <?php session_start(); if(isset($_SESSION['logado'])==false){ echo("<script>window.location = 'login.php';</script>"); } ?> <!DOCTYPE html>…
-
1
votes1
answer51
viewsFill meta Description via javascript Google interprets the code?
I have a JSON {"content":{"description":"Descrição do meu site"}} I wanted to fill the meta name Description via javascript <meta name="description" content="" /> I wonder if Google will read…
-
1
votes0
answers342
viewsHow to put Modal window with gif in the form?
I have a form that I programmed using Phpmailer and I would like that when the user fills the fields and clicks to send, instead of redirecting to another thank you page I wanted to be displayed a…
-
1
votes4
answers114
viewsAjax does not recognize PHP echo
I have a simple ajax: $.ajax({ url:"php/exemplo.php", type:"POST", data:new FormData(this), contentType:false, cache:false, processData:false, success: function(resposta){ if(resposta ==…
-
1
votes1
answer150
viewsQuery single input ID - AJAX
I am developing an application and in it, I have a method of searching customers by name, right at the beginning, I perform the collection of basic information of each client. Follows the code:…
-
1
votes4
answers572
viewsUpload Ajax - Php
I am trying to upload a PDF file via Ajax and Php. But I can’t. HTML <script> var client = new XMLHttpRequest(); function upload(){ var file = document.getElementById("uploadfile"); var…
-
1
votes2
answers154
viewsHow to recover the option on click and select the item that is in its value?
<div class="escolher_temas"> <form action="iframe.php" method="GET"> <select name="escolhe_tema"> <option value="http://z05.axitech.com.br">Tema 1</option> <option…
-
1
votes2
answers691
viewsPopular Dropdownlist with JSON
-- Controller -- [WebMethod] public ActionResult GetSellers() { List<Seller> sellers = db.Sellers.ToList(); return Json(sellers, JsonRequestBehavior.AllowGet); } -- View --…
-
1
votes1
answer286
viewsModal does not work after Load div
Well, my problem is, I have a function in an external file function lista_contas(id) { var url = 'lista_dados.php'; var method = 'POST'; var params = 'id='+id; params +=…
-
1
votes4
answers1474
viewsservice returning result of a $http
I am creating a service for an application Angularjs where I should query a Ws and return a value to a variable. My problem is that when I use the $http I can’t get that amount back if I use a…
-
1
votes2
answers97
viewsI would like to know how to pass the value of a Radius via post with ajax or jquery
I needed help to pass any value of one of these inputs via Ajax or jQuery: <input type="radio" id="valorum" name="valor" value="38,70" ></br> <input type="radio" id="valordois"…
-
1
votes2
answers65
viewsDoubt about ajax
My question is whether this code of mine is correct. $(document).ready(function(){ $("#fechar").click(function(e){ e.preventDefault(); String lista_Cont = $(this).attr('<?php include…
-
1
votes1
answer138
viewsajax for notification
To change the html whenever a information is changed in the bank without refresh (like the facebook notifications) is done as? I am currently using a timer, wanted to know if there is a better way…
ajaxasked 7 years ago Hovesky NerdGamers 41 -
1
votes0
answers22
viewsClient question for a webapi
I have a slight doubt... concludes a webapi in Asp.net core, it is all tested and everything , however, I came up with a question... It includes a new project next to this api, so it is the client…
-
1
votes3
answers237
viewsHow to send Jquery variable content to an html textarea?
I’m having a hard time sending the contents of a variable JS for a <textarea> (in a bootstrap modal) and with XML formatting defined in the variable. Both the JS as to textarea are in the same…
-
1
votes0
answers57
viewsCommunication between View and Controller via a script
I’m trying to call an Action through . ajax that runs inside a Modal button but apparently the url is not processed. My View is like this: @using (Html.BeginForm()) { <div…
-
1
votes1
answer487
viewsHow to update Data from a Select with Ajax?
I have the following question, I have a modal, where I enter a city, so I need my select to be reloaded showing this newly added option, without the page being updated: Select: <select…
-
1
votes2
answers1018
viewsMy js file is not loading
Studying Ajax with Jquery, in Mauricio Samy Silva’s book is not working with me. I made a js file out and now I can’t load it. What I did I think is not wrong. I debugged the browser with F12 and I…
-
1
votes1
answer378
viewsReturn Ajax value in input
I built a query using php+oracle to fetch the employee name from the badge. I searched and found a script that queries and returns on the same page using Ajax. But it returns the value only in the…
-
1
votes0
answers347
viewsDatatable Jquery load Tools after ajax
I have a jQuery datatable that has tools bar with .swf. When loading the page initially, the tools bar is displayed correctly, but I need to load the datatable when clicking a link, where it is…
-
1
votes2
answers289
viewsDjango create paging using Ajax
I want to upload the pagination without refresh using ajax I have a table where shows 5 items per page the goal is to change page not refresh the page to switch to the following In the views: In the…
-
1
votes0
answers38
viewsAjax request returns decimal zeroed from SQL
Dear friends, I have an Asp Net MVC5 application that makes use of ajax in both inclusions and selects. The recording of the decimal values occurs normally in the Sqlserver database but the recovery…
-
1
votes1
answer656
viewsAjax is returning Undefined
Guys, I’m just trying to list the names I have in the bank, but the message undefined, can anyone help? Below is jquery + the query to the bank. jQuery: <body> <script>…
-
1
votes0
answers282
viewsAjax does not work on the server
I read some answers in the forum, but none managed to solve my problem, Ajax works in place, but when I go up it just doesn’t work, follow the code: jQuery('#formLogin').submit(function(){ var dados…
-
1
votes1
answer1676
viewsDOUBT can I make more than one ajax request on the same page?
I am doing a search in the database and returning this data in a table via ajax, there is in this same table a column that has a link that returns more information about the data, all this by ajax.…
-
1
votes2
answers1499
viewsForm being sent twice in a row
I have this code in my JS: $('#form-sign-in').bind('submit', function(e) And in my FORM has a Input Type Submit. When I click on it to make a simple registration, it is sending two requests. I’m…
-
1
votes1
answer1319
viewsSend message and update div without giving Reload the page
Good people, I’m developing a southbox and I’m here with a problem. I write something on Shoutbox and enter or click on enviar he refresh on the page.. I leave here what I already have .. INDEX.PHP…
-
1
votes0
answers63
viewsSum of items when changing a record
I have 3 items Accessories, Tires and Vehicles, the values are added to a maintenance screen that is the main one. The problem is that when it is to change only one of the items, the added value is…
-
1
votes1
answer916
viewsHow to perform a function after ajax Success?
In my project, in the ajax Success, I am making an autocomplete, so I need to execute a function after selecting an option, that is, after Success. Would it be possible/How I would do it?
-
1
votes2
answers209
viewsRepetitive snippets of HTML
How to assign redundant HTML blocks (or snippets) to a variable to save lines and simplify usage? Imagine multiple Ivds or TABLE CELLS that are nearly identical by 90%. How to save an HTML snippet…
-
1
votes1
answer377
viewsHow to use ajax inside a Sweetalert?
I tried this way, but I believe it is not the right way. I am actually sure, because the code does not work. function removeCliente(id) { swal({ title: "Are you sure?", text: "You will not be able…
-
1
votes1
answer233
viewsMy ajax form does not validate
I’m trying to validate a form by ajax and it’s not working. Page ajax is like this: http://pastebin.com/t5it0n4T jQuery('#enviar-contato').click(function(){ var _name = jQuery('#name').val(); var…
-
1
votes1
answer138
viewsNext Back content on page
In this table there are the rounds, where it appears all, wanted a forward and back button and the guy could see the next rounds, without having to scroll the whole screen, wanted that appeared only…