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
votes1
answer88
viewsVue Js and Pokeapi
I am currently studying Vuejs, I am using Ajax to request the API, and integrate the application, but I have read in different places about Axios. Why use Axios and not the "$. Ajax"? It’s more…
-
0
votes1
answer635
viewsRun a page inside a jquery modal screen by ajax without Iframe
It is possible to run a page that is inside my dir, within a modal without IFrame for ajax? If yes, how would I do that? At the time my pages would have this path:…
-
0
votes0
answers26
viewsJquery.Ajax() in Webforms without Static method
Is it possible to run a codebehind void method without them being Static? I’m getting error return 500 when trying.
-
0
votes1
answer67
viewsAjax return files from a directory (Asp.net MVC)
I would like to list the files in link form (to click to download). List the directory files below the upload input Ajax: function CarregaArquivos(Id) { $.ajax({ url:…
-
0
votes2
answers1350
viewsIs there any way to receive email through php or in some other programming language?
Good afternoon to all, I’m not a professional developer, I know that in php there are ways to send email through phpmailer(), I wonder if there is any way to receive an email through public domain…
-
0
votes0
answers406
viewsRefresh a div of a Dashboard without reloading the entire html page
I’m finishing my CBT and I came across a problem. I am creating an administrative control panel and would like it to display in real time a Count from a table in my database. I was told that the…
-
0
votes1
answer92
viewsGet value returned in a JS URL
I need to create a very simple script that makes a small calculation. I have a URL that returns a value in the following format: 10.00, something like this: https://domain/api/products.php?…
-
0
votes0
answers537
viewsSyntaxerror: expected Expression, got '<' in AJAX call
Hello I have an error in an AJAX call in my Javascript. For some reason, it does not arrive at the function in my Controller and gives the following error: Syntaxerror: expected Expression, got…
-
0
votes2
answers1198
viewsAJAX Javascript loading message axios
I’m making an AJAX request using the Github API from Axios and wanted to know how I do to, while uploading the information, it give a console.log('carregando'); and create a component written…
-
0
votes1
answer355
viewsPHP Ajax - state combobox - cities
I want to select where, in a combobox, I select the state and open a new combobox with the respective cities of this state. I have it divided into two files: php states. //conexao com o banco... $rs…
-
0
votes1
answer42
viewsRun Ajax first
The last line of the code below is the first to be executed, and I need the function containing this ajax to return true or false, but when I put to return inside Success,error or complete it does…
-
0
votes1
answer953
viewsHow to make Ajax requests in Java
Good Morning I’m developing a web application where I need something simple: when the user selects a state in a Combobox, the system shall update another Combobox with all cities. I am programmer .…
-
0
votes0
answers46
viewsMove Draggable to right and left and crop dimensions
I have a social network with wowonder, I made a modification on the Timeline page, I took the top cover image in banner format, and I put it on the side, with the size of 280x500, it turns out that…
-
0
votes1
answer63
viewsSave Text Field Record Disabled AJAX + PHP
Friends, good morning! I have a form in php where I have to perform maintenance, but it was not me who developed, the former analyst is no longer in the company. In this form, there is a field where…
-
0
votes1
answer790
viewsProblem with Maxjsonlength when using ajax
Hello, I am using ajax to build a table in an application, but when the event is triggered, javascript does not build html, giving the following error: "Error during serialization or deserialization…
-
0
votes1
answer50
viewsHow to take the return value of the function
How to take a certain function return value. I would like to get the Status value. $.ajax(settings).done(function (response) { console.log(response); }…
-
0
votes1
answer271
viewsCatch tab id - jquery
I’m trying to get the id of the tab in this way: var id = $('.tab-pane').find(':required:invalid').closest('.tab-pane').attr('id'); Now I’m trying this way: $('#FornecedorNovo').on('submit',…
-
0
votes0
answers296
viewshow to pass two PHP variables in the onclick function of the html button?
echo '<button onclick="deleteVaga('.$id,$cidade.')"><i class="far fa-trash-alt" style="font-size:36px;color:#f00;"></i></button>'; in deleteVaga function, it recognizes only…
-
0
votes1
answer24
viewsHow to access the Object window from another page
I am making a request via Ajax, I can capture the html, but I wanted to have access to the Object window of the page he made the request, this is possible? Example as I am using.…
-
0
votes0
answers233
viewsJSF, Primefaces, <p:fileupload> stopped working after Chrome update
The fileupload worked perfectly until 3 Chrome updates ago, Firefox never worked, searched all over the internet for any solution or similar error and was unsuccessful. The page in question should…
-
0
votes1
answer97
viewsUpdate datatable when searching for autocomplete
Good morning, everyone. Could someone ask a question? Good is the following, I have a component of the first faces autocomplete and a datatable, but when I perform a search for the autocomplete, it…
-
0
votes0
answers59
viewsHow do I get a JSON file to pick variables in Javascript?
It’s a Google extension where I copy a text from a page and I copy a JSON with what was copied, but I’m not sure how to do it correctly. I managed to do this part but I’m not sure if I have a JSON.…
-
0
votes1
answer93
viewsHow to return data from a json file in an increasing way, different from the root of the objects?
i want to return data from a json file, but I want it to be printed on the bottom page up, that is, the most recent data, which by default is written from top to bottom in json, always appear at the…
-
0
votes1
answer726
viewsHandling request message in Ajax HTTP Status Code
I have a request in Ajax that consults payments on a third party server, I would like to know how to handle HTTP errors. Example: 'server responded with a status of 404 (Not Found)' This error can…
-
0
votes1
answer129
viewsProblem with Ajax request in Javascript
I have a mobile application in development using Cordova, that performs a select on my external BD and checks with mobile data so knowing if there is any change in data. I’m using a request via…
-
0
votes0
answers85
viewsStore global Ajax data return
I am currently using ajax making several different requests for queries. Ex: $.ajax({ method: "POST", url: "getData.php", data: { nome:nome, endereco: endereco } }) .done(function( data ) { var…
-
0
votes0
answers157
viewsXmlhttprequest access blocked by CORS policy
I’m doing a post this way; $.post("_checa.php", { inst: 'val' }, function(data) { console.log(data); }); It is working normal if use on http, but when switching to https, I have the return: Access…
-
0
votes1
answer345
viewsTrigger function by pressing F5 (update)
I am making an application in PHP that, through the selection of a data of the combobox related to vessel and a date field, I make a SELECT in the database returning some data that is inserted in a…
-
0
votes0
answers503
viewsHide or show field according to selected option
I could use a lot of help. I have a php form ready, but the user requested that after selecting the Requester, the requester name field should appear according to the Requester selected. There are 3…
-
0
votes1
answer81
viewsEdit with modal and ajax does not return data
In the modal that I am creating, insert, I can consult the information of the table of the database, but in the edit part does not return the data in the form that I show to the user, but if put in…
-
0
votes1
answer47
viewsajax upload does not pass variables
I’m not getting past the variables in the ajax method. <input type="file" id="id-input-file-2" name="arquivo" class="form-control arquivo" /> <input type="hidden" name="ID_Cotacao"…
-
0
votes1
answer158
viewsI’m unable to fill the <td> dynamically with AJAX and PHP
I have a code with a form that when I do a search and list the employee’s activities. I am using PHP and AJAX, but the tabelanão is being filled. See the Code:…
-
0
votes2
answers77
viewsHow to pass a value from a button (dynamically created within a td) to an ajax function and query the database with that value?
Hello, I created an area that does a search and returns values (from a database query using ajax) within a table. Since one of the table’s tds has a button inside. I would like to query the database…
-
0
votes1
answer442
viewsAxios or Ajax in Vue.js to perform requests to the server How can I api?
I have a question I couldn’t solve by searching the Internet. I use ajax to perform requests for a long time, now I’m programming in Vue.js, and I use Xios, I wonder if there is any difference…
-
0
votes0
answers59
viewsajax request for HTTPS with Cordova
How to make ajax request for HTTPS in app made with Cordova? is returning error "Unable to Verify the first Certificate"
-
0
votes0
answers88
viewsRoutine ajax doubt populating the page itself
Just one question. In the ajax URL field, when I work with MVC, I usually put the action/controller. Well, in my case now I have an Asp page. What passes is that ajax is on the same page that I will…
-
0
votes2
answers48
viewsHow to compare two date and validate fields
I need to compare two date fields in the same form, and the difference between them has to be over 18 years, otherwise an error must be issued. <form> <input type="date"…
-
0
votes1
answer51
viewsConstruct a table on page B with BD data and download on page A by ajax_jquery
I need now in a b.Asp file, build and popular a table(html) and then download by ajax in the a.asp file. So: b.Asp file <%@ LANGUAGE="VBSCRIPT" %> <% Option explicit %> <!--#include…
-
0
votes1
answer298
viewsReturn controller error to JS (Jquery/Ajax)
How to check error on a call return Jquery by ajax for a controller. This return did not come formatted as you would like, just checking the custom fields. $.ajax({ type: "POST", dataType: "json",…
-
0
votes1
answer245
viewsPopular type["text"] by select
I’m trying to popular a type["text"] through jquery and it’s not working! Form: <div> <label>Plano:</label> <select name="plano" id="plano" required> <?php echo…
-
0
votes1
answer369
viewsrecord via input button
Colleagues. I have through the model of Industrial maintenance in Ajax and thanks to our colleague Dontvotemedown, I can change tabs through the button type, but how would I change tabs, register…
ajaxasked 9 years, 1 month ago user24136 -
0
votes2
answers565
viewsGet Header information, javascript
Good morning, I need to get the statuscode that returns in the header, after I run a POST , I would like to know a way to achieve this, using java script if possible what is the best way to get the…
-
0
votes0
answers12
viewsDatatableeditor link enable input only if selected
I have a question as to how to perform this procedure, I used the Datatableeditor and Ajax to achieve this modal. I need the calendar tied to the Training, Ex: Lecture -- displays the calendars for…
ajaxasked 5 years, 6 months ago Guilherme G. Bitencourt 11 -
0
votes2
answers48
viewsGif appear above the page
I have this img that appears a gif with effect of load: <img id="loading" src="~/images/loading.gif" alt="Updating ..." style="display: none;" /> $(document).ready(function () {…
-
0
votes1
answer249
viewsCan I write ajax and javascript together?
some problem of writing javascript and ajax together because both are written inside the tags <script></script> ? Is connected with this question For example, inside the tags I can write…
-
0
votes2
answers251
viewsCors error with Larable 5.1
Personal I am having problems with the CORS in my application Aravel 5.1, when I make a request via RESTLET it returns without problems. However, if the same request is made via AJAX it generates…
-
0
votes0
answers300
viewsHow to pass the @Html.Dropdownlist value to the controller?
I have a registration modal that I receive 2 values, I use an AJAX to save the information, however the value of @Html.DropDownList does not go to my Controller, the strange is the value of the…
-
0
votes1
answer1026
viewswrite files to the database with ajax + jquery
I’m not being able to save data in mysql database with ajax, can anyone help? Not error or anything, just not saved. PHP: $serve = mysql_connect('localhost', 'root', ''); if(!$serve){ echo 'erro';}…
-
0
votes0
answers98
viewsAjax does not work in phonegap
Hello. I am a beginner and I am trying to develop an app. There is a form in the app, and I used ajax to make the request. Works normally in the desktop browser, but not in the app or simulator. I…
-
0
votes2
answers464
viewsHow to Use Masks in Ajax
I am developing an application and I am going through a difficulty when it comes to using Ajax, along with a plugin inputMask. I have some masks configured, but when it comes to using it in Ajax…