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
votes4
answers853
viewsClick event only works the first time
I’ve looked for it in other places but I couldn’t find a solution that would work for me. This is the site: http://pedrowebdesign.hol.es/damaso/ These 3 squares at the top, are locations for photos…
-
0
votes0
answers59
viewsOpen link created via jquery in modal window?
My problem is as follows when the user clicks on the add link this opens a modal window by clicking save sends the data pro server-side via ajax if it is all right to create a new Row in the table…
-
0
votes1
answer122
viewsHow to collect 'data-userid' from an Ajax-generated Button and use 'data-userid' in a post?
I’m struggling in the following situation: I have two pages: radioPage.php and radioPageBD.php. In the radioPage.php the user will be able to select the RadioButton Company or the RadioButton…
-
0
votes1
answer367
viewsPage loading Ajax + Jquery + Ruby on Rails
Oops, good afternoon guys I’m a little new in Rails and to with a little difficulty. I have a login form (Sessions/new) and a registration form (users/new), in each of these formularies, I have a…
-
0
votes1
answer338
viewsProblems with selectOneMenu in Jsf 1.2
I need to use JSF 1.2 for client restriction. I’m using selectOneMenu to select the type of person (Physical/Legal) and change the mask dynamically with <a4j:support> and it’s working. But the…
-
0
votes1
answer371
viewsHow to take multiple data from a page and display separately with AJAX
I have a program where it creates cookies with the data that the user typed in the fields <input>. All this through AJAX. So far without problems, but in this file where I make the request, it…
-
0
votes1
answer204
viewsUpdate headers with AJAX
I have an AJAX form that only shows a captcha to the user when the form is sent more than 2 times. I save those attempts on $_SESSION with PHP, but as the form is sent via AJAX captcha will only…
-
0
votes0
answers54
viewsCreate and delete form fields
Colleagues. I have a system developed this time with PHP of which I register in BD the number of participants of a given event. With these amounts, I create the form fields. See: <?php ....…
-
0
votes1
answer52
viewsPartial does not render with enter using Ajax
I have an ajax that fires when the page loads: /assets/javascript/itens.js: if ($('#content-recommendation').length) { xhr = $.ajax({ url:'/get_recommendations/' + gon.item_id + '.js', type:"get"…
-
0
votes2
answers142
viewsCreate App by manipulating external website
I want to create an app for a site that has no mobile version, so I need to show the user only 04 fields on the screen (login, password, sign up and ok). How can I do that It’s not my site and I…
-
0
votes1
answer147
viewsjQuery AJAX transforming into link
How do I link the result to my bank in jQuery AJAX? function carregaRoteiro(){ var roteiroHTML=""; $.ajax({ url: path + "RoteiroAula", type: "GET", async: false, crossDomain: true, dataType: 'json',…
-
0
votes1
answer449
views -
0
votes1
answer438
viewsHow do I handle data from a Date search in the Where clause in Postgres?
I have a screen where I have a list of a company’s payment titles, and I need to do a dynamic search from the issue date of the title. The idea is that when the user enters the date in a search…
-
0
votes0
answers207
viewsAjax or Jquery: transition between external pages
Hi, guys! I’m having a big problem with my site, but I could not solve in any way using the OS in English, let alone the tutorials of other sites. My homepage has two buttons that lead to the later…
-
0
votes2
answers1592
viewsLoad Value in Input
Good Morning, I am trying to load a value into Input after the user clicks the button. // Este é o Botão <button type="button" class="btn btn-default" tabindex="-1" onclick="id_host()">…
-
0
votes1
answer76
viewsPHP code not recognized on the page
I made a menu with Ajax and it changes the content dynamically, so far so good, but the problem is that when I insert a PHP code in the page it does not recognize the code and displays the writings,…
-
0
votes1
answer158
viewsjQuery.load() error in Safari (OSX) only
I’m having a problem using jquery.load() to load part of another document that only occurs in Safari on Mac (in the latest versions: Safari 7.1 and Osx 10.9.5). All other browsers (including IE)…
-
0
votes2
answers392
viewsFunction does not enter ajax success with jquery
I cannot enter the success of ajax with this function. The function works, that is, calls the double click. The first Alert is ok, but the second is not fired. $('#nmUsuario').on("dblclick",…
-
0
votes2
answers988
viewsHow to pass another parameter and value with another variable via post?
I need to send it to the archive php neighborhood. a new variable, using jQuery, how do I do? I have an input like Hidden containing the variable idcl which contains customer data: <input…
-
0
votes1
answer211
viewsHow to select the result of a CEP json in an existing option?
$.getJSON(url, function(json){ $("#pf_endereco").val(json.logradouro); $("#pf_bairro").val(json.bairro); $("#cidade").val(json.localidade); <---- $("#estado").val(json.uf); <---- How to put…
-
0
votes0
answers38
viewsAjax converts url
Guys I have a routine that sends a query via AJAX to my PHP, so when I have for example the following query: ? value<=1000 ai it converts to ? value%253C=1000. The Request URL looks like this:…
-
0
votes1
answer56
viewsJquery if element (':Visible')
I’m trying to create an if so that if one div is visible, another one will disappear (in a wordpress template): jQuery(document).ready(function($){ if($('.classe1').is(':visible'){…
-
0
votes1
answer1867
viewsWays to create combobox using AJAX to fill
Currently I have a normal HTML combobox: <select name="nomeCombox1" id="nomeCombox1" class="select"> <option value="0" selected="selected">Selecione box1</option> <?php $res =…
-
0
votes2
answers992
viewsHow to query the DB without refresh and write the returned data?
I need to query my database with something like AJAX/JSON I’m not sure and return the result within a div next to this map. There already exists a div next to receive the result of the consultation.…
-
0
votes1
answer742
viewsHow to pass parameters dynamically to Rails?
I have a rather complex problem. I need to somehow pass parameters dynamically to params via javascript, to show/hide some fields in a report at the user’s request. Below is a representation of the…
-
0
votes0
answers138
viewsError 500 or 502 in calling Ajax to a PHP file
I have the following problem, I have a report screen that makes an Ajax call that returns all items to me. But when the report has few records it returns everything right, Ajax makes the request…
-
0
votes1
answer193
viewsLink does not work after <div> load
I’m making a login, using Ajax to send the data to a PHP page, which returns with the answer if the login has been validated or not. If it is ok, I update a <div> with the user data logged in…
-
0
votes1
answer325
viewsEmpty session updating only DIV
I logged in in PHP, where I validated the data via Ajax and I load a PHP page into a DIV, so I don’t have to refresh the whole page. So far so good. <?php if(!isset($_SESSION)){ session_start();…
-
0
votes0
answers77
viewsRecover json through a url using ajax
I have this method that searches the data that is in a txt file and populates a table: $(document).ready(function () { $('#example').DataTable({ "ajax": "objects.txt", "columns": [ { "data": "name"…
-
0
votes1
answer136
viewsAjax callback using Spring MVC does not work
Well, I’m trying to make a simple phone call AJAX (which already works), but the callback is not "triggered": $('#negotiation-status').on('click', '#button-add-destination', function (e){ var…
-
0
votes4
answers522
viewsAJAX does not pass values to PHP
Code from my home page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html…
-
0
votes1
answer262
viewsHow to pass variable to AJAX?
I have a screen where I list several songs and next I have an image that calls AJAX to add this song playlist. My doubt is how to pass the ID of this song to AJAX, since I can’t use the URL, because…
-
0
votes1
answer488
viewsPass PHP variable in AJAX
I have a script.js file that needs to capture a php variable, as I do? Look what I got: function atualizaFotos() { $.ajax({ url: "imovel-fotos-id.php?cliente=&cod=" }).done(function (resposta) {…
-
0
votes1
answer110
viewsDropdown Asp.net MVC
I would like to do two dropdown in a view, I don’t want to dropdown through the model in the view because each dropdown is a different class. I made the dropdowns with angular.js only that I failed…
-
0
votes2
answers1490
viewsHow to clear inputs after performing an ajax request?
I have an AJAX function that while loading the database information to feed the inputs is written "Loading...". If you do not find any information it continues with this loading written in inputs…
-
0
votes1
answer33
viewsGenerate JSON data page in Jekyll
I wonder if there is any way to generate a page with data on JSON (false data) in the Jekyll. The intention is to simulate a request AJAX for that page already preparing the code for when the data…
-
0
votes1
answer34
viewsFadein only in elements loaded by Ajax with append
I have a div that contains 12 jobs and a button below (see more) that loads 12 more jobs, the problem is that if I try $('#wrapperTrabalhos').append(data).hide().fadeIn(); entire div…
-
0
votes1
answer1045
viewsCalling a Class by javascript/Jquery
Is it possible to load a specific method from an ajax ? I’ll give you an example: var actions = { options : { action : "newPost" , dados : { title : "Novo Post" , content : "Conteúdo" , author :…
-
0
votes1
answer49
viewssmartphone photo in the HTML file field
Colleagues. I have a web-based system developed in PHP and this system is mobile compatible. When I click on the file field, it gives the option to use the camera, but when I take a photo, it…
-
0
votes1
answer54
viewsHow to use AJAX in many Layers?
I’m studying DDD I have an application with 4 layers being them Presentation Applying Domain Infra In the presentation layer I look for data via Ajax No DB, but I have a question about how to do. I…
-
0
votes0
answers104
viewsEnable CORS in the request header
someone knows if they can enable CORS in the ajax request header without having to do anything on the API server, similar to what POSTMAN does. With POSTMAN as you test the API and it works right…
-
0
votes1
answer238
viewsChanging information within the same modal
Good afternoon, I am making a page for a software manual. It happens that there is a part of this page that is a modal that when opening has a navbar with 5 buttons. My intention is that as I press…
-
0
votes2
answers246
viewsHow to overwrite a page with ajax
The question is simple. I use Ajax Javascript to load content, but as I can for example, load another html2 page and make the page that loaded html2 disappear? The question, ajax has the ability to…
-
0
votes0
answers29
viewsAJAX is not working
Does anyone know why this AJAX isn’t it working? The variables are receiving the values, only the part of sending the data to actualiza.php is that it doesn’t work. $("#btnedit").click(function(){…
ajaxasked 8 years, 7 months ago programmer2016 545 -
0
votes1
answer423
viewsHow to use ajax to select Where
I need to bring information from the bank to a modal, when I click the button should open the modal and bring the infos, to id may be written in a tag or in any other way? But basically it is…
-
0
votes1
answer603
viewsUpdate table field without refresh?
I have a "div" that brings the data of a table "Mysql", how do I do so when clicking on that "div" the data becomes editable ? But without going to another page. <div…
-
0
votes0
answers18
viewsAJAX inside AJAX
I did something like the user type in what I ask, then click on the find, and then do a ajax to find the search data and send it to a div. What the ajax get inside that div is basically this:…
-
0
votes0
answers60
viewsIs Div Load obsolete?
I’m using $("#minhadiv").load("url.php"); but Chrome is saying it’s obsolete, is that right? So how to use?
-
0
votes0
answers164
viewsPHP(via IIS 7.5) is not receiving post via ajax
I have an AJAX request made to the own page where the AJAX routine has been set. Configuring the request with POST method is not being sent. Switching to GET is successfully sent. I think this may…
-
0
votes0
answers33
viewsHow to use Updateprogress with Enablepartialrendering=false?
I have a page where you need to fill two dropdownlists, but do not load Updateprogress if Enablepartialrendering is false. If true, Updateprogress is loaded, but the second DDL is not.