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
-
0
votes1
answer37
viewsEvent Listenter and Ajax
Guys, this is my first post. I’m sorry if I didn’t follow some rule/publication label. I made an html form that sends data to a php file. Then I put ajax so I don’t have to re-load the pag. So far…
-
0
votes1
answer75
viewsNewsletter with refresh ajax
I’m trying to send this form through ajax and I’m not getting, is there something wrong? I’m beating my head against this for four hours without success. Note: I am developing via wordpress and I am…
-
0
votes1
answer35
viewsHow else to do it?
I am getting this error when I try to upload data to the page via Ajax. There is another way to send Json objects from Servlet to JSP without using document.write? error: "A parser-blockingis…
-
0
votes1
answer32
viewsPage only brings the data the first time it is loaded
Why does the page only load the data once? After loading, if I update the page in the browser, it no longer brings the Getvalues data. I am using Servlet and JSP. <html> <head>…
-
0
votes0
answers510
viewsConsume API Rest in C# by Ajax in jquery
Hello I have a C# API that Returns a JSON object Follows the code [HttpGet] public string Login(string Pass, string User) { Return ret = new Return(); try { UsuarioDAL DAL = new UsuarioDAL(); var…
-
0
votes0
answers546
viewsUncaught Error: Syntax error, unrecognized Expression: #botao_resp_<?= $Row['id']? >
I have a page with Formularies to answer questions and I am trying to use jquery in a separate file and is giving the following error: Uncaught Error: Syntax error, unrecognized Expression: #boot_…
-
0
votes0
answers38
viewsAjax not running Event sucess
I received complaints from some customers that the site was not completing the order, but when checking the code I did not find anything else and for me it works perfectly. The ajax code is this…
-
0
votes1
answer56
viewsHow to generate query and add new input?
I have a field input of the kind date I want every time I click and view it generates a select with the date query I have set and generate a new input to add another date and so on. My code so far:…
-
0
votes1
answer31
viewsPhp Json Enconde Error
I’m trying to solve a problem always PHP is returning the Else code "Wrong administrator password." But the fact is that the password is correct... Well I tried everything so far. <?php $email =…
-
0
votes0
answers152
viewsFancybox - Update Parent after close
I am using an iframe Fancybox where when the user confirms a question I want to update the content of the original page after success in an ajax: $.ajax({ type: 'POST', url: 'excluir_foto2.asp',…
-
0
votes2
answers655
viewsCall the controller via javascript or ajax and insert in table Asp.net mvc
How can I get an item from ul li pass its value(id) to my controller and insert that value into the table? I already have the list this chunk of code below already works I can add items in the list…
-
0
votes1
answer377
viewsAjax Jquery C#error request
I am getting error 401 in a simple Ajax query with Jquery. Request: $().ready(function () { $.ajax({ url: "Ajax/RetornoAjax.aspx/ObterResultados", type: "GET", //Caso não passe nenhum dado dataType:…
-
0
votes2
answers559
viewsUpload csv file with ajax, json, php and Mysql
I’m trying to make a import file csv to the MySQL dealing with errors with JSon but I’m not succeeding, even with a basic test I can return the message, always falls in the else of if. This is the…
-
0
votes1
answer2275
viewsJSON parse error
I am developing a web application (Spring) and need to save a date in the database. I made a function Ajax to save the value, but I get the following error: JSON parse error: Can not deserialize…
-
0
votes2
answers158
viewsHow to store value in a string object and display that element on another page?
My job myFunction picks up the elements username and password typed,and sends these values storing in a global variable to the next page. My job tToken authenticate this information and play to next…
-
0
votes0
answers28
viewsHow do I send a message without having to refresh the page?
If you have any questions, I’m available. //obtem as informações do banco de dado com o methodo json_encode() php consulta.php //===================================================== function…
-
0
votes1
answer19
viewsCharging more doesn’t work properly
I have a section where you receive some posts and have a button to press more. In my Section the first post displays correctly, but when I click the button to press more, does not run the second…
-
0
votes1
answer493
viewsLoading script asynchronously
I have an administrative system using adminLTE. In the side menu I load all my scripts asynchronously (at least it was expected). However when I load an HTML asynchronously, and inside this file I…
-
0
votes1
answer93
viewsjQuery plugin with trigger in event click
jQuery plugin: (function($){ $.fn.extend({ meuPlugin: function(){ $('body').on('click', this, function( e ){ console.log( $(this).attr('href') ); return false; }); } }); })(jQuery); Selector in…
-
0
votes1
answer804
viewsPOST de imagem, via ajax
hello basically what I want to do is a system similar to the facebook, to create posts. Where you press to send the photo, choose the photo and automatically the photo goes to the server and has a…
-
0
votes0
answers104
viewsProblem handling json object in ajax request
I have a function that makes a register in the database via ajax and soon after searches that same object in the database to add the information related to it without reloading the page. var…
-
0
votes0
answers86
viewsImage Upload with Ajax (fakepatch) to PHP
I’m taking data from a form (HTML) to register in my database, the data is coming as follows in the Firefox Console. http://prntscr.com/ig4kcm. In my view the problem seems to be in the $_FILE…
-
0
votes1
answer165
viewsUpdating XML Data in Real-Time with jQuery.get
I’m building a page that has a carousel (with bootstrap 4) that displays some information about temperatures. This information comes from a XML that will be updated whenever any change occurs. I’m…
-
0
votes1
answer248
viewsSend Object array as Ajax parameter
I have an array of objects composed as follows: {file: File(871699), x: 0, y: 0, width: 2, height: 2, …} Each vector box has an element as described above, and the first parameter, the file is an…
-
0
votes0
answers32
viewsSearch for all or just one form field
I’m having problems with a form on my Wordpress blog, I have the following form that is on file functions.php. function terapeuta_search_scripts(){ wp_enqueue_script('terapeutas',…
-
0
votes1
answer498
viewsAjax request does not work
I have 3 files: novaDose.php: <label for="busca">Buscar cidadão:</label> <input type="text" class="form-control" id="busca" placeholder="Digite parte do nome ou o CNS"…
-
0
votes1
answer506
viewsIf inside a Success in ajax
I make the request, I get the right amount, but at the time of the check it’s not right $.ajax({ url:'includes/checkCPF.inc.php', method:'POST', type:'POST', data:{cpf:cpf}, success:function(data){…
-
0
votes1
answer181
viewsError accessing JSON with Ajax jquery
I’m getting a JSON that I created with PHP as described below, however, when I try to access the properties of this JSON he always returns to me Undefined. I made these test files there to…
-
0
votes3
answers2963
viewsProblem for popular Datatable?
I can’t find the error, simply do not populate the table: ERROR Datatables Warning: table id=Tabevolucao - Invalid JSON Response. For more information about this error, Please see…
-
0
votes1
answer88
viewsJquery, append vanishing
good afternoon! My Jquery is adding the results obtained via ajax and they are disappearing. What might be happening? And how to solve? Thank you var _urlSearchInput; var _urlSearch;…
-
0
votes1
answer182
viewsReturn to same page after crud of a modal
I have a page with a datatables, in the event select of this table open a modal passing the id of the selected record to modal, in the modal I delete this record, soon after I close the modal and…
-
0
votes2
answers1024
viewsUpdate Updatepanel after running ajax without page refresh
Good afternoon, I need to update components that are inside a UpdatePanel page aspx after insertion via Ajax. The Ajax performs a function on code-behind in C#, and happens to reload the entire…
-
0
votes2
answers311
viewsList Json in a Select with Jquery
I’m not getting lists of a Json in a Select My Jquery code looks like this: $("#cidades").change(function () { var options_escolas = ''; var cidade = $("#cidades").val(); $.ajax({ url:…
-
0
votes1
answer111
viewsAJAX/PHP pass $_GET and $_POST?
Good evening everyone, I have a PHP script that creates a table in which on this page is run an ajax script and you can see in real time who is in the database... in this table I have a delete…
-
0
votes1
answer111
viewsHelp with Ajax does not send data to the database
I’m trying to submit a form to my database. Ajax says that the user’s registration was carried out successfully but when I go to look in the database there is nothing there. My Form. <form…
-
0
votes1
answer52
viewsPromise Javascript
I have a scenario where I make several Ajax calls to a Webapi and with the return I load controls from an application. I would like to create a unique method to call the API, which would receive a…
-
0
votes1
answer188
viewsCSS Bootstrap in Ajax combobox
I am using an ajax combobox, so it can be typed inside the combobox data, but I am using bootstrap and it is not configured correctly, I use class to configure, follows how it is getting: <div…
-
0
votes1
answer52
viewsError while doing image update
I’m trying to update an image with HTML, Ajax and PHP. HTML and Ajax are configured correctly, as far as I know. But I think the problem is in php. because it works but returns me error. my php.…
-
0
votes2
answers168
viewsPROBLEM WITH AJAX JSON
IMG_TROCAR.PHP file code <?php include_once('config/config.php'); $ligacao = new PDO("mysql:dbname=$baseDado;host=$host", $user, $pass); $id = $_POST['id_user']; $mudarAvatar =…
-
0
votes1
answer482
viewsInsert data from multiple forms without refreshing with ajax php
Good morning! I’m having problem in an application, what happens; 1 - I have this guy who gets the name of the product and shows my list: var req; function buscarProd(valor) { if…
-
0
votes1
answer72
viewsAlert via jQuery not working as planned
I need a help! I am developing a web project, and in it I call jQuery a WCF SOAP test, very simple, on a button, and returns an Alert with a value. It’s working, but not the way I want it to. In the…
-
0
votes2
answers1361
viewsInsert content from an HTML file into a DIV - jQuery/Ajax
I’m making a system GED here for the company where I work (very simple, just to organize better). I’m developing the screens first, then connect with the comic and make things work. I have a menu…
-
0
votes1
answer1918
viewsSend variables via GET by php Ajax
I am creating a page in PHP that makes a query in a JSON/PHP via ajax and I need it to send to the URL, the form variables so I can make a query in this JSON/PHP. HTML: <form method="GET"…
-
0
votes1
answer863
viewsHow to take the value of a php variable and use it in the ajax request
I am creating an order page with the code below, what I want is that when choosing the quantity of the product, it already appears the total value of product x quantity. If I set the value var…
-
0
votes0
answers53
viewsAJAX does not update div by id
I am developing a login system, where I need to return the validation message to the user in a div on the login page itself, however the error message is appearing on the validation page. I’m using…
-
0
votes1
answer64
viewsCheckbox does not load returned data in JSON
I’m having trouble loading a checkbox (<select>) using C# MVC with Json. The method returns the complete list with objects, but does not click on the checkbox. Man Controller: public…
-
0
votes0
answers20
viewshow to receive dynamic data from a form and write them to the BD
my difficulty happens because I created a dynamic grid where I have sequential lines for product inclusion, so I don’t have the names of the traditionally fixed input. In this case I’m assigning…
-
0
votes1
answer561
viewsButton to delete PHP photo with Jquery
Good afternoon. I need to include a button in my editing form so I can delete the user’s photo. I’d like to do with jquey and ajax, I’m still learning. I’m using mysql that stores only the photo…
-
0
votes1
answer90
viewsTraverse lines from a javaEE, jsf2, and Primefaces datatable with Keyboard arrows?
I found this code on the Internet, but part of it was discontinued xhtml: <p:hotkey bind="down" update=":testform:tabletest" action="#{aBean.moveDown()}" /> aBean: public void moveDown() {…
-
0
votes1
answer82
viewsShow Ajax Output in each div
I’m not getting Ajax to show the result in the corresponding div, I’m doing so $('.resultado_debito'+formID).html(data);, but it doesn’t work. Code: $(document).ready(function() {…
ajaxasked 6 years, 8 months ago Wagner Martins Bodyboard 698