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
answers34
viewsButton problem
I have two Uttons, one to activate category and one to disable, each with its layout. I need to switch between the two, when one activates, it changes in the bank to activated and is being displayed…
-
-1
votes1
answer568
viewsError: Access-Control-Allow-Origin, for ajax request
For the AJAX request below: var url = "minhaurlaqui"; $.ajax({url: url, success: function (retorno) } I have the following return: "Access to Xmlhttprequest at 'urlaqui' has been blocked by CORS…
-
-1
votes1
answer647
viewsHow to AJAX WITH JQUERY sending a POST?
Hi I want to send Two valore, one via Post and one via GET to my funcoes.php in this post I want to send as get the type of request to validate it in the functions and also the date that the client…
-
-1
votes1
answer71
viewsFolder browsing
Good afternoon, I have several folders ex: pasture 1, pasture 2 and pasture3 inside each folder has an index.html I need to create a button that when I click forward it jumps to folder 2 and…
-
-1
votes2
answers1501
viewsHow to get JSON from an external url
I’m trying to catch a JSON from an external page, I’m using the dataType=jsonp, but only that the url, returns me a JSON and the following error: Uncaught Syntaxerror: Unexpected token : The JSON…
-
-1
votes2
answers62
viewsCommand in chat to open new javascript page
Hello folks I’m doing a chat and would like that when the user type /rules and press enter it opens a new tab with the address of the rules someone could help me with the code? <textarea…
-
-1
votes1
answer994
viewsConsume a JSON with Javascript!
I have a JSON with the following data of some products: Name Photo Price And I have some HTML cards that I would like them to present themselves there; how could I consume this JSON to show it…
-
-1
votes1
answer48
viewsHow to bring a bank query according to a select, for an input
I want to put a value of the bank when selecting the vehicle, until I was able to put any value, but I can not search the bank via AJAX or JSON…
-
-1
votes1
answer29
viewsHow to get a wordpress post randomly
Good, I want to search for a random post of the articles but it always gives me the same article. wp-json/wp/v2/fatos_random? filter[orderby]=rand&per_page=1 Thanks for the help…
-
-1
votes1
answer1016
viewsHow do I get the machine name via javascript?
Hello, I would like to get the name of the user’s machine that is accessing my application.. How can I do this by javascript? <script type="text/javascript"> function nomepc(){ var net = new…
-
-1
votes1
answer72
viewsCreate Product Pages - PHP + Mysql
Good night! I am making a virtual store and I would like to know if there is the possibility of making a single product page where the user clicks on the product and the information is loaded…
-
-1
votes1
answer250
viewsTransform HTML Table into Excel
good afternoon! I am some time trying to turn a table dynamically coming from the database to an Excel file. The procedure I do is to take this table via Javascript, send it to a PHP file via Ajax…
-
-1
votes1
answer161
viewsEvent change with ajax
I need a field, when a value x is set, to render two other fields. With my current method, I can only render a single field. How do I select one? <h:selectOneMenu id="regional"…
-
-1
votes1
answer13
viewsIncrement a "Property path" in an ajax
I need to increment a property path in a ajax, I need to add numbers in front of the property in a for and receive its value, follow example: data.data[0].genero1 I need to get the genero2 now, I…
-
-1
votes1
answer42
viewsajax or Ubmit work in a page loaded in . load()
ola pessoal tenho duas paginas mostra.php que contém alguns informações e a pagina index.php am loading the page shows.php on the index.php page with load as follows $(document).ready(function(){…
-
-1
votes1
answer135
viewsDatatables (AJAX+PHP), Search, Sorting and Pagination do not work (Table freeze)
The Datatables is working, all the Buttons work and call the table, I am using load to open the table by ajax, does the Reload normally, but the other actions do not, as: Pagination, click on page…
-
-1
votes1
answer560
viewsView data via ajax/jquery from the database
I need to display the data related to users who are in a table in the database, but this data does not receive an input (input in the login form), are not filled. I just want to select the values,…
-
-1
votes2
answers104
viewsRun Javascript commands by PHP
I have the following problem, I cannot run Javascript commands from PHP. Page check time.php <?php echo 'alert("teste")'; ?> Page index php. <script…
-
-1
votes1
answer48
viewsConsuming Mysql with javascript
I have a database using Mysql but the server side does not run Ode, is it possible to consume a database using an Ajax request for example? Using Javascript
-
-1
votes1
answer95
viewsGenerate a set of numbers in php
Friends need to automatically generate a sequence of numbers and comma separations in php, for example. 1,2,3,4,5,6,7,8,9,10,11,12 save in a variable and then make an Insert in a mysql database.…
-
-1
votes1
answer69
viewsDoes Axios use AJAX by default?
Person, a question when studying Xios came up. When I use the default http call with Xios.get(url). then(), is this already considered as an AJAX call? Or is it necessary to add something else?…
-
-1
votes1
answer16
viewsI have a Modal Show , and I need to put in the same row 2 table data
$resultado .= '<dt class="col-sm-3">Cidade/Estado</dt>'; $resultado .= '<dd class="col-sm-9">'.$row_user['cidade'] .$row_user['estado'].'</dd>'; the result in Modal comes out…
-
-1
votes1
answer17
viewsHow to recover values using sortable! of a li’s date and the current position of the
I am trying to change the (li) of this system that I called PRONTUARIOS, just by dragging from one (ul) current to another that I called BOX, I am trying to recover the value of the readiness id…
-
-1
votes1
answer23
viewsReturn of an AJAX is not returning value in Function
I have a function that executes an AJAX, the AJAX response I return in the 'Return', but when I give a console.log the function returns I get no data. Below is the code. function getListEmployee() {…
-
-1
votes0
answers27
viewsHow to keep my html running after a php download
I need to keep an HTML/PHP page refreshing 1 in a minute checking if any new boleto has been issued, if you have new boleto runs the PHP program creating the database file and downloading to the…
-
-1
votes1
answer1203
viewsHow to make the Google map dynamic
I’m creating a car tracking app and I’m having a problem, I’m trying to get the map to update dynamically without the need to keep updating the page manually, this page gets the location through a…
-
-1
votes2
answers432
viewsHow do I compare a Session?
would like to know how do I compare a session one-page php with the ajax for the simple reason of displaying a alert most beautiful to the client the comparison I have and the following he compares…
-
-1
votes1
answer1406
viewsHow do you pass data to a php class via ajax when this is another instance class?
Hello guys I hope you can help me, I’ve been having this problem for a long time I pass my data via Ajax to my class but in the URL do not know how to reach it in a way other than error I tried it…
-
-1
votes1
answer60
viewsHow do I receive the value of Variables Separately from PHP?
This is the code of Ajax $('#FormEs').submit(function(e){ e.preventDefault(); $.ajax({ url: "VerificarPerson.php", type: "POST", dataType:"html", data: { 'metodo': $('#metodo').val(), 'idp':…
-
-1
votes2
answers555
viewsPost via Ajax arrives empty to PHP
I have some values selected by checkboxes that I would like to send to be processed in another PHP script. When I send the post via ajax to a page that receives the $_POST variable and prints it, I…
-
-1
votes1
answer41
viewsAjax Javascript error
Good I have the following Javascript code function fun() { $.ajax({ url: 'aposta.php', success: function(a){ if(a) { a = JSON.parse(a); $("#tempo").html(a.time); if (a.time === 0) {…
-
-1
votes1
answer397
viewsPopular a Chart.js with ajax.get
Talk guys, I have a question here in my project. I have a graph that is like this: And I want to popular it with the data of a webservice in PHP, which will return a JSON and on each button that it…
-
-1
votes1
answer1795
viewsupdate a div without refresh on the page, after insertion via ajax
I need to build a new (table-like) structure containing the information that has just been inserted into mysql via ajax without the page being updated. To better specify, I currently have a while…
-
-1
votes1
answer1469
viewsProblem with multiple forms on the same page
I wanted to use a script for several forms, but I’m not getting it. So I’m generating a script for each form with unique Ids for each field and form. I’m not able to inhibit the behavior of the form…
-
-1
votes3
answers97
viewsPOST ajax and combo box problem
I’m trying to update a combo box dynamically, for this I have two combo box "predata" and "prehora", when the user selects a value in the predata field the prehora field has to perform a query in…
-
-1
votes1
answer611
viewsHow to send via ajax the value of the selected option in a select?
I have two selects, one for states and one for cities. I want to take the value of the select of states with the change event, send it via ajax and recover the cities that has the corresponding…
-
-1
votes1
answer372
viewsLocation.href is not transferring me from ASP.NET MVC page
I am making a login screen in ASP.NET MVC. The framework does all the complete processes without errors: goes to the database, queries the login and comes back with an OK (user exists, I can…
-
-1
votes2
answers3659
viewsHow to send data from a form without the Submit button and without updating the page
Hello, I am a relatively new programmer in php and I am developing a website. It is a site where there is a list of companies. And I wanted to implement in it, search filters, the first of them…
-
-1
votes4
answers469
viewsjson_encode returning HTML tags
In performing echo json_encode($data);, I am receiving ,via console.debug(data), the following: <br /> <font size='1'><table class='xdebug-error xe-notice' dir='ltr' border='1'…
-
-1
votes3
answers107
viewsWrong encoding in Mysql when I enter via AJAX
I’m having trouble finding a solution to my problem. Briefly: I send data to a table, using a php file that does querry, and an ajax call that sends all the values I need to the php file. When it is…
-
-1
votes1
answer645
viewsAjax with java, via jsp
need to pass the information of a component that is on the jsp page to a controller that is in java. From what I understand the best way is via AJAX. Municipal component <label…
-
-1
votes1
answer258
viewsScraping data from a website with dynamic filtering
The search platform of the programs conceptualized in Capes has a dynamic filtering for the query itself. I would like to know how I collect data from an output using Python. Why, using only bs4…
-
-1
votes1
answer753
viewsMultiple requests with $.ajax, synchronously
I am making a system, and in it I need to send several data to the server, basically synchronize an array of objects on a server via json using javascript, until then there is no problem, however…
-
-1
votes1
answer369
viewsControl return order of Curl
I’m doing a check on proxys putting a list of proxys in the textarea and the code returns to me on screen 1 by 1 below each other whether they work or not. Almost everything is ready, the only…
-
-1
votes1
answer897
viewsjavascript input
I have a table with the INCLUDE button containing the following code: <td align="center"><input type="button" class="add" onclick="add_row(<?php echo($id_usuario); ?>, 0);"…
-
-1
votes2
answers100
viewsHow to resolve page redirection in form?
I’m creating a land-page lead capture. I need to pass the files via ajax to not have to redirect the page, however whenever I send the data to the page that should include it in the database it…
-
-1
votes2
answers2024
viewsHow to take data from a form from another page
Hello guys I am with the following doubt I have a web application I want when logging in the home page "index.html" take the 'name' and 'email' and put with jquery in another page with php, ajax and…
-
-1
votes1
answer1691
viewsList data in a table using ajax php and bootstrap
I am facing a lot of problems and doubts with ajax! Have the following function that updates the data and list in a table: function atualiza(){ $.ajax({ dataType: 'json', url: 'get_enderecos.php',…
-
-1
votes1
answer154
viewsChange file contents with ajax
Hello, first, I would like to clarify that I searched both here in the stack, as in other sites something that answered my question, but I did not find. My question is, how can I rewrite the…
-
-1
votes2
answers26
viewsHow do I get the field values?
My code $(document).ready(function(){ $('.formulario').submit(function(e){ e.preventDefault(); var inputId = $('.inputId').val(); $.ajax({ method: "GET"…