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
votes1
answer962
viewsCondition "if and Else" for sending Ajax, taking the text of the <span> tags?
Kinda hard to explain by the title, but here’s the thing, I have a foreach that prints in a list <ul> <li> tags, and within it I have the following code: <?php if ($row['Status'] ==…
-
1
votes1
answer80
viewsRun php file with javascript
Hello I need to run a php page, I just want to send the id to execute a basic function but n I am therefore doing this with javascript. <script type="text/javascript"> function removemen(id){…
-
1
votes1
answer332
viewsProblems with utf8_decode in array return
I have a problem that has left me quite confused. I have a page in php that registers ministries. In it I send the data via ajax to another php page to do the insertion, and the insertion always…
-
1
votes1
answer40
viewsProblem with AJAX Request
I’m doing a user login system. When the User makes the form Ubmit the AJAX request is not working and the page switches to login.php JS $("form").submit(function() { if ($("#login_username").value()…
-
1
votes1
answer531
viewsAjax requests in parallel
I’m with a system that has some things that uses long Polling, it disturbs everything, any button you click (that makes an Ajax request) will take long because it has long Polling running. Ajax by…
-
1
votes1
answer741
viewsAjax returning HTML together with Json
Hello, I am trying to fill in input data with the result of a database search using as a filter what has been typed before. ex: User enters client code and when the focus of the input, all the…
-
1
votes2
answers447
viewsReturn function Boolean via ajax
I have the following ajax call on my page: $.ajax({ url: 'EquipamentoTemControleFuncionamento', data: { contratocod: contratocod, numeroserie: numerodeserie }, type: 'POST', dataType: 'JSON',…
-
1
votes0
answers96
viewsDisplay dialog with first faces when clicking on an emptyMessage of a p:autocomplete
Well I am using Primefaces I have a field p:autocomplete to search Employees, I would like when typed a name and no results found it displayed the message "No employees found, click here to…
-
1
votes1
answer135
viewsUpload photos with Javascript/Ajax preview
Hello, I’m making an administrative website, in this site will have the option to upload photo, the user could upload up to 3 photos. My idea was to make kind of facebook, where you click and add…
-
1
votes1
answer1025
viewsHow do I sign in to a PHP server to login to a separate application (HTML + JS) using Ajax?
I’m making a Hybrid app with Phonegap (using HTML5, CSS and JS only - jQuery and Jquery Mobile). For this, I have the application itself, which can not use PHP, and a server apart that takes care of…
-
1
votes0
answers33
viewsDoubt consume json with AJAX
I created this code at the test level to try to consume a "json" via AJAX. I’d like you to tell me where I’m going wrong I’m getting this mistake: json.html:1 Xmlhttprequest cannot load…
-
1
votes1
answer507
viewsWhy can’t I get the data from the ajax request? (json)
I have the following code: script js.: function maisDetalhes(id){ $.ajax({ url:'paginaDados.php', type:'GET', data:'id='+id, dataType:'json', success:function(data){ alert(data.id_event); } }); and…
-
1
votes1
answer41
viewsUsing database mysql and php data
This code works correctly with fixed dates. How to use the dates that are registered in the mysql database? if (!empty($_REQUEST['year']) && !empty($_REQUEST['month'])) { $dates = array(…
-
1
votes2
answers586
viewsHide or delete row from table when delete record
I have a table that displays a client list and has a fluff on the side to exclude each customer. I want to make this deletion via ajax, how do I make the line that is the client that was deleted…
-
1
votes0
answers54
viewsButton returned via ajax does not work
Friends, I have a question about data recovery through ajax requests. I usually use ajax for data search. The problem arose when I decided to search for elements of type button and checkbox, as I…
-
1
votes2
answers225
viewsInputtext returns null
I got a problem I don’t know what else to do. My idea was to have a Checkbox that when marking would show a field and when unchecking would hide this field, for that I used rendered and ajax,…
-
1
votes1
answer289
viewsEdit html+php+jquery items
I have to edit a record series, the same are listed in a table (see): This is the form of the image above: <div class="control-group"> <table class="table table-bordered "> <thead>…
-
1
votes1
answer2137
viewsFunction returning Warning open_basedir Restriction in Effect. File
I have a PHP function that checks if I have new requests on the system. if you have with the return in ajax I display a notification toas displayed the order number. PHP function checkNovoPedido.php…
-
1
votes2
answers864
viewsHow to pick up space values in JSON
Hello. I have a problem with the popular select with JSON. When the value has 2 or more words the value of my option is not filled correctly. Example: { "Marcas": { "Acura": { "Modelos": ["Integra",…
-
1
votes1
answer940
viewsAjax request for server
My minimum is the following, I am developing an API for a bakery, where it may be on the same server or different server, I am using the framework laravel in the version 5.2.*. In order to…
-
1
votes0
answers473
views413 (Request Entity Too Large) in php server
I am trying to send a video file via ajax to the server but the server returns me 413 whenever the file is bigger than 20 M, my apache settings are: upload_max_filesize 5000M memory_limit 1024M…
-
1
votes1
answer62
viewsProblems with ajax form
Well guys, I’m having a really hard time validating this page in ajax, I think the problem is in the php connection file, I searched in numerous Formularios but I didn’t want something so complex or…
-
1
votes1
answer754
viewsWordpress use ajax on page template
Based on the topic below: http://tableless.com.br/requisicoes-ajax-no-wordpress/ I made a code to run using ajax in my WP project, the detail is that this code is in an external site area. For this…
-
1
votes0
answers49
viewsAjax with phpmyadmin
I have a form that records the data in phpmyadmin, but when the data is sent, the page of a Reload for php. I researched on ajax, and I saw that it can help me, but I did not understand very well…
-
1
votes3
answers184
viewsReturn BD values via ajax
I have a screen where I must popular with database values using ajax. When I click on the button to fill the fields the following error appears: Failed to load Resource: the server responded with a…
-
1
votes0
answers83
viewsDoes Ajax only bring results on the console?
Good afternoon guys, I can bring a result in the log, but in the div is not passed on, follows my source: Index.php var teste; $.ajax({ url: 'conversa.php', type: 'GET', success: function(res) {…
-
1
votes1
answer44
viewsSend Variable Ajax to PHP
I’m having trouble sending an Ajax variable to PHP, the situation is as follows: Through a while, are listed all albums available in the database: include './bd/conecta.php'; $sql = "SELECT * FROM…
-
1
votes1
answer1742
viewsAutomatic image upload without refresh
Colleagues. I am wanting to implement on my system, an image update as occurs on facebook, where we click on the existing image and select from our computer the desired image and the image is…
-
1
votes1
answer218
viewsReturn "Undefined" Ajax PHP
Next I’m trying to return a database value via Ajax. By clicking the button: <button id="btn-database-finder" name="database-link" type="button" class="btn btn-outline btn-primary btn-xs…
-
1
votes0
answers153
viewsReal-time request with ajax
I need to update some information in real time, I did some research here on stackoverflow and found a very good post, but I could not make it work. In the post the following was explained: Ajax that…
-
1
votes1
answer116
viewsPrimefaces does not locate Panel and Datatable components
I’m doing a job where I use Primefaces + Ajax + Hibernate. I have a screen to include/change a client that should open in a modal every time the user clicks on the button. And in this same code I…
-
1
votes1
answer2319
viewsGet value from a specific input using AJAX
Next, I have a form that will be sent with AJAX, but the URL will vary according to the ID, example: site.com/ajax/remove/100 <- ID site.com/ajax/remove/200 <- ID This ID value is in an Hidden…
-
1
votes1
answer150
viewsAjaxpro not accessible on IIS
I have a simple application with Webforms, I created some methods that I will access via Ajax via Ajaxpro DLL. I used the attribute [AjaxPro.AjaxNamespace("Teste")] in class and the…
-
1
votes0
answers189
viewsHow to load value from a variable through Ajax
I did the following in an html file: <script> //transmite as informações var xmlHttp = GetXmlHttpObject(); function show() { if (xmlHttp == null) { alert ("Seu browser não suporta AJAX!");…
-
1
votes1
answer130
viewsDynamic Update (Insert) with ajax
I did some research, and I still can’t solve this problem. is an onclick event that sends a request to the update.php file, which updates the notification table. Follows code below: Triggers the…
-
1
votes2
answers210
viewsJS seeking return JSON PHP
I’m starting to use JSON and AJAX and I’m having a hard time fetching the JSON generated in php for JS. That’s all in Intel XDK. In php this way: if ($_GET['acao'] == 'buscaorcP'){ $qryOP =…
-
1
votes2
answers196
viewsParameter arriving truncated way in Ajax request
I have a requisition Ajax that gets the data I need from a WebMethod. The problem is that the parameter used for the request is "coming" truncated in the WebMethod the length of the parameter is 44…
-
1
votes1
answer4234
viewsHow to submit a form with select without Submit button?
Good evening, how do I submit a form with select without the Ubmit button? For example, to create a filter that when selecting the option it automatically submits the form without having the Submit…
-
1
votes2
answers341
viewsStop an ajax request and create a new one
In a search input, an ajax request is made at each letter pressed through a Keypress in the field, but at each key pressed a new request is made, ie if the user type fast, and he type a value of 10…
-
1
votes1
answer99
viewsCall WCF with AJAX
I need to make the ajax call on an html page that will trigger a WCF application WCF contract [ServiceContract] public interface IMailingService { [OperationContract] ServiceRetorno<string>…
-
1
votes1
answer179
viewsAJAX request for WCF with POST
How to make an AJAX request for a WCF service using POST? I am getting several errors with OPTIONS and POST methods that comes in the same request. Here is my code: Contract [OperationContract]…
-
1
votes1
answer679
viewsInsert result ajax dynamic query into input
I am using a dynamic query co AJAX + JQUERY, the result is appearing below as shown in the image above. <div class="form-group"> <label for="inputEmail" class="col-lg-4…
-
1
votes1
answer1615
viewsAjax Request for Controller Spring
I am developing a system with back-end in Spring (Spring Boot) and front-end with HTML, CSS(Bootstrap) and Javascript(Jquery). I’m having trouble putting together an ajax request. Follow the Spring…
-
1
votes1
answer268
viewsProblems deleting via ajax with Laravel
I’m having trouble effecting a deletion with Laravel 5.3. By submitting the ajax it simply is not returning me anything. Man JavaScript is like this: $.ajaxSetup({ headers: { 'csrftoken' : '{{…
-
1
votes0
answers287
viewsLoad content in div without having to load page using treeview menu
Next I researched a lot here before asking this question, I have a menu that when I load the content in the div it gets bugged, it opens and closes at the same time after I load the content in the…
-
1
votes2
answers3281
viewsHow to get json data from php with javascript
I have a question, how to rescue the values, which are transformed into json, into javascript? I think it’s a more elegant way to communicate both. I’ve been seeing a lot of gossip on the internet.…
-
1
votes3
answers150
viewsValue loses content as soon as it exits ajax
When I try to take value out of ajax, it loses value because? var url = window.location; var id = url.toString().split("=")[1]; var nomeResponsavel = "",nomeEmpresa = ""…
ajaxasked 7 years, 11 months ago Gabriel falieri 83 -
1
votes1
answer42
viewsWhat method do I use to mark a BD search result checkbox in ajax?
I need to mark checkboxs for a page of editing forms, the values are saved in a table where checkboxs that were marked in the register were stored, but I do not know how to pull these results and…
-
1
votes1
answer1098
viewsLoad PHP script without refresh
I have a little problem here that I believe may be easy to solve, but I’m having difficulties. I’m having trouble controlling access to a site that is paid ok, so the user subscribes and has access…
-
1
votes1
answer4048
viewsPopulating Chart.js with AJAX request data
Hello, First I’ll give you a brief introduction to how my system works so that you understand exactly my difficulty. Maybe it gets a little big, I’m sorry. Within my system, when the user logs in, a…