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
votes0
answers100
viewsHow to pick up the response object of an ajax request with Laravel?
Staff I am making a fetch request to the Variable without using jquery and would like to get the return of this request, however when I give a console.log() in Sponse the console informs Undefined.…
-
0
votes2
answers43
viewsHow to pass product information with parameters and pull in shopping cart?
i am new in the programming area and am creating an Ecommerce, until I came across the following situation when submitting my form via ajax. Items sold on the site have parameters, for example: The…
-
0
votes1
answer42
viewsInsert a success message after Location.Reload()
I would like to add a successfully edited message via JS after reloading the page. The message is displayed before reloading the page and not before. Follows my code: Call AJAX: var resposta =…
-
0
votes1
answer32
viewsRequest error - GET method, Javascript, Ajax,
Hello, I’m trying to make a request but it’s not bringing the data script js. $.ajax({ url : "https://dwconsorcios.com.br/api/v1/contemplados", type : "GET", dataType:"json", success:function (data)…
-
0
votes1
answer23
viewsComparison of categories in ACF AJAX repeater fields
Talk personal, all right? I hope so! I’m having a hard time solving the following problem. I have a Post_type Called prize and a taxonomy called winners, in the post I have a repeater field where…
-
0
votes0
answers6
viewsAJAX - Requests made before the event occurs (executing action before the click)
I am developing a school system, using Php as a back-end language. I have a registered users query page, which initially opens listing all existing registrations, however there is a checkbox filter…
-
0
votes1
answer36
viewsAPI Olist - access blocked by CORS policy
I need to use the Olist API, through a callback, but I’m getting error when performing the POST request that would return the access_token. The flow would be: Use callback/getlink to send client_id…
-
0
votes0
answers9
viewsGoogle graphic image/ asynchronous request
I am mounting a report where I need to generate graphics through the google Chart api and generate the graphic image to insert into the report pdf. I can generate the graphic and I can generate the…
-
0
votes0
answers18
viewsSend content from an index to an Edit via AJAX with . NET
I’m creating an approval screen and when the user clicks fail will appear a pop-up to describe the reason for the refusal ... The problem is that I am not being able to send via AJAX the information…
-
0
votes0
answers18
viewsAjax request using Asp . net core
I’m having trouble with this request... It’s returning 'not been' on the console. The getValue() method is in the Controller/Homecontroller.Cs /* JS */ var obj = { emails: 'teste' } var json =…
-
0
votes0
answers17
viewsHow to consult the Database via Ajax?
In Asp Net Core (I have 03 Models - I will describe well summarized): (Model 01) public class Estudante { public int EstudanteID { get; set; } public string EstudanteNome { get; set; } } (Model 02)…
-
0
votes0
answers18
viewsUsing Datatables in cakephp
I wonder if anyone has any examples of how to use Datatables (server-side Processing) in cakephp (version 3.0 onwards). I was able to do it in php and it’s working. However, when I try to use the…
-
0
votes0
answers15
viewsdynamically popular input with jquery/ajax/Laravel
I have a proprietary select that populates another select with the farms that it owns and with that I am trying to popular an input that brings the city and other input that brings the state of the…
-
0
votes0
answers13
viewsajax request in php page itself
I am learning about PHP and decide to set up a small menu system fondly on the page itself. It turns out that when I click on the add or remove cart item button, PHP makes a request (and obviously a…
-
-1
votes1
answer450
viewsHTTP 500 error in Drupal Ajax
Days ago the server made a reboot unscheduled and since then when trying to edit any data in Drupal, the error below is returned. The error happens when I click the button "Customize this page".…
-
-1
votes1
answer320
viewsHow to load or download points on Google Maps when clicking a div?
I have a page that shows the paths a vehicle has traveled. Routes will be shown in an ordered list arranged horizontally in the style of the Timestack Timeline (http://isaaccambron.com/timestack/),…
-
-1
votes0
answers70
viewsOn-screen message with ajax and jquery
I have an approval system and need to display a message to the user every time they click the Approve button. How can I do it ? My code is that way: Controller: [HttpPost] public PartialViewResult…
-
-1
votes4
answers175
viewsProblem assigning HTML with . text() and . html()
I need to insert the HTML that refers to an image with hyperlink received through an ajax function on the page, but for security reasons I can’t just insert directly, so I’m passing this HTML code…
-
-1
votes1
answer974
viewsHow to encrypt a POST via Ajax
How do I encrypt the posts I send via Ajax? For example in Telegram Web they do this, you can see by XHR with the requests sent and received. Example of how it is in Telegram Web (I wish my…
-
-1
votes2
answers377
viewsCheckbox is not checked
I have an application where a table is dynamically loaded via ajax, and within the table there is a condition, if the condition is true I have to load a checkbox next to each name that is loaded,…
-
-1
votes1
answer149
viewsshowimagepreview does not work on safari
I have this script to give an image preview before the upload works perfectly in ie Chrome and firefox less in safari... anyone ever had problems with safari?? if anyone can give a hint...…
-
-1
votes2
answers911
viewsRefresh-free browsing
the problem and when editing "in the browser url bar" I have to press 2x enter to load the desired page... and it should only be with 1x enter the other problem is that it has since error:0 when…
-
-1
votes1
answer2779
viewsUpdate DIV in Real Time
I would like to update only one div of a site, without updating the whole site and that this div was updated of 0.1 seconds every 0.1 seconds, and for example would not need to refresh or re-enter…
-
-1
votes1
answer738
viewsLoad url with $.ajax and use token
O código seguinte não carrega url. O que está errado? var token = "XfdfdffddfdfdfferrrrrrrrrrreeeeeeeeeeJ777K"; var url = "https://producao-talcoisa.com/api/Produto/PesquisarConteudo/"; $.ajax({ url…
-
-1
votes1
answer470
viewsRedirect page through the link typed in the url
I need a page that when I load it check the link typed for example : www.test.com/myphp.php=10 if it finds a certain number it redirects to another page , for example : found…
-
-1
votes2
answers223
viewsInsert value in the nearest text input
good afternoon guys, I’m having a problem in my jquery Here’s the thing, I’ll have a lot of Formulars on one page... Where when typing in each "board" field my jquery inserts a value in the next…
-
-1
votes2
answers348
viewsCancel redirect when sending a form
How can I make nothing change after sending ajax, the page stay in the same place and not be loaded again? script $(function() { $('.form-carro').submit(function(){ $.ajax({ url:'insert.php', type:…
-
-1
votes1
answer99
viewsSkip input field after click(Function() {
Someone knows how to jump to the next field (input) using the function within the event: click(function() { It cannot be by ID because I am using inside a div that uses jquery’s CLONE function.…
-
-1
votes2
answers433
viewsLarge data volume datatables
I am researching solutions to load a large volume of data on a page with Datatables and I would like to know if Datatables already have a function in which it will be ordering portions of data along…
-
-1
votes1
answer49
viewsDoubt about saving a data and updating a div right away
Good morning, everyone. Only with jQuery and Ajax I can insert a data into the database and then update a div on the page ? Thank you.
-
-1
votes1
answer351
viewsDelete database record with ajax+spring boot+Thymeleaf
Good afternoon! I am trying to delete an item in my view, which is in a bootstrap table. I am using Thymeleaf + bootstrapna frontend. The idea is to take the id and move to a modal window of the…
-
-1
votes1
answer483
viewsChat like php and ajax in real time
I have a chat file. In it is all user conversations. I want that when this file is modified without updating the page, the contents show to the user. It is possible
-
-1
votes1
answer44
viewsDoubt in unescape cryptography
I have this script on the site, but this little bit is encrypted and I wanted to change it because it is an email to contact. When I change that part that is encrypted, the text is scrambled and…
-
-1
votes3
answers575
viewsAjax opening content without refresh
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>…
-
-1
votes1
answer69
viewsProblem with category checkbox and subcategory to display their respective products
I’m having a problem with jquery, actually I don’t have much practice with jquery, but work with ajax and json for database query and data return. Well I have a page that the client wants me to take…
-
-1
votes1
answer243
viewsSave object returned by get method
How can I return to a variable the object resulting from a request get? I’m trying to do it like this and it doesn’t work: var x = $.get("https://api-nave-twitter.herokuapp.com/tweets",…
-
-1
votes1
answer62
viewsRemove 'R$' before converting to Double
I have a list of products in a table, and in order to make the interface more friendly, in the column 'price' I awarded the 'R$' next to the value. Now I need to capture this value to do a…
-
-1
votes1
answer15
viewsCheckbox sends 'on when serialized
I have an html form that sends the data via ajax like this: function showValues() { $.ajax({ type: "get", url: "/Home/salvaItem", data: $("form").serialize(), success: function (data) {…
-
-1
votes2
answers42
viewsHow to get variable js from sucess pro php
How do I make the latitude variable work ? I tried this and nothing is appearing! In sucess la inside the latitude variable works, but on the outside it does not want to work, it is empty. How to…
-
-1
votes1
answer28
viewsConflict with this I get in function when I click, with this from AJAX
How do I remove the variable conflict? i already tried to put in a variable the THIS from outside not to generate conflict with the ajax THIS, even so did not change anything!…
-
-1
votes1
answer632
views -
-1
votes1
answer314
viewsAjax requests with php
Good afternoon, I am in the process of creating a site for a job, and I came across the situation that I will need to popular selects dynamically using AJAX, JSON and PHP. There is someone who is…
-
-1
votes2
answers716
views -
-1
votes2
answers580
viewsajax function returns [OBJECT OBJECT]
Good morning, you guys. I got a problem. I set up a function to bring some results in the Onchange of a select via ajax The problem is that this 'Qtde' input is printing the following msg [OBJECT…
-
-1
votes1
answer318
viewsSearch post and load it into a div using Ajax in Wordpress
I have the following structure in wordpress. <input type="text" id="busca_artigo"> <button id="btn_busca_artigo">Enviar</button> <div id="resultado_pesquisa"></div>…
-
-1
votes1
answer998
viewsView data in real time
I am trying to display a data taken directly from my database with this script: <script> setInterval( function contaUser(){ document.write,("<?php $sql = "SELECT Count(id) as c FROM…
-
-1
votes1
answer47
viewsHow do I put a responsive loading
My site it’s all done need to put a loading when one clicks on each tab or even to enter the site I just couldn’t find a tutorial on how to do it because it works both for mobile and computer..…
-
-1
votes1
answer523
viewsLet only mark a dynamic Checkbox table
I have a table, I create it dynamically, I need the user to manage to mark only one checkbox, That’s when one has scored, the time he goes to score another, he unmakes the other, and marks the new.…
-
-1
votes1
answer45
viewsAjax Questions in Updates
Good morning! I would like to know how Ajax technology works, if it is possible for me to make a code in php and call it through an ajax, like a query, I would put the response file in one page and…
-
-1
votes1
answer1762
viewsValidation if any form input has been changed
I need to check if the form has changed, that is, if any input data has been changed, etc. So that when you do the submit, or leave the page, perform some button click, or the menu be informed to…