Questions tagged as 'ajax'

2
answers

Why is Ajax only working the first time?

I have a table with some values stored in it. In this table I also have two buttons where I can hide the values, leaving only the name of the table and another button that filters the information I want. My problem is that the filter button i...
asked by 15.01.2015 / 13:14
3
answers

Javascript remove () does not work

See the script below. Why does not remove() click? I recently posted on this link: post something similar, but in the other case, the problem was because the button was inside a form, but this time there is no form on the page I already...
asked by 26.08.2017 / 00:56
1
answer

xmlhttp is not defined

I'm having some problems while performing an ajax request by javascript, however, it does appear that the variable xmlhttp has not been defined, even though I set it before the function and before using it. How to solve? var xmlhttp; fu...
asked by 10.01.2018 / 12:57
2
answers

onclick () on elements generated through ajax?

I'm trying to use a onclick event on <li> generated through a ajax() form. I have the following code $(".option").click(function(){ alert(); var text = $(this).attr("href"); window.location.href=href; }); In...
asked by 19.12.2017 / 20:35
1
answer

error in sending data via ajax

I am not able to send the data to mysql via ajax, I do not know what part of my code could be wrong. My index on which categories are listed from the database via jquery. <div class="container"> <h1 class="restaurant-title...
asked by 02.02.2017 / 20:57
2
answers

Upload content from another file with jquery

I would like to know how to load the code from another html or php file using the $(".div").load("html.html"); The error here would be: It loads the code perfectly, but I have a button in that HTML, the button appears right but then...
asked by 13.11.2016 / 20:31
1
answer

Javascript Error button in IE9

I'm having a browser problem only in IE9, which occurs when I load an attachment and when I click the Add Attach (POST) button, as picture below: functionuploadResponse(frameId){$.ajax({type:"POST", url: "/Turma/AtualizarGridAnexo",...
asked by 18.12.2015 / 12:13
1
answer

What's wrong with my Ajax?

My code has no return and I can not figure out why. index.php <form id="login" method="POST"> <input type="text" name="username" placeholder="Usuário ou email" /> <input type="text" name="password" placeholder...
asked by 24.03.2015 / 16:58
2
answers

Fill div with ajax result

I have an ajax request with the following code: <script type="text/javascript"> function AddVoto() { $.ajax({ type: "POST", url: "{{url('votos/adicionar/')}}/{{{$postagem->id_postagem}}}",...
asked by 24.06.2015 / 16:02
1
answer

How to use ajax to do select where

I need to bring information from the database to a modal , when I click on the button it should open the modal and bring the infos , the id of the registry can be written in tag or in any other way? But basically this is...
asked by 28.04.2016 / 00:48