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
answer128
viewsAjax Request and JS File Registration - Wordpress
Good morning, I am mounting an ajax request to send to the source functions.php, I read in the wordpress documentation that needs to be done the registry of the js file that handles the request and…
-
0
votes0
answers109
viewsUpload without refresh using AJAX?
I have a page HTML and a page on PHP where I receive 2 files being one audio and the other an image and some input information. I would like the moment you make the post not redirect to the PHP,…
-
0
votes1
answer175
viewsHide Buttons and Enable Other with ajax
I have a page and in it I display a modal with 2 buttons, a confirmation and another cancellation, as code Below: Inside that modal I have a DIV <div class="resp"></div> This div I get a…
-
0
votes2
answers524
viewsPost Ajax for Class PHP
I have the following code that saves reordering a list. INDEX.PHP <?php require_once ("Class.Drag.php"); $auth_task = new Drag(); $list_order = strip_tags($_POST['list_order']);…
-
0
votes1
answer249
views -
0
votes0
answers87
viewsProblem with Boostrap clear Fileinput field
I have a page with 2 input text and 2 input file When I receive the answer from ajax, I have the whole form cleaned as code below, but only one field is not cleared: <input…
-
0
votes0
answers78
viewsDuplicate form using ajax
Gentlemen, good afternoon to you! I have the form where I register my information perfectly. I use Ajax pq I only upload one page content after registration, and not all of it. It works normally,…
-
0
votes2
answers519
viewsPassing Parameter in URL using JSON + AJAX
I am studying Javascript and would like a support from you. I have a file I called getPagamentosMaioresQue.php, this file has the following syntax: <!DOCTYPE html> <html> <head>…
-
0
votes0
answers45
viewsAjax redirects to url
Good morning guys, I’m having a little problem, I imagine it’s simple, but I can’t seem to solve it. Next, I have to upload a profile photo of the user, the code is working beauty: JAVASCRIPT…
-
0
votes2
answers613
viewsForm with Ajax and PHP
hello. I have a form inside a modal - which is opened by clicking a button that is generated as a column of a table. By clicking this button I capture the contents of each column and fill a form…
-
0
votes3
answers630
viewsProblem accessing api using jQuery $.ajax
I’m having trouble accessing the api using the function $.ajax({}) jQuery. The Error: My code: <!DOCTYPE html> <html> <head> <script…
-
0
votes1
answer408
viewsHow to send forms automatically without using Ubmit and without updating the page
Hello, I am a relatively new programmer in php and I am developing a website. It is a site where there is a list of companies. And I wanted to implement in it, search filters, the first of them…
-
0
votes2
answers943
viewsSend to filled model controller
I have on my main page two partial views, each with a specific view model associated, where all fields of the screen are mounted through Razor, as an example below: <div class="row"> <div…
-
0
votes1
answer73
viewsPost with no fronend
I’m trying to make a Post of a form info but I don’t quite know how to do. This is my C form# : @using (Html.BeginForm("Enviar", "Mensagem", FormMethod.Post, new { enctype = "multipart/form-data",…
-
0
votes0
answers553
viewsPrimefaces - Requestcontext Update
Hello, When loading the page the method iniciarTeste() will be called as follows: <f:metadata> <f:viewAction action="#{testeController.iniciarTeste()}" /> </f:metadata> On the same…
-
0
votes1
answer78
viewsFailure to use JSON on INTEL XDK
I’m making an application on INTEL XDK, in which I need to connect to the database. I created PHP to return with JSON and on Intel, I made the function to return such data. But the application is…
-
0
votes1
answer647
viewsLoad HTML into Div via Ajax
I would like to take the answer from ajax, and press div... If I load the div, passing the url works 100% var detalhamentoDiv = $("#detalhamentoDiv");…
-
0
votes2
answers236
viewsAvoiding conflicts between variables in Javascript
All modal windows of my system open via ajax and these have their own JS codes with variables and functions. In order to avoid problems with the variables and functions of the screens that call…
-
0
votes1
answer70
viewsMessage while form is being sent
Good night, you guys, I have a form in php that with the option to attach file and then will be sent to an email, I am beginner in this part of ajax and javascript but I wonder if it has how to…
-
0
votes3
answers85
viewsAjax code is not working
I am starting in ajax and I have had difficulty understanding the error you are giving in this example. I click on the button and no action is taken. HTML: <html> <head> <script…
-
0
votes1
answer363
viewsNull parameters in the controller when sending post via ajax
I am refactoring an ASP.NET MVC application written by another developer. My intention is to remove the use of FormCollection. Before the controller method signature was the following: public…
-
0
votes1
answer521
viewsMVC5 - Refresh partial view in ajaxStop
Hello, Within my main layout page (_Layout), I address a partial view that is responsible for displaying messages that have been added by the controlled, through the Toastr javascript library. Code…
-
0
votes2
answers246
viewsString Comparison Problem in AJAX
Good night, Personal to with a problem here, to using an ajax code to check if a Cpf is already registered without the refresh in the page not to lose the data, and returning a string with a value…
-
0
votes1
answer753
viewsLock form query into ajax request
I have the following code: jQuery('#modal').on('submit', function(e) { jQuery('button[type="submit"]').prop('disabled', false); jQuery('div[name="loading"]').html("<i class='fa fa-circle-o-notch…
-
0
votes1
answer46
viewsUpload data from a query to a lightbox
I am developing a system, and I have the following code that returns the results of a query: $Dados = $conn->getResult(); foreach ($Dados as $Linha): echo $Linha['event_name']; echo "<a…
-
0
votes0
answers54
viewsAjax does not work in IE6
I have Ajax below, which works normally in Chrome, Firefox (no error in Firebug) and Opera: /** * Função para criar um objeto XMLHTTPRequest */ function CriaRequest() { try{ request = new…
-
0
votes1
answer465
viewsRecover mysql php query with ajax
Hello! I would like a help to know how to recover data from php mysql query and present it on the page that made the request via ajax, this code at the moment presents error Cannot read Property…
-
0
votes2
answers1304
viewsAlert bootstrap in ajax call
I have an ajax that deletes an image, after the deletion, I would like the page to give a Reload and show a message of "Deleted Successfully!" with Alert boostratp. I’ve searched the forums and…
-
0
votes2
answers1406
viewsCreating a button with ajax and making it run php
I have a boot that every time I click my page updates. $btn_add='<a class="btn btn-success" href="cart.php?plus='.$id.'"><i class="fa fa-plus fa-lg" aria-hidden="true"…
-
0
votes2
answers478
viewsBank check with ajax
I never worked with ajax but I need in a form do a search on MySQL to check if the login that the user is typing already exists. In the input field I put a onBlur for when the guy jumps from the…
-
0
votes1
answer28
viewsStyles do not apply to elements coming via AJAX
I am mounting a page that is inserted 2 values. These values go to a page .php via AJAX and then the page returns all records from the database. Function that registers the data: function…
-
0
votes1
answer394
viewshow to make a POST request?
The thing is, I’m using the google api to build an app. However, I got to this part below and I can’t do it at all. How do I do this POST q it asks me? I already have all the parameter data. Below…
-
0
votes1
answer148
viewsBlock Ubmit if the "real time" check indicates that the email is already registered
I’m using AJAX and PHP to check in real time if the email is already registered in my BD, it shows a message in DIV #reply, whether the email already exists or not, so far so good. But if the email…
-
0
votes1
answer363
viewsError listing items using JSON and PHP
I am inserting items in a list through a SESSION in PHP, these items will be read in another page using JSON, but is giving error and I am not able to solve. session_start();…
-
0
votes1
answer773
viewsPicking up element in a json array
I need to get the element authorDisplayName of that array json. He’s the return of a requisition ajax. How to take only the element with jquery or javascript? "kind": "youtube#commentThread",…
-
0
votes0
answers389
viewsHow to send an image by Jquery, via $.POST?
My friends, good afternoon! I am creating a system where the person has to send an image to save in the database, but as I am making the request via Jquery, is giving the error message that I can…
-
0
votes1
answer982
views -
0
votes0
answers267
viewsUpdating Google Maps bookmarks every 10 seconds!
Friends, I made a system to record the dots in the comic book and then display them on the map. It is working normally, but as I recorded in BD via ajax, the page is not updated! I’m doing it this…
-
0
votes2
answers438
viewsGET request via AJAX only works by entering the address bar
Good morning, It’s kind of crazy what’s happening, but I’m making a request via AJAX sending a GET and the return is ok, it’s all right, but this return is a url that after the request should allow…
-
0
votes0
answers103
viewsProblems with ajax on the server
I have an application in ZF2 on Ubuntu server. One of the controllers is triggered from a request ajax. Locally, the application works normally. However, when going up to the server I started having…
-
0
votes2
answers518
viewsAjax always falls into 'error' even when successful (C# MVC5)
Come on. I have the following method: C# [HttpPost] [AllowAnonymous] public JsonResult PostOnCRM(string textBoxFirstName, string textBoxCountry, string textBoxLastName, string textBoxEmail, string…
-
0
votes1
answer1522
viewsClear fields with Ajax
Colleagues. I took a project that already includes the shooting of emails with PHP/Ajax, the shooting occurs normally, but the fields are not cleaned after the shooting. I tried to put form.value();…
-
0
votes1
answer185
viewsHow to Do Automatic Scrolling
I’m developing an application where the user asks a question and the server delivers an answer, I’m having trouble getting the scrollbar to keep up with the conversation, So far I’m having the…
-
0
votes1
answer190
viewsHow to select a dynamically charged dropdown with jQuery?
I am using a form to register dynamic questions in my system. I’m also recording this data in a session so I don’t have to be selecting all the time dropdows but there’s a problem: In the Submit, in…
-
0
votes0
answers52
viewsJquery/Ajax/Json - Getting to Json
I have an array and need to get to it with jquery/ajax, the problem is that I do not know how to get to it, it is being created by php $json = Array(); then make an array push like this:…
-
0
votes2
answers838
viewsProblems with Modal Bootstrap and Deletion of Records
I have a page with n records and, for each of them, there is their respective Delete button. By pressing it, a modal bootstrap is opened by asking whether or not to confirm the action. When…
-
0
votes1
answer142
viewsAjax warns success but does not insert data
I already made an Insert without using ajax and it worked normal, when I used ajax and returned success I thought it was all right but when I went to look in the database the data were not there JS…
-
0
votes0
answers41
viewsSend Post Ajax outside the same project
Explaining better, in Eclipse PHP I have Project 1 and Project 2, and I am emulating PHP in Xampp, I wanted to send a Post via Ajax from Project 1 to Project 2, but I’m not getting it. Error:…
-
0
votes1
answer641
viewsReceive Json via post Ajax PHP
Good morning! I have this code that sends an array containing data in json format: Array Json: {"cliente":[{"Code":"1","Name":"A"},{"Code":"2","Name":"B"}]} Ajax: $('#btn-sinc').click(function(){…
-
0
votes1
answer160
viewsTreat Exception on return from Ajax jsonp
Personally I’m making the service call this way: $.ajax({ url: minhaurl, type: "GET", dataType: "jsonp", contentType: "application/json; charset=utf-8", async: false, success: function (result,…