Questions tagged as 'ajax'

1
answer

Create DropDown list from another DropDown with PHP

I've been trying to do this for a while, but I failed miserably, I'm trying for a different method than I saw on the forum so I do not think I fall into duplicity. I need to create a second dropdown from the parameters of the first one, it wo...
asked by 29.11.2017 / 15:20
1
answer

How to copy div from iframe to parent? (replicate) can be using ajax, jquery, javascript

I have an index.php which makes a post in conteudo.php, and takes the result and writes in the #contribed div within index.php. Post: <script type="text/javascript"> $(this).on('load',function(){ var dadosLink = 'nada...
asked by 15.10.2017 / 04:33
2
answers

Simple Ajax to reload a DIV every 30 seconds

I am the following javascript to reload a div every 30 seconds, but it is not working, nor does it display an error. Code: $(document).ready(function() { var $div_novospedidos = $('#div_novospedidos'); $div_novospedidos.empt...
asked by 29.09.2017 / 00:13
1
answer

Call ajax for onclick in SWAL

Hello, I'm trying to get the user to click on a button, open a SWAL containing another button that has an ajax function, but neither does SWAL open. $(document).ready(function(){ var encerrar = $('#encerrar'); $('input').on('click', function...
asked by 04.09.2017 / 21:31
1
answer

How to use the aotext botepage plugin correctly

I'm trying to use this plugin here botepage The problem is that I can not insert any content inside the divs, on page 1 for example say that I want to put "hello" on page 2 say that I want to put "hi" as I do to assign page 2 to div two, pa...
asked by 02.10.2017 / 23:30
1
answer

Parameter by Ajax

I need to pass some arguments through Ajax, at first the code has a syntax error. var comeco = $("data_filtroe").val(); var fim = $("data_filtrod").val(); jQuery.ajax({ type: "get",...
asked by 25.08.2017 / 00:27
2
answers

Change button text in AJAX request

Hello! I know the question seems silly, but I do not understand the reason it's not working. I want to send the form via ajax while the request is made, the button is disabled and the name (text) of the button is changed to salvando...
asked by 20.09.2017 / 14:22
4
answers

Multiple ajax requests using jquery

I have this code over and over again and wanted to simplify this in a kind of plugin or function. Information I usually use, Type = > ' get ' and ' post ' and url , and return I deal in sequence with jquery . $.ajax({ type: '', u...
asked by 22.08.2017 / 23:29
3
answers

How to disable an input field?

After receiving a value, how do I block an input field so that it does not have its value changed? below are two fields; how to block only the 'FANTASY NAME' field and keep 'CNPJ' to receive a new value? $(document).ready(function(){...
asked by 02.09.2017 / 22:26
1
answer

Problem displaying popup when sending forms

I developed a form, when the user clicks on the send button, a GIF appears and then it has to appear a modal saying that the information has been sent up, so the GIF works normally, however when the form is submitted the GIF is added and the POP...
asked by 11.08.2017 / 19:30