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
answer40
viewsFiles . js are not loaded after Actionlink loads Partialview
I have a _Menuleft Partialview that contains my menu items, it is loaded in _Layout with the Html.Partial(") Helper. Inside the 'li' menu there is an Actionlink to click on the div "content" the…
-
0
votes1
answer295
viewsProblem with ajax and Curl to receive the mysql value and return to html
I’m having a problem using html, ajax, Curl and mysql. the function is simple an html page where it will receive a name and will send by ajax to the Curl that will access the php that connects to…
-
0
votes1
answer397
viewsLaravel - How to save checkbox choice in item listing?
In a contact management system, I have a list of items which have a checkbox each (gmail style) so I can select them and use some action related to the selected ones. What is the best way to save…
-
0
votes1
answer1688
viewsCapture GET Coordinates in the Google Maps api
In this script I just need javascript to get the coordinates //Algo parecido.... $lato = $_GET['lato']; $longo = $_GET['longo']; $lato = $_GET['latd']; $longd = $_GET['longd']; <script> var…
-
0
votes1
answer76
viewsI don’t get Json return in Ajax with PHP
can’t get out of place, what’s wrong? I don’t get the feedback from Json in Ajax. register Customer.php Ajax.js $.ajax({ type: 'POST', dataType: 'json', url: "crud/insere.php", data: dados, success:…
-
0
votes1
answer52
viewsConflict between 2 scripts
When I put the second script the first script disappears is the first time to use ajax. I call the scripts like this: <script language="javascript" type="text/javascript" src="script.js">…
-
0
votes1
answer521
viewsUpdate database with form data without refresh
Hello, I’m making a control panel of a scoreboard, where I have a screen with all the games of the round and as the games are already previously registered on the bench, I need to update the games…
-
0
votes0
answers85
viewsAJAX with Slim Frame
Project : https://github.com/noebezerra/survey-slim I have a problem with the AJAX request ( Resources/views/templates/app.Twig ) ajax - app.Twig $('.stars-default').click(function(e) {…
-
0
votes0
answers292
viewsGet table row ID to load Modal for tender
Good afternoon Personal, After all this research and not being able to understand how it works, I’m trying to solve a problem that I’m having. I am creating a register of service providers, but I…
-
0
votes1
answer72
viewsHow do I clean data that I picked up in a database search using ajax?
How do I clean data that I picked up in a database search using ajax? Because when I do a second search it merges the searched data. var nuevos_marcadores = []; var marcadores_bd= []; var mapa =…
-
0
votes1
answer198
viewsDoubt - Session with Angularjs + PHP
Guys, I’m racking my brain here, I’ve penetrated the entire Internet, but I haven’t been able to solve a question yet. I am creating a Quiz application using Angularjs, however, I am not able to…
-
0
votes1
answer1786
viewsReturn PHP array in JSON in AJAX
I have the following code: function atualizaPainelQtdeReservas(){ var dataFiltro = $(".dataFiltro").val(); $.ajax({ url: "crud/painelQuantidadeReservas.php", dataType: 'html', data:…
-
0
votes0
answers334
viewsSemantic Modal UI Submit Window and Form Validation
I have a modal window using the semantic UI framework, I can easily use Helper @Html.Beginform it validates 1 field, but not the others. I need to do this validation via jquery when I do Submit…
-
0
votes1
answer46
viewsUpload image using ajax
I wanted to insert an image on the server using AJAX. I have tried to do it in a number of ways but I am unable to upload the image to the server. If anyone can find a solution, I would appreciate…
-
0
votes1
answer171
viewsJquery with dynamic html code
I have an Ajax function that when added, inserts/ updates a page. php $("#recarrega-adt").click(function(event) { $.ajax({ url : 'classes/consulta-aditivo.php', success : function(txt){…
-
0
votes1
answer54
viewsCascade Dropdownlist fill and pick up two fields
Friends good afternoon!!! first I have a file (Repository) ASP that stores my selects for some dropdowns, in this have the function below listing my UF’s: public function ListarUF() dim sql dim cmd…
-
0
votes0
answers58
viewsHow to register, query and display data in the same request?
I have a form where the user enters his data (name, experience, height and weight), the information is registered in the database, compared and is returned to the user the ideal board model…
-
0
votes1
answer90
viewsPHP Update checkboxs dynamically
I’m having difficulty performing a function on a scheduling system, Follow the picture: I need to do the following, when the user selects a date the system makes a query in the database and fills in…
-
0
votes2
answers211
views -
0
votes1
answer165
viewsAjax sends php query in Mysql
Hello friends I’m studying Ajax I’m trying to make this code execution work, but I still can’t. I’m trying to do after formprodutos be selector is sent to consultarcor.php via Ajax the information…
-
0
votes1
answer45
viewsProblem with Dynamic Input
I am developing a dynamic input that checks whether the database contains a value if there is such value should not appear in the input, but I am experiencing problems with my logic: <?php…
-
0
votes0
answers244
viewsUsing ajax to execute a php code
Hello, I’m having a problem with how to use ajax to run a php code, I’m trying for hours to find the problem, but I can’t. Code js $.ajax({ url: 'deletarOrgs.php', data: { id: $id }, type: 'POST',…
-
0
votes0
answers178
viewsUpload images increasing the file size by almost 10x
Good afternoon dear programmers benefactors. I have a problem, as I described in the title, that is affecting my image uploads. The image increases up to 10 times the size. And I’m not talking about…
-
0
votes2
answers341
viewsDynamic like button
next, on the page of each post has a button for "favorite", as I can check if the post has already been liked and change the name of the button to, for example, "favorite" and if it is not, when…
-
0
votes0
answers1121
viewsAuto Complete Addresses with Google Api
As I have no knowledge of javascript I need a little help.... What I need is to do an address autocomplete in several fields by a google Api how could I do this? This example below is what I needed,…
-
0
votes1
answer61
viewsSlim Framework with Apache2.4
Good morning. I am creating an API to provide a service for other applications. I have the following scenario. A system to provide the service. This system has a virtualhost configured. The Uri is…
-
0
votes0
answers908
viewsHow to use Ajax contenttype to transfer XML and JSON data between services?
Good afternoon, you guys! I need to pass data in XML and JSON formats to an API I am developing. Every time I place contenttype: "application/json/xml; charset=utf-8" in my Ajax block, I get the…
-
0
votes1
answer285
viewsHow to not duplicate items in a list returned from json with ajax
I’m having problems, basically I’m doing a search in products with like, but is duplicating the products, I’ll attach an image that clarifies better. $(document).ready(function(){ $("#search").on(…
-
0
votes2
answers526
viewsConvert php code to reply ajax
Here I am again with my silly questions but they give me the biggest headache.. Come on, I have a script that takes the data that the user typed and sends to the server, works perfectly, however I…
-
0
votes2
answers117
viewsShould I validate data in javascript and php?
I have a file that sends some data to another page with ajax. These data are mostly numbers, and are not stored anywhere. Just picked up some data on inputs and send to the archive php with ajax,…
-
0
votes0
answers129
views -
0
votes1
answer98
viewsQuery $ajax "GET" showing "Undefined"
Good night, my friends! I have no programming experience, I appreciate any help. I created a simple query to list the query in a table. <script type="text/javascript">…
-
0
votes1
answer1674
views -
0
votes2
answers277
viewsReturn Multiple values with PHP jQuery
I have a Function that returns me the values of a Grid in a Modal I call the function it makes a Select in PHP and returns me the data within a Modal. Except that besides bringing this data I need…
-
0
votes0
answers774
viewsGenerate PDF by Ajax
What I am trying to do is for the user to click the button generate of a form, manages a .pdf by Ajax request, ie I have three pages, where the Index.php this form, the controller.php this is the…
-
0
votes1
answer603
viewsload ajax combo when opening page
I have the code below to load the cities: $(function(){ $('#cod_estados').change(function(){ if( $(this).val() ) { $('#cod_cidades').hide(); $('.carregando').show();…
-
0
votes0
answers134
viewsJavascript function returns Undefined
Hello ! I have a Javascript function where I use ajax , I need the return of this function to be the data that is returned by ajax. I can get the return smoothly but I can’t assign the return value…
-
0
votes1
answer614
viewsWhat Way XPG FTP Access Via Javascript
You can access my free account on the XPG hosting server, through Javascript? I wonder if it is possible to make a connection with Javascript only with an FTP server(ftp://ftp.xpg.com.br), to "Send"…
-
0
votes1
answer118
viewsBreak loop on page
I have a problem, that I researched and thought how to do, but I could not solve. I have a select on the page that needs to be populated after a condition is met. And after that, it needs to query…
-
0
votes1
answer64
viewsLoad variables in external php
I have a page that I need to open several modals, not to compromise in loading the page I decided to call the modals only when the user requested it. I did the following AJAX function: function…
-
0
votes0
answers3820
viewsValidate password with confirm password
I am trying to validate my password more accurate that is identical to the password confirm field, I am validating in php and using ajax to show error if the input value is incorrect. I have tried…
-
0
votes2
answers1030
viewscustom datatable filter
Good morning! There is a certain time, that I have been needing to make an advanced filter on the server side. I thought two possibilities, to send the parameters in fnserverdata, which did not work…
-
0
votes2
answers73
viewsChecking if login already exists via AJAX
All right? I’m hoping that when you lose focus, the login field will go to the bank and look for an equal login. If there is, it means the guy has to use another and for that the return must be a…
-
0
votes1
answer279
viewspull information via php ajax
good afternoon, I am studying ajax and I am trying to make an input pass to a file via post, but nothing happens.. I am following via Chrome firebug and I see that always the type: 'post' is in…
-
0
votes0
answers38
viewsHow to load 2 ajax on the same page?
Hello. I would like to have this ajax query return the value to be placed next and feed to the chart. I am running, but the value is not being loaded, the graph appears empty. Any problem in loading…
-
0
votes0
answers422
viewsUncaught Referenceerror: Function not defined, load via ajax in partial view with ASP.NET MVC
Let’s go to the stage: A view, which contains a form, is loaded via Ajax (load) into a modal (bootstrap) and then this modal is displayed. The form is built by the @Ajax.Beginform helper where is…
-
0
votes0
answers171
views -
0
votes1
answer687
viewsJson in Jquery returns Undefined
Although I have looked at all the various questions about it, I cannot make my json work, the code is like this: $.ajax({ url: '<?= base_url('login/Pesquisar'); ?>', type: 'POST', data:…
-
0
votes1
answer35
viewsProblem Deleting Row in SQL Table with Ajax
I’m with a function, trying to delete a row from my sql table, but nothing has happened. HTML: <span class="action"><a href="#" id="<?php echo $id; ?>" class="delete"…
-
0
votes1
answer738
viewsPassing an array via Ajax to view Django
I plan to pass an array via Ajax to my Django view, but there is always an error stream_or_string = stream_or_string.read() Attributeerror: 'Nonetype' Object has no attribute 'read' $.ajax({ url:…