Questions tagged as 'ajax'

1
answer

How can I create an element in the DOM from a php echo

Good, no matter how many laps I give an action. The case is that through ajax I call a php file that prints an html tag with echo. The problem comes when you want to handle that label (to which I have put a class) because, I presume, that is bec...
asked by 03.08.2017 / 18:40
1
answer

Problems performing an infinite scroll with AJAX

I'm trying to run an infinite scroll for a news section. What I want is that when I reach a certain point of the scroll, another news block will be added, if the user reaches the end of the scroll, another one will be added again. So until there...
asked by 14.08.2017 / 02:12
4
answers

Pass a variable to a modal - PHP

I am making a query to my database, according to the results given. I get the books with a brief bibliographic description of the book, when I give it more try to get the same data and extract more data from my database. based on the ID of each...
asked by 19.07.2017 / 10:12
1
answer

Reload a partial view from JQuery or JavaScript

This time I find a doubt that looking in several forums I have not managed to solve, I have a list of notifications, which I post in a partial view, then I invoke this view in a layout. up there all right. Then I have a script that whe...
asked by 28.06.2017 / 20:09
1
answer

Jquery Autocomplete local data or AJAX request

I am using this plugin of autocomplete, my doubt is that I do not decide whether to provide the list of elements to filter via AJAX or store it locally, because if it is via AJAX you will be making queries to the database of type LIKE "%que...
asked by 02.03.2017 / 17:33
1
answer

Problem with ajax, error 403 (Forbidden) when processing queries

I have a textarea to which I write a query like: SELECT* FROM usuarios to process them in a php document and be able to extract the result of this query. Everything goes well in this aspect, but whenever I use clauses, such as: LIMIT o...
asked by 27.02.2017 / 04:12
1
answer

How do I call AJAX with angularjs 1.6 and laravel 5.1? [closed]

I am trying to make an AJAX call from angular 1.6, my project is synchronized with laravel 5.1, I have a connection to the bd and I already check it, I just need to download the data and save it in vectors of js, each column a vector !!! Bein...
asked by 30.01.2017 / 18:11
1
answer

How to improve (refactor) this code from JQUERY AND AJAX?

I have a code that although it is functional, I see that it can be improved a lot and thus save us a few lines. How can I do it? $(document).ready(function() { $('#bsubmit').click(function(e){ e.preventDefault(); var val...
asked by 14.12.2016 / 12:05
2
answers

Use data returned by $ http in the AngularJS driver

My problem is that I make a request for $http to recover some data that I need to use in my controller, the problem is that if I make a console.log out with the variable assigned to the data it marks undefined . I wanted t...
asked by 14.01.2017 / 12:31
1
answer

Problem with DIRECTORY_SEPARATOR in PHP

I am trying to do two selects nested, in which when the value of the first one is changed, some values collected from the Database will be loaded in the next one. For this I am trying to do it using php and ajax . The selects code...
asked by 20.12.2016 / 16:38