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
-
1
votes2
answers2375
viewsPass form values to Ajax
How do I pass form values to PHP with Ajax? JS (without passing values) $(function() { if ($('#javascript-ajax-button').length !== 0) { $('#javascript-ajax-button').on('click', function(){…
-
1
votes2
answers783
viewsCheck return $.getJSON
I need to know if you returned anything from the database. Any suggestions? var url = "agenda_salao_pesquisa.php?dataReserva="+busca; $.getJSON(url, function(result) { //preciso saber se veio algo…
-
1
votes1
answer256
viewsPass Function Ajax Encryption
I’m trying to get an Alert back from the server, but I’m not getting it. the idea would be as follows index.jsp <html> <head> <title>Teste</title> <link rel="stylesheet"…
-
1
votes0
answers56
viewsSend synchronous request with ajax
I am using Ajax to send data via POST, the "problem" is that I do not want it to be sent asynchronously in the background, I would like to send with the same behavior of a form Ubmit, I added the…
-
1
votes0
answers34
viewsUpdating Table
I have a form that receives all data from the database and has the option to delete such desired data. I wanted to know if there is any way that when the user clicks on Delete the page would already…
-
1
votes1
answer431
viewsHow to view PHP errors using Ajax and JSON?
You know those error messages that PHP returns when we write some wrong code or, for example, we call some variable that doesn’t exist, or we even try to include a non-existent file. When we make an…
-
1
votes1
answer3169
viewsHow do I connect to the database via [Wordpress] to query?
Well, I have a call jQuery Ajax in the header.php of my theme that is entering a file PHP at the root of my Wordpress and return me the echo test. I need this file to query the banco de dados and…
-
1
votes1
answer62
viewsPass AJAX data
Good afternoon to all... I need to pass that information on "token", "<?php echo $tokenAnuncio; ?>", In this capacity: function load_image_data(){ $.ajax({ url:"/fetch.php", method:"POST",…
-
1
votes1
answer799
viewsSend view to controller values by jquery
I am making an application in . Net C#, and wanted to do an input and a button that sends the information to my controller for jquery/ajax, and I have no idea how to accomplish this, I need to pass…
-
1
votes1
answer140
viewsHow do I know if an element has the html or value property?
I have two elements that need to be updated a DIV and another INPUT One has to be updated value and another html, example ... $.each(json, function (index, value) { if (typeof $("#" + index).val()…
-
1
votes0
answers66
viewsRequest data is coming null
Contextualization When deleting a record from the errata history occurs the error 404 that the object was not found; the object is coming empty. How to solve this problem? The requisition is coming…
-
1
votes0
answers133
viewsIs it possible to open php page inside modal?
On all the graphic systems I did, there was a page that took the database records and displayed each record with a button that redirected to its particular chart page. This time I wanted this button…
-
1
votes1
answer732
viewsHow to make dynamic chart based on database records
My system has a page with a table that shows each bank record with a button to open a modal. I would like within this modal to have a graph that compares the number of actions planned with the…
-
1
votes1
answer31
viewsInstead of the ajax command being on the page, it is being directed to php page
$('#formCadastrarProdutos').submit(function() { $.ajax({ url: '../crud/cadastro_produtos.php', type: 'post', data: new FormData(this), cache: false, contentType:…
-
1
votes3
answers852
viewsMultiple parameters in xmlhttp.send();
I am making an entry in the database with ajax, ajax esa working, but the insertion is not being done correctly, I believe it is because I am passing the parameters incorrectly in the send();method.…
-
1
votes2
answers68
viewsLink after uploading a file
<?php $output_dir = "uploads/"; if(isset($_FILES["myfile"])) { //Filter the file types , if you want. if ($_FILES["myfile"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] .…
-
1
votes1
answer289
viewsReturn ASP 3 array and select popular with each JQUERY
I need to popular a select (Html). I believe the step would be this, but how to do it? Someone has a link that can direct me? Click on select (Onchange maybe) Put the Query (Query) data into ASP in…
-
1
votes1
answer88
views -
1
votes0
answers34
viewsIntegrating website and CRM?
Hi, guys. I need to integrate a site with Espocrm (which has an api on Postman). Everyone who register in the form of the site, goes straight to the CRM Leads, it was given to me that is to make a…
-
1
votes1
answer52
viewsDoubt regarding the MVC
I’m doing my first project using MVC in PHP, and I came across this question: In relation to ajax and requisições assíncronas, when I request a page, that page that processes the ajax request would…
-
1
votes1
answer70
viewsHow to disable Validations when doing a Submit in the Dropdown Change event
I have a modal with a dropdown, where, whenever an option is selected, a Ubmit is made and the model is sent to the action to be edited and then returned. The problem is that Validations get in the…
-
1
votes0
answers957
viewsSend input file value via ajax without form
I need to upload images inside a form. I wonder if it is possible to pass the parameters of the image upload form via ajax outside the general form? If yes, how would I do? I tried some ways, but…
-
1
votes1
answer271
viewsUndefined index in value pass with AJAX
I am trying to send binary Blob data by Ajax to upload via PHP. However, I am unable to access $_GET. Returns an error saying undefined index: responseText : "No imgagem found" when I comment the…
-
1
votes3
answers16761
viewsChange the contents of the div without refreshing the page
I’m new, take it easy on the answers. hahahaha I have a div in the middle of the page and I want to change its description by clicking on a button. I wanted to create about 5 pages inside the div,…
-
1
votes1
answer308
viewsHelp with Datatable Server-side
Hi wanted to know the best way to create a Datatable Server-side. Some questions I have: The next button doesn’t work, and the record counter doesn’t work. How do I tidy up? I am using Start and…
-
1
votes0
answers95
viewsPlace details by clicking fullcalendar events
I’m making a calendar for periodic intervention events. So far I managed to show the details of the dressings, in case count as title "curative" otherwise opens the details(general). but I have 3…
-
1
votes2
answers704
viewsSending json files to server
Well I’m making an application and it needs to register a certain person, this data I need to send via json and receive what happened. ajax.js /* button #btn_REGISTRAR */ $(document).on("click",…
-
1
votes0
answers164
viewsAjax error null return value
I have a function in ajax: $.ajax({ type: "POST", url: "@Url.Action("FiltraLevatamento", "Consulta")", data: JSON.stringify(jsn), contentType: "application/json", dataType: "json", async: true,…
-
1
votes1
answer252
viewsProblem with validation of various forms with ajax and php
On my website I have several forms: Real Estate Filter Form, Contact Form, Contact Form and Contact Form. Is there any way to recover all forms except the property filter form and send to different…
-
1
votes1
answer354
viewsAutocomplete with jQuery and Django
Hello, I did a search on the site, but did not find, if anyone knows a link that already deal with this subject, please post. Next, I made an autocomplete in a form of Django with jQuery and…
-
1
votes1
answer65
views -
1
votes2
answers163
viewsLoading Bar
Hello, how do I create a load bar not need to be a Progress bar, until I receive the return of a function. $.ajax(settings).done(function (response) { console.log(response); }…
-
1
votes0
answers458
viewsInsert Modal data into table via Ajax PHP and Javascript
I’m trying to insert data from a table of my Modal in the table "father" of my page, basically I have a modal, where I gave a select to bring the data that is not in the parent table and the user…
-
1
votes2
answers81
viewsHow to execute a function whose name is in the database?
I would like to know how to execute a Javascript function by taking its name in the database. Example: data["nome_coluna"] // essa será a informação que estará no banco. (exemplo: somar();) // Aí o…
-
1
votes0
answers34
viewsAjax is not updating text(.txt)
I made the ajax connection (copied and even pasted) to introduce a text in the div . txt then, I changed the text and saved, but it still shows the text before the modification <script>…
ajaxasked 6 years ago Hovesky NerdGamers 41 -
1
votes1
answer196
viewsJavascript x Ajax x html x jquery
Please, I need some help. I’m trying to develop an app with phonegap x html x jquery x javascript and Ajax, I have the following situation: I am on a page, after the user login with email and…
-
1
votes0
answers39
viewsFill in Combobox based on another
I’m designing a website in the Ruby on Rails language. I’m creating all of Javascript now. I have a javascript question in a Ruby application I have the following code: ajaxBar = (unity_id) ->…
-
1
votes0
answers94
viewsFunction with ajax does not fully load
I have a code that by clicking the button it opens a function in javascript. In this function, a part of the code uses Ajax. I need that, after clicking this button, that code changes the color of…
-
1
votes1
answer584
viewsHow to delete multiple selected records in a Datatable Bootstrap using Javascript - Asp.net
In my Index I have a Table (Datatable Bootstrap) that allows me to select as many Rows as desired. The datatable lines are loaded dynamically using JS. Each Line stores the Registry Id:…
-
1
votes0
answers256
viewsHighcharts jQuery.getJSON
I want to build a chart using Highcharts, where I get Json, but when creating the chart, for example: "column", the bars are not displayed. I make a loop, because the data is received from a table…
-
1
votes1
answer192
viewspass a select value to a php page without refreshing the page!
Good morning, guys I have an onchange event in a select, I wanted to take the value of select and send to a php page. $(document).on("change", "#doc_sel_clinic", function(){ var id = $(this).val();…
-
1
votes0
answers70
viewsAjax does not work with specific button
I have a code that when you click the button it asks for a reason to click. After writing the reason it switches the button and should exchange the information listed below. This code is in Ajax…
-
1
votes0
answers36
viewsProblem updating content with ajax?
I’m trying to keep my page always updated with ajax , but as I’m beginner I created some functions that worked , but requires a lot of server process. LIKE I DID? 1º I created a function that calls…
-
1
votes0
answers14
viewsAsynchronous content for mobile
I am working on a new website project, where some areas will need a special html treatment for presentation. For example: for the desktop, we have a 1920x800 image carousel, while on mobile, I want…
-
1
votes2
answers505
viewsSet value for combo with Ajax
I use the script below to feed some text fields with Oracle database values. But a situation has arisen in which I need to feed a combination of two values (ACTIVE and INACTIVE). In Ajax below, it…
-
1
votes1
answer342
viewsChange tab via button
Colleagues. Through the model Tabs with Ajax I have to pass the content by clicking on the tabs, but it would be like instead of the tabs, it would be by a button ( forward ) at the end of each text…
ajaxasked 9 years, 2 months ago user24136 -
1
votes1
answer74
viewsphp calls by ajax
I have a PHP file that returns a Json. This PHP file is called by Ajax, I have no functions in the PHP file. I receive the variables by POST in the PHP file... Everything is working, but now I want…
-
1
votes2
answers1068
viewsProblems with event click on jQuery, AJAX, and PHP
I’m having a bit of a complex problem and I hope you can help me. I have a code that makes a query (Via AJAX and PHP) and fills a table with the return of this query. So far so good. Everything…
-
1
votes1
answer136
viewsProblem with events and functions running multiple times in jQuery code?
Hello. I’m having a very serious problem with events that are triggered several times by clicking a certain button. I have the task management system below: When I click on the status button (That…
-
1
votes2
answers207
viewsProblems in the return of a JSONP
People I’m trying to get a response from an API of mine as JSONP but not the right one. Code ajax is this: $.ajax({ type: 'GET', url: url, async: false, contentType: "application/json", dataType:…