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
answer36
viewsAjax $()click event does not work
I have a problem at the event $().click() ajax. I’m trying to send an HTML table to convert to JSON and send it to PHP. However, when I click on the button to grab the event, nothing happens. Nor…
-
0
votes1
answer30
viewsFunction does not recognize hidden elements
I have a function, it works perfectly, but I need to hide the fields, which do not need to appear to the client, but when hidden, the function does not receive the values, I am using this way:…
-
0
votes0
answers717
viewsAfter Ajax Function, refresh the page
I have this function, and I would like it to work everything ok, I would like you to update the page, but it doesn’t always update, follows how I am doing: function GravarDados() { var dataInicio =…
-
0
votes1
answer651
viewsSend input file by Ajax
How do I send a file by email using Ajax? When I fill out the form, all data is sent minus the upload. By Php I can send everything right, the problem is when I run the ajax function, it does not…
-
0
votes1
answer27
viewsOnly one column of the table responsible for Drag and Drop - Touch Punch
How to make only one table column responsible for performing the table row drag and drop using the jQuery UI Touch Punch event <script…
-
0
votes3
answers139
views -
0
votes0
answers30
viewsUpload uploaded by ajax
I did the code in ajax to send information through the click method, but the file does not arrive in the email, only the other data, in the Console appears the array with file type, size, name,…
-
0
votes0
answers54
viewsRetonor Ajax, Json in PHP
how I take the return and put inside a php variable example: let’s say I’m returned the user id and wanted this id to be inside the $id so that can be made a link ">name if someone can help me…
-
0
votes0
answers64
viewsProblem with GET Request
I am successfully using the script below to open in Visual DIV, products related to selected brand: Link to the Brands: <a class="marca" style="cursor:pointer;"…
-
0
votes0
answers32
viewsProblem in the arrival of information by AJAX
I have the problem with the ajax request. I can send the information, but when it arrives in the other page the message appears [Object Htmlinputelement] I can’t understand. He sent an object? //…
ajaxasked 6 years, 4 months ago Alexandre Santos da Cruz 21 -
0
votes1
answer262
viewsConsume via Jquery-Ajax, an API on localhost:28033, from a page on localhost:7545
I’m trying to do one thing, but it’s not working. I have two projects . Net Core 2.0 , an API, and an MVC. I want to run ajax calls from the MVC project, to API project controllers. I open two…
-
0
votes0
answers33
viewsError sending large volume email with Gmail and Phpmailer account
We have a script for sending emails, which may be few or many, depends on the need of our staff RH, I am unable to solve the problem and treat satisfactorily the error message being presented and…
-
0
votes1
answer335
viewsCkeditor + ajax registering empty in the bank
When I make an insertion in the database, it only saves the date, time, idAgenda and idFk... already the other fields of the registered textarea as empty... I believe that is the problem of…
-
0
votes1
answer54
viewsWhen making an ajax request, are there problems if user reload page right away?
Hello, I’m developing a PHP system where it works with IPTV lists stored in services like Pastebin. The user submits such a url, for example…
-
0
votes2
answers473
viewsChange value select via ajax as another select with static data
I have this select, where the user must select it: <select asp-for="Configuracao.TipoEquipamento" class="form-control"> <option value="0">Catraca</option> <option…
-
0
votes0
answers63
viewsAJAX+PHP+Phpexcel
good afternoon I am passing via ajax some fields of my modal to a PHP function. In this way, I run the query below in the PHP function to generate an Excel spreadsheet. the problem is that: I even…
-
0
votes1
answer33
viewsConflict in Requisition
I’m having trouble making the page car php. work opening in the DIV visual through the link when accessing the provisional address "https://www.pbfjacarepagua.com.br/teste/index.php" But when I…
-
0
votes1
answer141
viewsHow to pass an array by ajax to the controller?
I have an ajax that sends data from my selects to my controller and from there I do a check and query, so far everything is working perfectly. The problem is that the last select that sends is an…
-
0
votes1
answer1152
viewsPython webdriver Selenium does not find the item on the page after loading
I am having a problem when searching for an item inside a page, this item is loaded after loading the page via ajax or iframe, there is some way to create a condition for the script to wait until…
-
0
votes1
answer263
views -
0
votes1
answer393
viewsSelect2 + Jquery - Autocomplete Problem
I managed to make the Select2 Plugin work, but the autocomplete does not work. $(function () { $("#disciplina").select2({ placeholder: "Disciplina", minimumInputLength: 0, ajax:{ url: "busca.asp",…
-
0
votes0
answers1057
viewsPassing data to a modal with PHP and Ajax
I am creating a system and at a certain moment the user can register the measurements of a person. For this, I would like to redeem in the table of people the ID and the Name, so that they are…
-
0
votes2
answers48
viewsWorking with Ajax
In a field Blur event, I give a select in my bank and bring a value and fill in my html. My question is how I get more than one result or a specific result on the ajax date. The code below works,…
-
0
votes1
answer47
viewsHow to make a column with always fixed data in a Datatable? MVC JS
Hello. I have a Datatable that is returning BD values, but I need only one column to always have fixed values that will not come from the BD (in this case, it is a column with the months of the…
-
0
votes0
answers34
viewsProblem with ajax request
I have a problem with my ajax, I need to check on another page if a time is available. I select the consultant field and type the day, after that by clicking the button, it should bring a return…
-
0
votes0
answers59
viewsUpload files in PHP
I am not able to upload PPTX files, others go up normally. The files are sent via ajax. The error happens when moving the file to the folder ! var form = $('#fileUploadForm'+idbtn[1])[0]; // Create…
-
0
votes0
answers294
viewsUpdate only div with ajax
I have an ajax code that sorts items from my table, what I need is for it to refresh only in the div ID Imagery Name Slug Order Situation Action <tbody> <?php foreach ($list as $row) {…
-
0
votes0
answers61
viewsError while passing parameter
I will try to give you as much detail as I can, but I don’t even know how to make a mistake in this situation. I am sending data via POST with Ajax, but one of the fields does not pass value to PHP.…
-
0
votes0
answers67
viewsSave to Database with filters
I am working on a project, I have to save a photo in the database with the filters applied, but it only saves the original and with the filters gives "error". A column has already been created in…
-
0
votes1
answer411
viewsEnable jQuery Validate (plugin) with the ajax response
I always found interesting this plugin, as it leaves the form simple with subtle messages to the visitor. I decided to implement and falls into the following dilemma: How do I get back my AJAX to…
-
0
votes1
answer457
viewsAJAX function to update table
I have this function in AJAX to update the data of a table, the data is coming from the controller correctly, but it does not update with the correct data, it updates blank. function…
-
0
votes1
answer94
viewsTake external json data, list, and save to webstorage
Personal I am trying to get the data via json besides to list I want to save in the browser, more I am not getting if someone can help me follow the code <!DOCTYPE html> <html…
-
0
votes1
answer1047
viewsAjax request to an API
I am trying to request a third party API through the following code: <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script> <script> $(function(){…
-
0
votes1
answer54
viewsAJAX updating the wrong table
I have this AJAX function to update a table, it is this way: function incluirFornecedor(idItem) { var url = "/Produto/incluirFornecedorN"; $.ajax({ url: url , data: { id: idItem } , type: "POST" ,…
-
0
votes1
answer103
viewsHow to enable a button after validation?
I need the button is enabled when the email does not exist in the database. Note that the validation if the email already exists works, I need the implementation to enable the button if the email…
-
0
votes0
answers560
viewsAjax request with JSON type parameter using Jquery 1.8.2
I am trying to make an ajax request that sends a list of objects, but it seems that in this version of Jquery 1.8.2 (I cannot update because the system is legacy and has many features using this…
-
0
votes0
answers49
viewsError in comparison with response
I have this JS below, that I include it at the end of my document. It sends the data via ajax to a PHP file that answers a text, in the example below -666 and -log in. It happens that it does not…
-
0
votes3
answers359
views"Onclick" function that calls PHP function
Do you guys talk? I am beginner in development and I have a problem, I have a form (HTML) that sends data to a PHP file and registers in the database. What I need is: When successfully recording the…
-
0
votes1
answer213
viewsMultiple calls to modal bootstrap
Good morning. By clicking a button, this button calls a modal, whose call happens twice, and I can’t understand why this call is coming twice as you can see in the following picture. Call of the…
-
0
votes1
answer45
viewsAjax, send data without updating page
Well, I did a Restful API integration, which searches all products from one e-commerce and sends Json to another site, and needed that when clicking the "Submit" button, the page did not update. My…
ajaxasked 6 years, 3 months ago Samuel Moreira 1 -
0
votes1
answer125
viewsReturn a Javascript variable and the contents of PHP - AJAX
I want a script on ajax that on the page return me the content to write in a div and a variable to use in the link tag "A". <a href=" escrever a variável aqui Y ">volta</a> <br>…
-
0
votes0
answers105
viewsAdding Datatable Lines
I have a table, which I need to fill out dynamically, as the user adds the information. How can I get this information, I already have the function that picks it up, and add it to Datatable ? Follow…
-
0
votes1
answer47
viewsRefresh p:selectonemenu primefaces
I came across a problem I couldn’t solve. I have a p:selectonemenu that has a p:ajax with Event change. When changing its value it executes a Listener that arrow the values of other p:selectonemenu.…
-
0
votes1
answer147
viewsPass two sets of AJAX values to controller
I need to pass the values of a view model, and of a table, the table is passing normally, when passed alone, the viewmodel does not. Go on like I’m doing: var model1 = objectifyForm(model);…
-
0
votes0
answers373
viewsError: mb_strpos() expects Parameter 1 to be string, Object Given
Context: When trying to delete the object Structure checklist the following error occurred: mb_strpos() expects parameter 1 to be string, object given How to solve this problem? Information from Dev…
-
0
votes1
answer52
viewsRun function for multiple items in JS
I have a function that is responsible for updating the values in some <div>, follows script: file js. window.onload = function makeRequest() { var xmlHttp = new XMLHttpRequest();…
-
0
votes3
answers719
viewsSuccess: Function(data) in Ajax not working
Everything inside Success it does not execute, but the request is successfully sent because I saw inside the Chrome network and the login is done normally, it just does not trigger the ajax Success.…
-
0
votes0
answers72
viewsFeed a list with txt file data
Hello, good morning, good morning!! staff need help! I have the following list created in html, it is not complete, just for you to understand. <ul class="lista">…
-
0
votes0
answers37
viewsError loading dynamic modal combo with ajax and php
Good afternoon! When filling out a modal form, I use two combos, which are dynamically loaded. However, when I edit the record, the result of the second combo does not return and is empty. Could you…
-
0
votes1
answer39
viewsFunction to get text value from a accessed URL
I tried to create a small function: $(document).ready(function(){ var value0; $.get( "file.php?id=1", function(data){ value0 = data; }); arrayAmount[0]=value0; var value1; $.get( "file.php?id=2",…