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
answers841
viewsMoving character and map with canvas+js
Well I have a question, I would like to know how I could use the image in normal size, but that I can navigate it with the left and right directional, example, I have a canvas of size 968 wide and…
-
1
votes2
answers1260
viewsConsume Webservice from an external link
While consuming a webservice an external URL via the link in the browser http://api.postmon.com.br/v1/cep/30640-240 returns the following JSON message: {"complement": "from 9201 to the end -…
-
1
votes2
answers935
viewsInsert with ajax on onclick
I would like to make an Insert from the onclick with ajax and already bring the result to the text of this button. Example is button to like in case each click sum +1 ; function curti(id,identify){…
-
1
votes0
answers81
viewsUpload with AJAX, does not go with files older than 2 megas
I have an image UPLOAD code with AJAX: $.ajax({url:"php/upload.php", type:"POST", data:new FormData(this), contentType:false,cache:true,processData:false,success: function(resposta){ It only works…
-
1
votes3
answers347
viewsFavorite facebook style button
How to create a favorite Facebook like button that after clicking is marked and sends the request to the database in background, something like this: The First button is the normal state and the…
-
1
votes1
answer63
viewsabout ajax vs assigned events
When the document is ready, $(document).ready, I send an AJAX request to a PHP page that generates a table that I put in my body, but,... below this ajax request, I have functions that handle events…
-
1
votes1
answer538
views"Uncaught Syntaxerror: Unexpected token :" error when trying to bring data in JSON format from another URL
I’m trying to pull data from a URL returning JSON to use on my page. Apparently I am able to bring the data, but for some reason I get the following error in the browser console: "Uncaught…
-
1
votes1
answer2709
viewsForm inside an html form
A doubt that may be simple, but I had no choice: I have a main HTML form, which captures all the data of a table, the problem is that there is the upload of images inside this form, and this upload…
-
1
votes1
answer107
viewsHow to fix the "charset" of an XML document?
I have that code $.ajax({ url: "https://crossorigin.me/http://www.acidigital.com/rss/rss_santo.php", crossDomain: true, contentType: "application/xml; charset:utf-8", type: "GET", dataType: "xml",…
-
1
votes1
answer965
viewshow to validate form with ajax return
I am unable to validate the form in this field that returns from ajax, function: validateVeiculos(); How to validate the checkbox that returns from ajax? I have a main page.php where I declare the…
-
1
votes1
answer513
viewsHow to load a partialview for an AJAX request?
I can’t carry a partialview in a div ! <fieldset> <legend>Contato:</legend> @Html.Label("Tipo Contato: ") @Html.DropDownListFor(t => t.CodTipoContato, Model.TipoContatoList, new…
-
1
votes0
answers65
viewsJquery - Update list by ajax
I have an ajax that is called every 10 seconds by a setInterval, it gets a json and when I delete an item from the json I need the item to sum up from the ajax listing as well, the code to remove…
-
1
votes2
answers568
viewsJavascript-enabled checkbox for controller
I have a group of checkboxes that are generated from the BD, therefore their id will be different. In my case 3 checkboxes are generated: HTML: <input type="checkbox" id="[email protected]()"…
-
1
votes2
answers938
viewsInsert the json return inside Divs separated by <div> </div>
I got a comeback like JSON I’m trying to insert into the div, but it’s inserted all on top of each other. <!-- DIV que vai receber as informações --> <section> <div…
-
1
votes1
answer1911
viewsWhat is the setRequestHeader method for in pure AJAX in POST mode?
What is the purpose and importance of this traditional method setRequestHeader pure AJAX when POST type requests are made by the client for a PHP application on the server? I am always required to…
-
1
votes1
answer842
viewsCustomer search by Name/Phone/Cpf Javascript/C#
I have a page that lists client, and I need to do a name search, I have the method that does the problem research and how to integrate it with the front-end, I looked for examples on the internet…
-
1
votes1
answer363
viewsForce error return in ajax
For example when entering the client (in PHP) validate if age is above 18, before inserting, validate with a condition, and if you enter return an error, which in ajax, could be type: success:…
-
1
votes4
answers424
viewsRequest with ajax
In my system I have an email sending module I send it through ajax. shipping to approximately 300 people on the same request. The uolhost server supports sending 150/hour so when sending 150 I give…
-
1
votes1
answer1935
viewsJSONP: status code 200 OK and still returns $.Ajax(...error:Function()...)
We’re having trouble making a request $.ajax, JSONP. The problem is that even with the positive return (Status Code:200) the function shown below always returns the error check result as positive.…
-
1
votes1
answer753
viewsAjax does not work on Firefox
Works perfectly in Chrome browser, and other browsers don’t... When I enter the login and password it displays the message "Login Successfully!" and stops the page in Mozilla. See the code: echo…
-
1
votes1
answer103
viewsOpen responseText on a new page
Is there any way to open the responseText directly in a new window? I explain: The code I use sends data to a PHP file that returns N messages. If I do the following…
-
1
votes1
answer405
viewsRequest jQuery Post + PHP + Mysql does not save data
I am making a registration via jQuery Ajax, so I created the following function: function salvarCadastro(titulo, form, caminho) { var dadosFormulario = $("#" + form).serialize(); var myData = $("#"…
-
1
votes1
answer156
viewsHow to select Option value with Ajax data return?
I have the following HTML code: <select id="priorities-info" class="form-control selectpicker" data-live-search="true" disabled="" tabindex="-98"> <option value="1"…
-
1
votes1
answer47
viewsAjax returns own code and executes
I have a page that should generate selects by clicking on the icon of +. <div class='form-group' id='div_selects'> <label for='materiais_defeito'>Material com…
-
1
votes1
answer596
views -
1
votes2
answers115
viewsAjax search inside jquery div clone
I have a search in an input that returns the result in ajax, type autocomplete that is working (when I type 3 first digits it shows the results), but when I put this input inside a div "clone"…
-
1
votes1
answer270
viewsAjax returns repeated content
And the following I have an ajax script that returns me an array with new data that exist in the database 1 in 1 second, this working the problem and that it always repeats me the content that is…
-
1
votes0
answers37
viewsVue $http.get loads page plus returns NULL
I’m trying to consume an API and $http.get only returns NULL. I call a PHP that returns a json What a fool I’m doing? new Vue({ el:'#beerApp', data:{ cervejarias: null }, methods:{ getChamados:…
-
1
votes0
answers147
viewsSerialize does not load after Ajax request
I have a query that brings the result of the database to a table that at each row of the result has option to edit, until then the query and run normal, after clicking edit it loads the function…
-
1
votes0
answers3777
views$. ajax - POST ..... 500 (Internal Server Error)
I am sending a request to a URL by function $.ajax() and I need you to return to me one of the parameters (was, error, Nothing). In the localhost is working correctly, put on the server and returns…
-
1
votes0
answers98
viewsModelling Object Change with Ajax
@GetMapping("/cadastrarProduto") public ModelAndView cadastrarProduto() { modelAndView = new ModelAndView("pages/index"); addObject("produtoEntity", new ProdutoEntity()); modelAndView; } It is…
-
1
votes1
answer184
viewsHow to load multiple pages . html with ajax
I’m using this code to upload a page. html, however it does not create several as I would like, I have the feeling that it can only create it once. I would like to create several of them. for(var i…
-
1
votes2
answers89
viewsWhen uploading, the file name becomes the title
Colleagues. Is it possible for the user to upload a file, the file name to turn the page title? For example: The user will fill out a form where the first field is the file upload and the second…
-
1
votes1
answer900
viewsUsing a variable created within an AJAX request in another function
I have a list of projects where, when the Thumb of a project is clicked, the script loads images related to the project. $('.project-grid').on('click', 'a', function (event) {…
-
1
votes2
answers1254
viewsHow to pass the contents of a.txt file to a JS array?
I have this problem, I would like to know what you suggest I research to solve it. I tried using . split, Filereader. It can be in Js, Jquery or Ajax. Any suggestion is welcome. I researched on the…
-
1
votes1
answer587
viewsClear json array after Ajax from a PHP file
Does anyone know how to clear a json array via ajax from a php file? I have a setInterval that checks every 2 seconds and receives data from a php file( this data is brought as json array, I can see…
-
1
votes0
answers97
viewsPhp does not receive the data I pass with $http.post from the angular
Hello, everyone. I’m trying to get some data passed by $http.post for a php script. This is my angled ajax: $http.post('../_classes/chamaOddss.php', id).then(function(datae) { console.log(datae);…
-
1
votes0
answers24
viewsReceive Text content from another page
I am involved in a project and at the moment I need to receive content from a page (in this case, this: http://150.165.202.10/ -> online and working). I try to do it through the code below that…
-
1
votes0
answers86
viewshave to request only when there is a change in the database? instead of checking every second
<script type="text/javascript"> function atualizarTarefas() { …
-
1
votes0
answers29
viewsFunction Check initial and final product
Good afternoon, I’m developing an export screen to generate a product report per cycle and low area. However I need to filter between initial product and final product, in case I have a Function to…
-
1
votes1
answer75
viewsHow to access # property in a JSON file with Jquery?
Hello, I am using the Last.fm api and I am having difficulty accessing the #text found inside the image array. Data link -> JSON I try to: console.log(values.track[index].image[index].#text); But…
-
1
votes0
answers260
viewsDynamically created content over dynamically created content not working
Hello, I have a "static" page (between quotes pq it is dynamically generated by PHP, but let’s say static in the eyes of Javascript) and I’m trying to create it dynamically, because it will become a…
-
1
votes1
answer288
viewstable always active with Ajax and php
I’m studying I’m novice, and I’m making a site with php, jquery and ajax, all blz, I need to load the database data and put it in a table, only the data has to be in real time, that if you have an…
-
1
votes2
answers560
viewsValues from one form to another
In the index.html will have a pre-form with name, email, city and UF. I will need to take this data and play for another form that will be in another html file. I have a certain notion in jQuery,…
-
1
votes2
answers81
viewsHow do I pass this function to a php file called Geolocation via ajax?
var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not…
-
1
votes1
answer536
viewsWhy does form serialize return empty textarea value?
Good night, I’m creating a CMS based on bootstrap php and ajax what happens to me and that I can send the data of form all by method POST minus the value of the textarea always returns empty I am…
-
1
votes0
answers29
viewsWordpress/PHP/Ajax Load More does not show posts on Windows
I have a Timeline page on my site and use the Ajax Load More plugin to use the infinite scroll. It is working perfectly on the local server when I test on Ubuntu and Mobile devices, but when I test…
-
1
votes2
answers513
viewsAutocomplete with jquery and mysql does not list the options when starting to type
I have the following form: <?php //CHAMA A CONEXÃO COM O BANCO DE DADOS require('../db/conexao.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8">…
-
1
votes2
answers196
viewsDisplay dialogs when successful
How do I make a Dialog appear when the script occurs correctly? public function addDatabase($name, $collation) { // Checks whether all fields filled (Prevent future errors) if (!empty($name) AND…
-
1
votes1
answer594
viewsProblem with tag select in form
I developed a contact form in my website but on that form you have a select unde the person will be able to choose a service but I have no idea how to insert this into my code I would like to know…