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
votes2
answers580
viewsjQuery/AJAX: a single form that can be submitted to different urls (POST or PUT)
I have the following scenario: I have a form that serves to register or change a teacher; To register I have a button at the top that calls the modal to do the POST; To change I have a button in…
-
0
votes1
answer99
views$_GET doesn’t catch "+"
I am recovering a value from an AJAX request, it works fine but it has a problem. The "+" character is replaced by a blank one Dell printer (supporting eSF 2.1+) Stays Dell printer (supporting eSF…
-
0
votes0
answers20
viewsRequest ajax with Wordpress
I am working on a custom Wordpress page. I am making a request via ajax on this custom page, which is theme directory: wp-content/themes/my-theme/my-page-custom.php The page that will process is…
-
0
votes1
answer416
viewsShow JSON result via Ajax
I don’t have much knowledge in javascript, but I need to integrate a payment API. I’ve never performed integrations with an API before. Following the documentation I saw you need to first generate a…
-
0
votes1
answer212
viewsAngular + requirejs Controller logging error
I’m starting an application with Angular + Requirejs. Follow below Main.js ;(function (doc, undefined) { 'use strict'; var $scriptDefault = doc.querySelector('[data-js="script-default"]'); var…
-
0
votes0
answers47
viewswindow.open is not working after running Ajax
I am developing a URL sharing system saving in database every time it is clicked on one of the social networks of the site. It turns out that the window.open what use to access the social network is…
-
0
votes1
answer639
viewsDisable dates with event (fullcalendar)
I have the following code using the "fullcalendar" plugin and I would need to disable dates that have registered event. I registered with the plugin dayClick and then listed the entries with ajax.…
-
0
votes1
answer213
viewsRun Modal Open Screen Script in Ajax. C#
Problem: I’m in the Index view, it has a button that opens the Create view on a modal screen, on this modal screen I want to run a javascript code, but for some reason it is not running. I am…
-
0
votes0
answers1665
views -
0
votes0
answers372
viewsReceive PHP response in AJAX
Friends, I am developing a script to send an email according to the choices of the users. Below is the ajax that makes the upload: $.ajax({ type: "POST", url: "inc/enviar.php", /* endereço do script…
-
0
votes1
answer45
viewsI cannot succeed when making a request via ajax
I take in my JS the month the user chose in the HTML select, if in case the value month has been set it executes the function Filter_data_bank as the value, if not I define that the value will be…
-
0
votes1
answer209
viewsAjax does not work
I have this code below in ajax: <script> $("a").live("click", function(event) { var targeturl = $(this).attr("href"); $.ajax({ type: "get", url: "/"+targeturl +"", data: "", dataType: "html",…
-
0
votes1
answer60
viewsParameter by Ajax
I need to pass some arguments through Ajax, at first the code presents syntax error. var comeco = $("data_filtroe").val(); var fim = $("data_filtrod").val(); jQuery.ajax({ type: "get", url:…
ajaxasked 7 years, 3 months ago Carlos Henrique 494 -
0
votes1
answer438
viewsSelect with php javascript ajax json
<script src="http://yui.yahooapis.com/3.12.0/build/yui/yui-min.js"></script> <script src="js/jquery-3.2.1.min.js" ></script> <script type="text/javascript"> function…
-
0
votes1
answer1064
viewsjQuery Autocomplete Uncaught Typeerror: Cannot read Property 'length' of Undefined
I’m using jQuery autocomplete to take data from a JSON and show them on as suggestions in the form during typing. It turns out that JSON is not in the format expected by the plugin, so I decided to…
-
0
votes3
answers247
viewsError when passing Ajax parameters to function in PHP class
It’s the first time I try to pass parameters from ajax to my function that is in a class in php, so I ask, why isn’t it working? searching the forum I saw that could put data: { var1 = 'var1', var2…
-
0
votes1
answer33
viewsExecution of setTimeout with replaceWith
I have the following code that executes a query in DB with ajax. So when in Success I put append instead of replaceWith, the function works perfectly and runs every 5 seconds, but when I enter…
-
0
votes3
answers51
viewsInterpret data from an external file to use in Autocomplete
I have the following file: index php. <script type="text/javascript"> function montaAutocomplete(source) { $( function() { var availableTags = [ source ]; $( "#autocomplete" ).autocomplete({…
-
0
votes1
answer56
viewsDo not clear screen data when giving error
Hi, I’m a little layy with scripts still. I ask for help, if possible. I got the following script : $.ajax({ type: "POST", url: "/PreVenda/GuardarPreVenda", dataType: 'json', data:…
-
0
votes3
answers2646
viewsHow to disable an input field?
After receiving a value, how to block an input field so that it does not have its value changed? below there are two fields; how to block only the field 'FANTASY NAME' and keep 'CNPJ' to receive a…
-
0
votes1
answer37
viewsError after 100 AJAX requests
I have the function below that makes a request every second to the Mysql database and updates a DIV on the page. But after about 100 requests the "THINK ME" database blocks and returns "An error…
-
0
votes1
answer197
viewsCall ajax by onclick in SWAL
Hello, I’m trying to get after the user click on a button, open a SWAL containing another button that has an ajax function, however, not even the SWAL opens. $(document).ready(function(){ var…
ajaxasked 7 years, 2 months ago Tales Rodrigues 1 -
0
votes1
answer58
viewsHow to update a specific div on the page?
I’d like that after the $ajax ended, updated the tag div that has as an id #coments, for in that div load data from the database. HTML <div id="coments"> <!-- // Query dos comentários PAI…
-
0
votes1
answer2544
viewsHow to call an Ajax controller method using MVC5 in visual studio?
Hello, I’m new in development, and I’m developing a data entry where by zip code the user type the system search in the Mail Api and the address related to the zip code, but I’ve seen in many…
-
0
votes1
answer1069
viewsPaging with ajax
I have a normal paging code, it is working properly, but I am not able to insert ajax in paging. Actually as I’m using functions, I don’t know how to call the function "paginglink" in the AJAX url…
-
0
votes1
answer43
viewsHow to get the result value of divValue. result[2] in the mvc controller?
$(document).ready(function(){ $("#btnSend").click(function(){ $.ajax({ url:'@Url.Action("VerificaCep","ConsultaCep")', type: "GET", contentType:"application/json", …
-
0
votes1
answer1284
viewsSending data to Controller via Ajax Laravel
I have a project in which I have to send a patient’s CPF to a method in the controller in order to do a search within this method and already return the value of the search to the view , however I…
-
0
votes1
answer812
viewsHow does GET work with AJAX?
I have a pageant AJAX that is working, actually without working better, I’m trying to understand how the AJAX works with the url for paging to work properly. What happens is that in normal…
-
0
votes2
answers667
viewsPage reload with cacheless Jquery (Chrome)
I don’t really know if the problem is the cache or the script I made or the server I’m using, but come on. I’m using this code to upload a document to the server(I haven’t evaluated security and…
-
0
votes1
answer1060
viewsCheck if the user is logged in
I would like to do a check to know if the user is logged in, I am trying to pass this on to an ajax request but am not succeeding. PHP function that checks if you are logged in public function…
-
0
votes0
answers86
views"Uncaught Syntaxerror: Unexpected token :" and "Access-Control-Allow-Origin"
Guys I’m trying to do a Mailchimp integration, but I’m having problems with this mistake: 1 - Access-Control-Allow-Origin 2 - Uncaught Syntaxerror: Unexpected token : I can’t find the problem. You…
-
0
votes1
answer604
viewsAdd to cart with Ajax without updating page - Laravel
Hello, I’m trying to use Ajax in a form to add products in the cart without updating the page but I’m not getting, if anyone can help me. I’m wearing Laravel 5.3 joint on this website: HTML <form…
-
0
votes1
answer199
viewsAjax data - Pagination
I’ve been studying jquery and ajax documentation. I’m trying to understand how ajax and php requests work. I’m trying to turn a normal pagination into ajax pagination. More specifically as I use…
-
0
votes1
answer150
viewsProblem in AJAX query in a loop
I have a view that has several pie charts using the D3 plugin. Each chart should display different data. With PHP I do a foreach on the screen, creating the div where the chart will be displayed,…
-
0
votes1
answer69
viewsMultiply value by taking only the first character
Personal I need a help because I have no knowledge of javascript In this script below it makes calculations according to a chosen field It works perfect for me, but my problem is in the dropdown.…
-
0
votes1
answer199
viewsHow to configure Ajax to submit date with 2 variables
I’m developing an app for users to vote on products. Technologies used Jquery plugin rateit, ajax and PHP. However I am having a problem with JSON, the configuration for 2 variables is giving the…
-
0
votes2
answers634
viewsChange button text in AJAX request
Hello! I know it sounds silly to ask, but I don’t understand why it’s not working. I want to send the form via ajax, while the request is made, the button is disabled and the name(text) of the…
-
0
votes0
answers290
viewspass several annexes via ajax
Hello guys my first post here, I’m having a problem sending more than one attachment via Ajax. I have an API in jersey that gets the call. if I send only one attachment works well, however if I…
-
0
votes0
answers39
viewsSend form to two locations and redirect
I need the script to send my form to two places and after sending to the reply page. <script type="text/javascript"> function EnviaForm2() { document.getElementById('formnewsletter').action =…
-
0
votes1
answer302
viewsDisplay div after sending emails via POST Ajax PHP
I’m learning to email via POST in Ajax. What I have is right, the only thing is that after sending the email, it does not load the form (HTML returns), getting a hole in the screen: <!DOCTYPE…
-
0
votes1
answer1529
viewsRecover json ajax data
I have this request: <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#ajax_form').submit(function(){ var dados = jQuery( this ).serialize(); jQuery.ajax({ type:…
-
0
votes0
answers60
viewsUse two different headers for two different exits in the same call
At a certain point, I need to generate XLS files on my system, and use the following header for output: header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition:…
-
0
votes0
answers509
viewsConfirm modal deletion (HTML+Ajax+PHP)
I have a program here that controls a to-do list that is saved and read through the database (SQL). The main page contains a table and in each row a delete button for each table entry... I don’t…
-
0
votes2
answers722
viewsSimple ajax to reload a DIV every 30 seconds
I am the following javascript to reload a div every 30 seconds, but it’s not working , or error. Code: $(document).ready(function() { var $div_novospedidos = $('#div_novospedidos');…
-
0
votes0
answers355
viewsSubmit File with Form Data
I am trying to send files without using the submit of the form. I checked that through the formData It’s possible, but I have a problem. Apparently, the file is forwarded, since with the variable…
-
0
votes1
answer56
viewsHow to use the plugin botepage ajax correctly
I’m trying to use this plugin here botepage the problem is that I am not able to insert any content inside the Divs, on page 1 for example say I want to put "hello", on page 2 say I want to put "hi"…
-
0
votes1
answer74
viewsAjax does not return values on mobile device
beauty? It is the following, I have an ajax method that returns a json, the problem is that this ajax does not run on mobile devices. Always return me fail, however, on pc, everything happens…
-
0
votes1
answer528
viewsValidation of Jquery/Ajax/PHP fields
I read some questions here on sopt, but I couldn’t find what I wanted. I made a basic validation with ajax and jquery that is working, but there is an unforeseen. Are two camps: email and team. HTML…
-
0
votes1
answer847
viewsBring images with ajax
It is the following personal, I managed to store the links of the images in the database and also stored this images in a folder of my computer. so I was wondering how can I take these images with…
-
0
votes1
answer142
viewsProblems with <p:ajax> on primefaces
Good morning friends! I am a beginner in Java and am trying to develop a system for church management. After many attempts, I can make ajax work, but I am not able to recover the id of the state…