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
answers4315
viewsModal ajax mail tracking
Is it possible to make a script that pulls the tracking of some item on the post office page? For example, inside my website: https://meusite.com.br/requests. There’s the link in the case for…
-
0
votes1
answer161
viewsChanging a DIV background in iframe
Following staff, I have a form to upload any image... <form id="form-upload" enctype="multipart/form-data" action="url" method="post"> <input type="file" name="image" id="image" />…
-
0
votes1
answer477
viewsDownload Image via Ajax + Laravel
I am trying to make a script for Download Images, by Ajax. It can be one or several. As you can see in JS, it has a function each searching for the selected images in the system. Then, I call Ajax…
-
0
votes1
answer69
viewsGet a page with PHP or Ajax?
I own the following código to get pages in my contents with url friendly: <?php $url = (isset($_GET['url'])) ? $_GET['url'] : 'home'; $url = array_filter(explode('/', $url)); $file = './pages/' .…
-
0
votes1
answer336
viewsValidation with AJAX in Laravel
Talk personal, I would like to know how to make validations with AJAX in Aravel, I have tried several ways and it does not work, not put the code because I had given up there I have no more rsrs...…
-
0
votes3
answers706
viewsRead a Json object with javascript
In a requisicao ajax it returns me the following: { "og:locale":"pt_BR", "og:type":"article", "og:title":"Um titulo qualquer", "og:url":"http:\/\/www.umsite.com.br\/uma-url\/" } My requisica:…
-
0
votes3
answers1138
viewsTake a PHP variable using AJAX
I make this request with AJAX, but when I give echo in the variable $_GET she doesn’t exhibit anything, I gave a print_r and a dump in it and it’s empty, it’s just a array empty. However, in the…
-
0
votes1
answer45
viewsModal does not result from updated validation error when submitting a $http() request
Strange problem, with $uibModal Angularjs, when using JSON.stringify(object, null, ' '), it does not show the full return in the modal result: { "permission": true, "title": "ALUNO: aDSadaD",…
-
0
votes1
answer9
viewsDoubt of ajax to create a JS page
How do I create a javascript page that contains a button that, when I click, it accesses, via ajax, the contents of a txt file that is saved in the same folder as the page in question, and also…
ajaxasked 7 years, 4 months ago Gui Henrique 1 -
0
votes1
answer47
viewsPass value by link
I need to send a value through a link to another page: <li><a href="" onclick="getPasta()" id="icons"><?php echo $this->translate('Download');?></a></li> I tried to…
-
0
votes4
answers440
viewsMultiple ajax requests using jquery
I have this code over and over and I wanted to simplify it into a kind of plugin or function. Information I usually use, Type => 'get' or 'post' and the url, and the return I deal with in…
-
0
votes3
answers134
viewsreading return json_encode php with ajax
I get this return with json_encode by php but I am not able to read it in ajax Success, what I am doing wrong?…
ajaxasked 7 years, 3 months ago Carlos Lopes 185 -
0
votes3
answers154
viewsJavascript remove() does not work
See the script below. Why remove() doesn’t work? I recently posted on this link: post something similar, but in the other case, the problem was why the button was inside a form, but this time there…
-
0
votes1
answer387
viewsRun the Submit of a form in an element click event
What is the best way to perform a POST at the click of a button in an Asp.net MVC form. View Create: @model Projeto.WebERP.EntityFramework.Entities.Pais @{ ViewBag.Title = "Create"; } <div…
-
0
votes1
answer89
viewsAjax Stacking Requests
I have a web page that displays a list of people registered in my comic book. Each name is a hyperlink that, when clicking it, an Ajax function opens a modal containing specific information of the…
-
0
votes0
answers537
viewsAuto search (Auto complete search)
Good afternoon! I am trying to implement an auto complete search on my system. But so far I have not achieved a satisfactory result. What I want is when the user searches shows the result, as google…
-
0
votes1
answer210
viewsReading in JSON file generating error
I’m trying to make a read on JSON, and it turns out what I wish on a div but my console is returned the following error, XMLHttpRequest cannot load JSON file:…
-
0
votes1
answer50
viewslink_to_remote on Rails 5
I’m leaving for Rails 5 and I can’t find a replacement for the link_to_remote which has been discontinued. In my old code, I have a "Register" link, which when clicked, makes a request to the…
-
0
votes2
answers31
viewsSearch and display results in select
I have two fields, an "input" and a "select", wanted that when starting to enter a username in the input automatically the options of the select were populated with data coming from the BD related…
-
0
votes0
answers140
viewsSelecting a file via javascript
I have a folder with several pdf files and needed to select the pdf 1348.pdf, but via javascript, is it possible to do this ? Would I have to use an Handler ? and how would I return this value…
-
0
votes0
answers34
viewsAjax, Scroll through each element
I have an ajax that returns me this. {curso: "Administração", nDeAluSelecionadosRespondentes: 0, nDeAlunSelecionadosNaoRespondentes: 0, numeroDeAlunosSelecionados: 0,…
-
0
votes1
answer1394
viewsHow to get the number of images in a folder with Javascript/Jquery
I tried to use this function: function getCount(foldername) { var myObject, f, filesCount; myObject = new ActiveXObject("Scripting.FileSystemObject"); f = myObject.GetFolder(foldername); filesCount…
-
0
votes0
answers72
viewsAjax only load div from a page by Class
With ID I can guess, doing so: $.ajax({ url: "www.teste.com/recuperar-senha #senha", beforeSend: function(){ $('.main').html("<p>Carregando...</p>"); }, success: function(r){…
-
0
votes2
answers75
viewsI wonder if I’m doing this ajax the right way?
Guys, I have this ajax and a page called test.php that gets a value, I wonder if my ajax is right and this value is being picked correct inside the test.php page <script>…
-
0
votes1
answer14
viewsEnable link after update in Database
I need to make the virtual store admin after enabling the store by the manager, the link on the site is enabled automatically. See: And on the site when the store is disabled in the manager, appear…
-
0
votes1
answer398
viewsSend more variable "serialized" form via AJAX?
I want to serialize my form, and send another variable. It is possible? Example: var id = "1"; function register(){ $.ajax({ method: "post", url: "meu_script.php", data: $("#form").serialize(),…
-
0
votes2
answers315
viewsExclusion ajax + jquery
Which correct method to be able to delete, my doubt is being how you get the id based on the table row, and how to send it to a page that actually excludes. The codes I’ve already made will be…
-
0
votes0
answers163
viewsEdit input suggestions
Hi, I would like to know how to edit the suggestions of the Exp input: when the user writes something in the input in his suggestions show the results of the request by ajax so he can select with…
-
0
votes0
answers176
viewsHow to divide two values of an array?
I have the following code, where only index 0 is string: $row[0] = $row[0]; $row[1] =(float) $row[1]; $row[2] =(float) $row[2]; $row[3] =(float) $row[3]; $row[4] =(float) $row[4]; $row[5] =(float)…
-
0
votes1
answer20
viewsCreate only one and not several modals
Well guys I have a registration system and in the part of updating the user data he generates me a modal, but the page is getting heavy because there are many records and each record has a modal, as…
-
0
votes1
answer67
viewsA question regarding the use of POST in communication between Javascript/AJAX and PHP?
Well I am working on a project that connects JS to PHP through AJAX. To make this connection was using the GET method and then made the request this way: "seilaooque.php?valor1=x&valor2=y" only…
-
0
votes2
answers837
viewsdata registration via ajax
I’m trying to register data by ajax and the data is not going to the BD. I did a test, direct, between html and php and it worked, but html, ajax and php won’t. HTML: <form method="post">…
-
0
votes2
answers101
viewsHow to mark options in ajax return?
I have an array of ids and I’m returning this array in the ajax response. How to compare this array with the select options and mark the option if it matches the array index? In PHP, we use the…
-
0
votes1
answer47
viewsProblems with ajax request
Well, I am trying to perform a simple ajax request, but the called content is not being displayed. How can I resolve ? var xmlhttp; function callContent(){ var mainContent =…
-
0
votes1
answer94
viewsPick up HTML with jQuery when pressing button
I have a simple system that takes the HTML of a file and puts it in a index unique and dynamic. Example: <a onclick="carregar('cartaonatal/natal.html');" href="#">Agradecimento</a>…
-
0
votes1
answer181
viewsError Upload images with ajax
Index.php <<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="css/style.css"> <title>Upload com Ajax</title> </head> <body>…
-
0
votes1
answer332
viewsFill Selects based on selected item from another Select
I’m having trouble filtering two selects based on a previous user selection. In the case, the user will select the client, and the selects seller and manager should only show the sellers and…
-
0
votes1
answer221
viewsHow to send image to route from Laravel with AJAX
I have a common POST route on the Laravel, but in a separate project I would like to use AJAX to send an image to that route. I will use html2canvas to get the screenshot of the screen. var content…
-
0
votes0
answers151
viewsMultiple requests with ajax - Jquery
I have a page containing 1 (one) to 50 requests. So I use a loop that makes the call. By the speed of my internet, in a matter of 3 seconds I should upload all the requests. But it’s done one by…
-
0
votes0
answers127
viewsBlock forced editing of Hidden input
For example, I have a stock system in PHP and in it the section edit quantity of the product. Here we have a form to add quantity. In this form I have an Hidden field that takes the product id to…
-
0
votes1
answer27
viewsMessage duplication in Chat at the time of the Webinar (client side)
Hello, I have a chat that at the time of the webinar to receive enough customers watching at the time of sending message, the same on the screen seems duplicated, but in the bank not saved…
-
0
votes1
answer41
viewsHow to perform ajax but not update content from div so add?
I have a <div> where the function return ajax and returned, however it updates, I want to know if you have how to perform the function ajax and instead of updating it bring the result leaving…
-
0
votes1
answer628
viewsCapturing the input type date
have a <input type="date" class="form-control" name="data"> In Jquery I need to capture this date and then send it to BD var data = $("#data").val(); But the value only returns 'Undefined'.…
-
0
votes1
answer121
viewsSpring Modelandview not working properly with AJAX callback
Well, some time ago I made a feature on my site consisting of performing a filter (called AJAX), and in my action I simply return a view (at the moment I’m rendering via callback, but if possible I…
-
0
votes1
answer25
viewsCan you ignore a page in the apache log?
I’m developing a page which will permanently consult via Ajax, it turns out that the Apache access log will fill up very quickly and this brings me a problem of server space, I wondered how to treat…
-
0
votes0
answers193
viewsAngular: Ajax request
Shouldn’t the code below be working? I already tested on console and the text in the 'test' file is coming normally, only does not appear when I call with the //demo.msg//. Where am I going wrong?…
-
0
votes1
answer173
viewsAjax/JSON returning Undefined
When making an ajax request with JSON return I am receiving Undefined, when showing the data in the console, I receive the code from php page. Can someone help me identify the mistake? Page:…
-
0
votes2
answers295
viewsHow to read JSON data sent by javascript in PHP
I want to pass a form via json pro my php to then insert the data in the bd. function enviaDados(form){ var dados = document.getElementById('form'); console.log(dados.categoria.value); $.ajax({…
-
0
votes1
answer577
viewsRequest ajax takes a long time to execute
I have an ajax request in which the method used is the POST, the information I pass is with a formData object, in it has some photos that can vary from 1 until 15, when I run it in localhost does…
-
0
votes2
answers233
viewsAdd Download to ajax
How can I add a Download to my ajax request? $(document).on('click', '#reg-discagem input[type="submit"]', function(e){ e.preventDefault(); var form = $('#reg-discagem'); $.ajax({ url:…