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
-
2
votes1
answer1048
viewsHow to show the data of an XML file in an input field with jquery?
I am having to develop a function that reads the information that is in the fields of a file of type . xml in PHP and trying to return this information in the form fields. More so far I can only…
-
2
votes1
answer235
viewsSearch without having to SUBMIT
I have the following code and I don’t know how to make it search without I need to give Ubmit, someone can help me? HTML <html> <head> <title>Data Searching Without Page…
-
2
votes0
answers70
viewsMvcsitemapprovider with ajax
So, I’m trying to assemble a menu through ajax requests using also Mvcsitemapprovider, but when I try to access mine CurrentNode in my ajax request, is giving as null My request ajax $.ajax({ url:…
-
2
votes1
answer303
viewsHow to make an ajax request that returns an html text?
Assuming the link making the request is: <%= link_to 'New Classroom', new_classroom_path,class: :remote_link, remote: true %> And may the treatment of the return of the same be:…
-
2
votes1
answer353
viewsAjax Status == 0
I’m using a function in ajax to make some dynamic requests, but the req.status is returning 0 instead of 200. What can it be? Below the code: if(window.XMLHttpRequest) { req = new XMLHttpRequest();…
-
2
votes1
answer175
views -
2
votes0
answers895
viewsUpdate form and div data from the same page by clicking a button
I have a page that has a form and an image. This form consists of 3 buttons that access "hints", a field for response, and button for "Check Answer" and "Next Question", and a field "Score". Well,…
-
2
votes0
answers61
viewsUpload files with AJAX
I’m participating in a project but I can’t upload files using ajax. MODEL <?php // You need to add server side validation and better error handling here $data = array(); if(isset($_GET['files']))…
-
2
votes1
answer291
viewsCompetition Webservices ASMX with Ajax
I realized that when called by XHR, the ASMX webservices can handle few simultaneous requests. Consider the following scenario: Page ASPX: <asp:ScriptManager ID="scrManager" runat="server">…
-
2
votes4
answers1339
viewsSend PHP command via Ajax?
There is how to send a PHP command via Ajax? For example: $.ajax({ url: 'index.php', type: 'POST', data: '<?php echo "teste"; ?>', success: function(r) { $('body').html(r); } }); In case, I’m…
-
2
votes2
answers4788
viewsSpring MVC and Ajax
I am developing a web app in java using the Spring MVC framework. However, a part of the project has arrived that I am breaking my head!. Before I will show the screen print to facilitate…
-
2
votes1
answer481
viewsAjax.Beginform returning Partialview as View
Goodnight! I’m working on a Bed Management project. In a particular View, I am displaying the registered Wards, and for filtering purposes, a field where one can research by the name of the…
-
2
votes1
answer347
viewsDoes load method have beforeSend?
I wonder, if in Jquery’s . load() method, there is some way to use beforeSend, just like we use it directly in $.ajax(); Would have? $.ajax({ url: "https://www.blablabla.com.br", beforeSend:…
-
2
votes2
answers282
viewsHow to execute a function in ajax when opening the page?
I have the following function in Ajax: $.ajax({ type: "POST", url: "tra.php", data: {}, dataType: 'json', suceess: function(Last) { line.originalData[0].push(Last); line.originalData[0].shift();…
-
2
votes3
answers1626
viewsCheck Availability of CEP
I’m trying to develop but I’m not very familiar with programming with Ajax, jQuery and Javascript, then I would like help I have a field that takes the ZIP CODE of the customer and a button so that…
-
2
votes2
answers3514
viewsDelete in the database using ajax and 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…
-
2
votes1
answer106
viewsProblem with posting via Ajax
I’m creating a chat with websocket, when I send a message it saves the message in the database. This is the example of how it sends the message post But the problem is when I send a function…
-
2
votes2
answers1761
viewsHide Div after x seconds after running action
Good morning Galera, I have in my home , a field to consult CPF. The field has only one text field , where I inform the CPF, if I find some Cpf in the database , it returns me some data.I submit the…
-
2
votes3
answers1230
viewsReturn ajax data with php
I am creating a modal in ajax where it will return the id and lists the information in modal the problem is that php returns the "full page" to ajax and gives me no error in the console, I have…
-
2
votes2
answers316
viewsCompleting form with AJAX and Mysql
I need to complete a form, according to the user’s demand, with Database information (Mysql). Example: I have the fields "Institution", "Course" and "Period". For the user, first, will appear only…
-
2
votes1
answer164
viewsIn an Ajax XHR request, in HTTP_ACCEPT what is the meaning of q=0.01?
I have a communication via Ajax (xhr), and in my HEADER the value of HTTP_ACCEPT is application/json, text/javascript, */*; q=0.01. I understand all the above values, I would like to find something…
-
2
votes1
answer242
viewsDELETE Ajax request on a Floodlight SDN controller
I have a function in my Javascript that makes an Ajax request to the REST interface of a Floodlight controller. function excluir(nome) { var jsonExclui = ("{" + '"name": "'+nome+'" }');…
-
2
votes1
answer49
viewsInsertion, editing, removal and visualization of data
I have a CRUD in PHP developed with the MVC standard, all interaction with the database is performed with PDO, my challenge is, pass all data requests asynchronously using Ajax and Json. I have only…
-
2
votes2
answers1001
views -
2
votes1
answer716
viewsProblems with ui:repeat and ajax update
Good night. I’m having some trouble using the ui:repeat and ajax update of the first faces. My intention is to list the criteria from the id of the Decision Process to which they are linked so that…
-
2
votes1
answer1624
viewsPopular select based on a json date
I have a bootstrap and validated form right, but I need that when selecting a date on the datepicker, it automatically loads a select with JSON, and has 3 more selects need to be filled after this,…
-
2
votes1
answer148
viewsAccess.txt file data via Ajax
I have an ajax + a txt simple script and can access the txt data, but I want to select the data of an array in ajax, example, search only the name or only the age. See the code; <!DOCTYPE…
-
2
votes1
answer419
viewsTooltip does not work dynamic
Notice that line: response.write "<span data-toggle='tooltip' data-original-title='" & TitleBadge & "' style='margin-right:3px;'>" This line is inside a file that is called via ajax.…
-
2
votes1
answer1040
viewsError 503 "No 'Access-Control-Allow-Origin' header"
I am trying to make a connection in datasnap using ajax my code: var url = 'http://cloud.nooven.com.br:12345/datasnap/rest/TServerMethods1/CriaSessao/'+cpfCnpj+'|'+usuario+'|'+senha;…
-
2
votes1
answer425
viewsAjax filter in wordpress
Hello, I wonder if anyone has done any functionality like this site, http://www.todeschinisa.com.br/pt/onde-encontrar filtering the posts using a form and ajax so you don’t need to give the page the…
ajax wordpress twitter-bootstrap filter custom-post-typesasked 6 years, 8 months ago Patrick de Freitas 59 -
2
votes2
answers1084
viewsError 500 in ajax request with Asp.net mvc
Good morning, I got a problem I can’t fix. I made a simple ajax request in my code to fill the fields automatically if Cpf is already registered in the database. Well, the day I did everything…
-
2
votes2
answers456
viewsjQuery inserts new rows into the form. How to populate them automatically?
I have a script that automatically adds lines to a form. I use jQuery for this. With each click on a button, jQuey creates a new line in the form to fill in new data. I need a field to be populated…
-
2
votes0
answers49
viewsMy array is not returning, if you do not select a previous value
Guys, I’m doing a "lot your pc" and there are some things that are optional and if you do not select a previous one, it does not bring me the value of the remaining. Example: Cabinet Motherboard…
-
2
votes1
answer225
viewsDropdown with Jquery/Ajax only sends data in the first record
I am applying a dynamically dropdown to each item of a returned list in PHP. When selecting any of the dropdown items, this value is sent to an Update.php file, via Jquery and Ajax. The Dropdown:…
-
2
votes2
answers1891
viewsjson search with ajax in specific field
How to search for data in a JSON with AJAX ? I want to search a JSON field named tag and show another field (title and url) in a div. HTML: <div class="Minimizado top-menu-invisible hidden-mobile…
-
2
votes1
answer340
viewsAjax request with unexpected return
I have an ajax code that makes a request in a php file, and in this php file has only one echo json_encode('test') In return comes the string "teste"NULL, always with this NULL iserido, after any…
-
2
votes1
answer62
viewsArray de Requests
I own a list of contacts, each contact has its agency reference and I can only access the data of this agency by making a request. For each contact I have to access the agency to return the complete…
-
2
votes2
answers109
viewsAjax parameters are coming as Undefined
I would like to say that I searched the forum and found some similar questions, but no answer solved my problem. Follow my own doubt: Doubt: I am trying to delete a notification by ajax, but the…
-
2
votes1
answer127
viewsInvoke ajax error
I am using, to show that you are loading while sending the client to the web service via php //Tipo do método type: "POST", url: "../Processos/AcCadasCliente.php", data:…
-
2
votes1
answer621
viewsAJAX-No refresh navigation with PHP
Good staff I am with a doubt that I can not solve through the WEB. On my page I have a menu that calls some contents to a DIV of content id, that with ajax, and is working, the contents are updated…
-
2
votes1
answer425
views -
2
votes1
answer1327
viewsusing Ajax to seek state - city
I need to create a conbobox of state and cities. According to the selected state, the corresponding cities are displayed. <select name="estados" id="estados"> <option value="0">Selecione…
-
2
votes3
answers144
viewsHow to keep html data saved
Well, I need to take the value of a textarea and send it to a second textarea on the same page, but when I give refresh I don’t want the value of the second textarea to go away, how to do this using…
-
2
votes1
answer366
viewsHttpcontext receive parameter from jQuery
I’m having a hard time getting a parameter from a registration form to an . ashx. This is a simple form that will receive registration data and upload a resume. The upload script I downloaded from…
-
2
votes1
answer114
viewsAjax query does not work
Well, a simple ajax, php and mysql query. This same code changed only by field name works normally on another page. $(document).ready(function(){ $('#email').keyup(function(){ var Email =…
-
2
votes1
answer466
viewsAsp.Net MVC does not run Jquery after calling Action through "url:"
I need to call an Action using Ajax and until then everything right, I make the request as follows: confirm: function () { $.ajax({ url: urlToDelete + id, success: function () { //window.location =…
-
2
votes1
answer359
viewsajax auto complete by entering values in all inputs
To using an ajax request, to send a number to the server and return information relating to that number! In case I return two values, they are nome & funcao. So far so good! It’s working as it…
-
2
votes1
answer60
viewsAjax and PHP form open dynamic list with SQL query
Friends, good afternoon! I need to edit a form that was already ready, including some new options. I know almost nothing about PHP, and I’m having a hard time getting the form combobox to return an…
-
2
votes2
answers1271
viewsMount array through a list in ajax
I have an ajax function that consumes a webservice ,and returns me a list, as I take this list and mount two arrays with the values? JS: function getCars() { $.ajax({ type: "POST", url:…
-
2
votes1
answer1617
viewsFill combobox with ajax
Hello, I have a page that shows a list of system users in a table. At the top of the page, I have 3 combobox that filter the results of the table without refresh. I need to popular the second and…