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
-
4
votes1
answer595
viewsHow to get a PHP object in an ajax function
I have the code below that does a check on my controller and it returns me a Count of my request. What I wanted is that in the sucess of my ajax Jquery I capture this value to make some negotiations…
-
4
votes2
answers98
viewsReturn ID of who has the shortest distance between coordinates
I have a function in ajax that returns all latitudes and longitudes of users registered in the database and gives me the shortest distance between the coordinates returned and a fixed coordinate in…
-
4
votes1
answer329
viewsSend multiple values from my Checkbox to an Ajax call
I have a button that when I click calls my ajax function. I want to send the values that were selected in my checkbox.But what comes to my controller is only the first value of my Checkbox., Domingo…
-
4
votes2
answers315
viewsWrite Fileupload Path inside an ASP.NET Updatepanel
Expensive, The question of my doubt is very simple. How do I save the path of my Fileupload file to some control or Viewstate, with this Fileupload being inside an Updatepanel? I’m actually using…
-
4
votes1
answer1158
viewsDropdown dependent on each other
I’m using a function taken from this site: https://github.com/nodet07/Django-Related-DropDowns The function works perfectly, when I select an option in a dropdown, in the 2nd Dropdown already brings…
-
4
votes1
answer186
viewsDynamically include properties of a $.ajax function
Is there any way to edit the $.ajax function so it includes the "date" property when it receives a value, and remove when it does not receive? that is, dynamically? Example: When the date variable…
-
4
votes3
answers881
viewsReceive variable in php and call Ajax function by passing this variable
I will explain this my post better, I think I have not been clear on the issue. Today, I have a page where I search for a certain term and the result is presented to me then a search AJAX Live…
-
4
votes2
answers4167
viewsUpload files with AJAX
I am unable to upload some files with AJAX. I need to send 3 files with dynamically generated inputs, so I didn’t use the Multiple attribute. Firing the event, I get to xhr.send(files), which does…
-
4
votes1
answer259
viewsHow to upload with Ajax
I’m trying to adapt an upload I’ve been using Ajax, but I’m not getting it, so I read I need to use the formData, I tried some alternatives, but all of them didn’t solve, my form has several fields…
-
4
votes2
answers452
viewsHow to send database data to view using ajax with codeigniter 3
Hello! I’m having a question. I’m developing a system for a furniture store. I want to get the owner to edit the furniture he registered in the system. I can recover the data, but I cannot place it…
-
4
votes2
answers1965
viewsget mysql data using javascript and ajax
I’m developing a web app (case interest, follow link) and it was going all right until I got to the bottom: The field NCM is a tag input with a disabled attribute. The information within it comes…
-
4
votes2
answers924
viewsIs it possible to insert a select into a td when double-clicking?
Hello I have a dynamic table that works very well, but as the field is an input people can type anything, but wanted to limit this edition using the options of the options, the table I use the…
-
4
votes1
answer1091
viewsAJAX request time
Well I make a request via AJAX, so I can put a load on the screen and remove it when AJAX loads the page. The problem is that I need to make the load appear only if the request takes more than 2…
-
4
votes1
answer746
viewsLoop in json that returns all records
I’m developing a system, in it I do a search with ajax and it returns a json with the bank records, but I couldn’t draw up a loop in the PHP so that the json could return all records. Below follows…
-
4
votes1
answer195
viewsTrying to upload JPG via Javascript and Ajax
I created the following form below on a client’s website, so that you can change a user’s photo: <form id="formulario" method="post" enctype="multipart/form-data"> <div…
-
4
votes1
answer549
viewsAjax Request Does Not Work - Success Does Not Work
I did the following function: $("#CategoryList").change(function () { $("#SubCategoryDropDown").empty(); $.ajax({ dataType: "json", url: '@Url.Action("GetSubCategory", "ProjectSubCategories")',…
-
4
votes1
answer117
viewsrecharge design material effects
I have a site with material design, but when I update the html of the page with XHR the new content loses the effect of javascript as I could to reload mdl? To make the change between the view, I…
-
4
votes1
answer664
viewsWeather API - Cities with accent give error
I have the following Endpoint in which you receive in the URI the name of the city and the state: @RequestMapping(value= "/clima/{nomeCidade}/{ufCidade}/agora", method = {RequestMethod.GET,…
-
4
votes1
answer4069
viewsWhat are jQuery’s AJAX beforeSend arguments for?
I usually see the use of the function of beforeSend: of jQuery.ajax() being used in a simple way, such as emptying a div before the request: function enviar(){ $.ajax({ beforeSend: function(){…
-
4
votes1
answer51
viewsHow to fade more than one element in the result of an Ajax
I am making a file for loading new news, however, new news appears quickly without a smooth entry. I know you can use something like this:…
-
4
votes1
answer42
viewsTable does not add last request
Good morning guys, I’ll get straight to the point... I have this Success from my json where validating the following function: for(i=0; data.length>i ;i++) { let cliente = data[i].item; let…
-
3
votes1
answer197
viewsHow to remove a field already added to a 'Formdata'?
The following code inserts files from a field file, in a FormData: var filedata = event.target; // FileList object var i = 0, len = filedata.files.length, file; for (; i < len; i++) { file =…
-
3
votes2
answers2791
viewsHow to treat a "redirect" after an Ajax call with Jquery?
Use Jquery to make an Ajax (GET) call. When "redirect" occurs, code 302, for a valid answer Jquery returns error instead of redirecting to the new URL. There’s some other way to treat it?
-
3
votes2
answers538
viewsRemove Select2 parameters
I have a problem using the Select2 plugin, I need to make an AJAX request, but I need the final URL to be the following: api/user/findbyname/name And the way it’s coming is this:…
-
3
votes1
answer1331
viewsjQuery Ajax does not work on IE8 and IE9
I am using Internet Explorer 9 for testing and ajax requests do not work (in all other browsers they work). I have that code: $.ajax({ type: "GET", url:…
javascript jquery ajax internet-explorer-8 internet-explorer-9asked 10 years, 7 months ago Victor Mag 168 -
3
votes1
answer237
viewsAjax returns error after modifying htaccess
I modified the .htaccess with a rule for the url to be passed as the GET parameter and I handle everything on index.php: Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d…
-
3
votes2
answers2553
viewsHow to get database information without updating the page
I have a system where he picks up information from the database. And this database is getting data directly, so I wanted to know how I took this data and show it on the page, but without this page…
-
3
votes3
answers1367
viewsHow to send my login and password via $.ajax
Hello, I have a link where it opens a modal window (as if it were an "Alert") to enter the login and password. I am using jQuery, the $.ajax{} function to be more specific. I would like to know how…
-
3
votes1
answer1101
viewsCookies or Session by Javascript
I’m working on a project, and the back-end (java), is totally separate from the front-end, and they communicate through REST. My question is, let’s start working on the authentication area, and I…
-
3
votes1
answer1275
viewsRestricting data access with REST
I would like to know if it is possible to restrict access to my application data REST. For example, I have the xml/json that she returns in http://meuapi.com/usuarios, where you return my user list.…
-
3
votes1
answer500
viewsHow to check variables with jQuery so that they are not sent empty?
I am learning about jQuery and have already started making Ajax requests to register the information in the mysql database. I have a code that has several variables and I would like to ask how I can…
-
3
votes2
answers330
viewsDisplay layout only when view is not loaded via ajax
In my project, I am developing so that the application works even if the user is with Javascript disabled or unavailable. If Javascript is not available, I load the page normally. If available, I…
-
3
votes2
answers2234
viewsCheck variables in jQuery?
There is a smarter way to write this verification code, the IF? jQuery("#oformulario").submit(function(){ var nome = jQuery("#nome").val(); var email = jQuery("#email").val(); var telefone =…
-
3
votes2
answers500
viewsExtend a specific jQuery method in ASP.NET MVC jquery.unobtrusive-ajax.js
I’m using the Extensions methods @Ajax.BeginForm() to save the data via AJAX. To avoid running more than one click on the Submit button, which could cause a double Insert in my database, I decided…
-
3
votes1
answer427
viewsHow to request on the server using the COMET method?
I have a system, in which it displays database files, in list form. I query the database every 5 seconds using the method Polling. How do I use the method Comet? Since this method does not keep…
-
3
votes1
answer5051
views -
3
votes1
answer84
viewsPlay Framework and AJAX (SPA)
Is it possible to develop SPA with Play? Someone has had this experience and has something to report?
-
3
votes1
answer121
viewsPrivate functions via ajax - Code Igniter
I am using Code Igniter to create a web system and so that the user does not update the losing page that is already open I use all calls via ajax within "modules". The problem is that if I put a…
-
3
votes3
answers44020
views -
3
votes1
answer715
viewsLoad bar with pure Javascript
Sometimes I see loading bars with percentage on sites that I believe overwrite the default behavior of the page when loading (white screen until the content is ready). There are some jQuery plugins…
-
3
votes3
answers988
viewsA single script for N Formularios
I need to know the correct way to when I submit a form a single script solve, the code below only works if I create a script for each form. How do I fix it? Example: $("#meuform") ... $("#meuform2")…
-
3
votes1
answer159
views(ASP NET MVC4 or 5) How to pass a custom name to Xmlhttprequest?
Guys the question is this, I have a <input type="file" id="fileupload"/> and a field <input type="text id="Nome"/>. To pass it to my controller, I do the following: var data =…
-
3
votes1
answer662
viewsHow do I know if the user is updating the page
The user is filling the cart with several items, and I created a jQuery function where the items are instantly added and presented to it. As soon as it finishes choosing the items and clicks on the…
-
3
votes2
answers3236
viewsHow to overcome Xmlhttprequest cannot load?
This error appears to me. How to overcome it? Xmlhttprequest cannot load "example url". No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not…
-
3
votes2
answers742
viewsAjax does not return text in utf-8
By ajax, I am making a query the Database, but if the field has special characters, they appear badly. I am ordering in the following JS function, the result is shown in a div with id="txtHint"…
-
3
votes1
answer487
viewsUpdating content inside a Lightbox without giving Refresh on the page
Good guys, I’m using Lightbox and Ajax for content magnification. The content itself has always been accompanying an image, so just click on this image and it magnifies and appears the text…
-
3
votes1
answer1085
viewsCalling PHP method with ajax
I have a code that does a validation in javascript, and I would like it to be validated as true, change a table of the database. I thought to use ajax, so as soon as validate as true, call a method…
-
3
votes2
answers1014
viewsHow to recover data sent from a post request at angular
I’m making a post request for a php file that requires some data that is sent by the request. My question is how to retrieve this information that is being sent in the request My requisition code is…
-
3
votes1
answer486
viewsHow to get Json by Ajax in . html?
Suppose I have a file .html I just created in the notepad with a code Ajax where I want to get the data generated by this application. I made a code here, and when I put one breakpoint in the…
-
3
votes2
answers8678
viewsReceive responses from jQuery’s Ajax request
When I send an Ajax to run my PHP script the only thing it returns is Success if the script was successfully executed or error if the script was not successfully executed. Question: How to capture…