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
answers1101
viewsgetJSON Ajax for JSON with multiple objects
To search for data in a JSON simple, like: { "chave1":"valor1", "chave2":"valor2" } I use something like this: $.getJSON(dados, function(json) { $.each(json, function() {…
-
0
votes1
answer490
viewsUsing dynamic combobox how to send the id to server automatically without using the Submit button and return all values where id is equal?
I am using a dynamic datalist that makes auto-complete. In the combobox below this linked with database gestao_vendas, where in the stock table it brings all the names of the products and the…
-
0
votes0
answers50
viewsDifficulties to replace java code Upload script
I have the following code that uploads photos: <script type="text/javascript" src="js/jquery-1.6.1.min.js" ></script> <script type="text/javascript" src="js/ajaxupload.3.5.js"…
-
0
votes0
answers886
viewsHow to return ajax php variable
I am developing a form via ajax/php, when I click on the desired item the form sends the data to ajax and displays in div, but I need to return a value but I am not getting. JS: //script do form…
-
0
votes0
answers48
viewsTextbox problem for autocomplete
I can not enter the method that makes the query to return the nomes and the id´s of the person. View: <script type="text/javascript"> $(document).ready(function () { });…
-
0
votes0
answers125
viewsApplication can not access URL via Ajax when on android
I’m trying to learn how to use Phonegap Build. I developed a small application with a simple button, which when clicked, will execute the ajax function of jquery. This function will call an external…
-
0
votes1
answer162
viewsAjax URL changes if pages come by variables through the URL?
Good people, I have an index.php that calls my other pages as requested Ex: index php.: <a href="home.php">Home</a> if( isset($_GET['pagina']) ){ include_once 'paginas/'.$_GET['pagina'];…
-
0
votes1
answer208
views"Loading page" with ajax (no jQuery)
I’m trying to do that "Loading" effect when the user accesses ONLY THE MAIN PAGE, but I’m not getting it CSS: #load {background:url(http://www.ajaxload.info/cache/FF/FF/FF/00/00/00/1-0.gif)…
-
0
votes1
answer420
viewsJSON return to PHP with Ajax
I’m trying to pass a JSON (result of a Google Place API) with Ajax to PHP. I believe my problem is in PHP when manipulating the data, follows a part of the code: AJAX: //GRAVA TODO O RETORNO NO…
-
0
votes0
answers284
viewsRoute post ajax Laravel
Galera I have a search field by ajax in Aravel that works normally local but on the server it is returning error. When the search route (post ->…
-
0
votes1
answer64
viewsPartially change a page via Javascript
I wanted this code to just update a part of the site and not the whole site. Because when I run the function on a div, it updates the whole site. <script type="text/javascript"> function…
-
0
votes0
answers267
viewsJSPDF create a pdf and attach to email
Hello I’m having trouble generating an email with an attachment. The attachment is a PDF file generated by the JSPDF library. First I started by generating the pdf and calling the php script through…
-
0
votes1
answer77
views<select> does not work Ajax
Good morning Guys, I did a search with Ajax using "input". Now I need to do the same way of searching, but instead of being an "input", I have to use a "select". I have tested using input and it…
-
0
votes0
answers102
viewsproblems with web service Jquery + Vraptor 4 "status of 404"
I know it says it wasn’t found, but I can’t find where I went wrong. My controller: @Controller public class ProdutoController { @Inject private Result result; @Path("/") public…
-
0
votes1
answer683
viewsSwap select option according to option selected in another select
The Problem: On one page I have two select, one selecting the team and the other the team members, the first (team) I fill the option with php (per database query), so it will list all teams I have…
-
0
votes1
answer31
viewsError returning AJAX data
My code is working up to the point where the ajax has to pick up the answer to print on the screen, the Insert is being done normally in the comic, if I change the return $("#requests"). html(data);…
-
0
votes1
answer90
viewsModify code to avoid a Xmlhttprequest with $.getJSON
I’m developing an application here, and I use a JSON object for popular, but when I use $.getJSON() Chrome gives the following error: Xmlhttprequest cannot load…
-
0
votes1
answer22
viewssyntaxError: Unespected end of input OK
I upgraded the opencart version 1.5.x to version 2.0.1.1, everything went well except that I can’t edit orders from customers nor change the status of the order and notify Follow the prints of…
-
0
votes0
answers354
viewsSend an array of a select to a URL using ajax
I have a problem that I’m having a hard time solving even though it seems easy, and it would be this: I have this select with array: <select id="cidade" onchange="fLoadBairro();"…
-
0
votes0
answers123
viewsAccess to a json array value in Ajax
I am working on a project in Laravel. I am doing a dynamic search function using Ajax and Json. Function in the controller: public static function busca_ajax() { $query = Input::get('query');…
-
0
votes1
answer166
viewswhere to mount the table in a PHP MVC project with ajax?
Inside the model I have a series of negotiations to show the final result. //CONTROLLER public function index(){ $this->view->render("views/index.php"); } public function read(){ $data =…
-
0
votes1
answer207
viewsInsert with ajax and php
I’m trying to do an Insert with ajax and I’m not getting it. I understood that to do this I need 3 files html javascript(ajax) php (bank) part 1 and 2 are up and running 100% but part 3 seems to me…
-
0
votes1
answer146
viewsImage Upload
I don’t have as much knowledge in the back-end area, but I need an image Uploader, I looked for a way that doesn’t use a database, but I believe it’s impossible. I need a similar Uploader to the…
-
0
votes0
answers34
viewsChecking for PDO commit
I need to send a successful save only when COMMIT runs without. the problem is in return ajax, no done. in my HTML when an error occurs, it returns the catch error and commit ok I need to print the…
-
0
votes0
answers20
viewsajax call-if the user is login
I started a new application in HTML5 and it recovers the data from the database by ajax I started with this code: it is an online scoring system and I liked to change it to recover the user_points…
ajaxasked 8 years, 8 months ago helder ventura 1 -
0
votes0
answers464
viewsHow to load Partialview via Javascript
I have an Asp.Net MVC project where there is a method that returns a PartialView: [HttpPost] public ActionResult MinhaAction(int param1, int param2) { // ... // Código // ...…
-
0
votes1
answer141
viewsAjax take form data to compose in the url
I have an ajax call that needs to take all the form fields and post to a URL. My code is like this: <script> $(document).ready(function() { $('#somebutton').click(function(event) { var…
-
0
votes1
answer379
viewsContent loaded in a DIV with automatic scrolling bar
I need your help. I’m setting up a chat system, and since I’m a hardhead, I’m putting it all together so I can learn. The point is, I have an index.php page and a page called chat.php. I would like…
-
0
votes1
answer1006
viewsInsert data into db with codeIgniter and ajax
Hello I am trying to insert data in my database with ajax but I am not getting, always returns me the error message Controller: public function insert_user_data(){ $this->load->model('crud');…
-
0
votes1
answer63
viewsTable mounted by input select
My problem here is that I mount a table through an array received by Ajax,have 2 problems: first Every time I select an item in select the Table should reset and take the new data, the way I did it…
-
0
votes1
answer93
viewsSucess Ajax does not work with Codeigniter Controller
Good afternoon, I’m beginner in development. I have a form whose I don’t want the page not to be reloaded when the user submits the form. for this I am using Ajax, I was able to perform the…
-
0
votes1
answer103
viewsHow to confirm if user exists with those "green ticks"
They say it’s with javascript, but I searched the net and found nothing related... Example of how I want it to stay: Currently I do with Alerts, but I would like validation to leave a green light as…
-
0
votes0
answers490
viewsSeveral Ajax Requests
I just did a routine to rescue information from Google Maps using your API. But I needed to use CURL in PHP to make the request, because when I do it directly in AJAX in JS, accuses me the error of…
-
0
votes2
answers410
viewsAjax request error to load in google map
I’m making a request ajax code: $.ajax({ type:"POST", url:"url.php", data:{ ida : href, }, beforeSend: function(){ }, success:function(data){ $("#mapa").html(data); } }); Request is being made…
-
0
votes1
answer223
viewsJquery datatable appears with the result of previous searches when filtering
I have a search page made in ASP.NET MVC that has the data loaded in a table using AJAX and jQuery Template, to not need to reload the page after the search. Follow the example below: function…
-
0
votes0
answers414
viewsSend data to a controller via jquery with no return
I’m working on a project in Laravel. In a certain part I need to send data to a controller via jquery and from the data obtained in the controller, redirect to another view. How can I do that? I…
-
0
votes1
answer284
viewsHow to search for JSON data in this specific code
I need to do exactly as requested on this post, take Json data and return in a specific field. User Jeffson Silva did exactly what I need and made it available in this Example. Only I ran into the…
-
0
votes2
answers102
viewsError trying to submit form with AJAX file
I have the following code I implemented for testing before putting in my project: index php. <form method="post" id="formulario" enctype="multipart/form-data"> <input name="nome"…
-
0
votes1
answer249
viewsProblem when clicking the button, call ajax
Code: <button id="click" class="button"></button> <div class="TableCSS"> <table id="clickvent"> </table> </div> $(document).ready(function(){…
-
0
votes1
answer101
viewsExtract data in Jquery
I am having a problem with Ajax... I am not able to extract the data. They are returned, however, at the time of printing, nothing appears. Follows codes: Model: function livros() {…
-
0
votes3
answers47
viewsSecond button replacing contents of the first
With this code below when I click the button mat it brings me the data in a table. I would like to click on the button sp replace the contents of the table with another. Code: <button id="mat"…
-
0
votes2
answers198
viewsProblem with AJAX Jquery
Code in index.php <!DOCTYPE html> <html lang="pt-br"> <head> <title></title> <script type="text/javascript" src="jquery-2.2.3.min.js"></script>…
-
0
votes2
answers79
viewsProblems making ajax call with checkbox
I have several checkbox that will make an ajax call, but only the first checkbox You make the call. Any solution in the Ids for this list to make the same call ajax? Script: <script>…
-
0
votes1
answer119
viewsajax returning white
I once again here. Come on. Well, here’s my problem: I am passing values to my method in php via ajax, however they are not returning me anything, I did some tests and it is catching on the…
-
0
votes0
answers120
viewsInsert an array with codeIgniter and ajax
Hello I am trying to insert an array, but in this case, you can insert multiple lines in db. How do I pass the data to codeIgniter: var productsData = []; $(".productRow").each(function(i){ var…
-
0
votes1
answer287
viewsRest Web Service using Slim Framework, in PHP, always gives error when called by an Ajax method, although it runs?
I implemented a WS Rest in PHP, but when I try to consume WS using an Ajax method it always returns the error function. However the WS is saved and the data is even recorded in the BD. Someone has…
-
0
votes0
answers45
viewsproblem in ajaxSucess
Hello, I’m having a hard time executing a script after an ajax call. What I’ve done so far? Well, I will explain: I have a button with 2 actions, however, I need one action to occur before the…
-
0
votes0
answers329
viewsSearch in Mysql with FULLTEXT IN BOOLEAN MODE including keyword operators?
How to make in BD Mysql, in an Innodb table with two fields indexed by FULLTEXT, a search is performed through the MATCH query (column1, column2) AGAINST('keyword' IN BOOLEAN MODE) including even…
-
0
votes1
answer944
viewsSending form via Ajax in Laravel + Request
I have a form that makes the registration of people. I need to send it with Ajax to not reload the page. So far I have the following ready that I followed from a tutorial. Js who makes the upload.…
-
0
votes1
answer29
viewsSend AJAX to a table
I have in a database data page inserted in a table: <div class="procurar"> <input type="text" id="search" onkeypress="mandar()"><i class="fa fa-search"…