Questions tagged as 'ajax'

1
answer

Update database data without updating page [closed]

I have a question: I want to update the data that is seen in my php web that is connected to a database and that what changes in the database is updated on the web without updating. I know it's done with "Ajax" but the only tutorials I found are...
asked by 30.06.2018 / 05:11
3
answers

problem to send form by ajax

[! [enter the description of the image here] [2]] [2] I am trying to send a form via ajax, to prevent the page from refreshing: function form(){ $.ajax({ type: 'POST', url: 'formulario.php', data: $('#for...
asked by 11.07.2017 / 18:05
0
answers

How can I update the contents of a Tab using ajax in ASP.NET MVC 5?

I want to update the content of the TAB, by clicking the submit button, I update the whole page, not the content, can someone help me? Thank you very much! Controller PeticioUsuarisController: // POST: PeticioUsuaris/_Demanar...
asked by 20.04.2016 / 09:13
2
answers

Send multidimensional array from PHP to jQuery (ajax?)

If I have an array in php: $items = array( "nombtre" => "botella"; "precio" => "1"; "descripccion" = "Botella de cristal" ); How can I send it to jquery? to use all the index of it?     
asked by 19.01.2017 / 09:41
3
answers

how can I control my scroll of a Chatroom? [closed]

my problem is that the scroll remains in the messages that already passer and does not go down when there is a new message I want to control the scroll as well as the facebook if someone knows how to do that please tell me Thank you. &l...
asked by 22.02.2017 / 22:13
4
answers

Fill a list with contents of an Api

I'm trying to fill a list of characters from an Api, but I have a question about how to fill the array, I had difficulties just having 10 characters and that these are listed and generate a link to a movie . So far I have the API call, but I onl...
asked by 01.02.2018 / 07:52
2
answers

.load (fn) does not work when migrating to .on ('load') Jquery 3.1

After having updated from .load () to .on ('load') , it gives problems, in chrome the code is not executed when it is loaded the first time, I have to refresh the page again several times. The same happens in Internet explorer. Migrate from...
asked by 31.10.2016 / 16:31
2
answers

Insert 'N' times of PHP AJAX MYSQL records

I was looking for a way to generate a list with information depending on 2 variables, I found an example ( Link ) and I found it interesting. The problem is that when inserting the selected data it inserts them into the Base de Datos as a...
asked by 24.07.2018 / 23:52
2
answers

get variable from php file import it and use it in ajax

I have a php file with the following content ----filename.php--- <?php $text = 'eos'; ?> and I have a js file called app.js with the following content $(document).ready(function(){ $.ajax({ url: "http://127.0.0.1/swapng...
asked by 02.08.2018 / 02:15
1
answer

Validate form without deleting the data

Good I have a simple form, I want to validate the fields are not empty and that the ID is not duplicated, but at the same time that those fields that are well entered are not deleted. I have the following code. <script>...
asked by 15.09.2017 / 16:09