Questions tagged as 'ajax'

1
answer

auto increase with ajax

I have a voting system that should autoincrement when clicking on a link, basically the structure is as follows: <ul> <li>Uno <a href="#">0</a></li> <li>Dos <a href="#">0</a></li&g...
asked by 25.10.2018 / 09:00
3
answers

How can I avoid reloading my form when I send it to php using ajax?

Hello, how can I avoid reloading the page, when I send a form to php using Ajax. $(document).ready(function(){ $('#btn_login_detalles').click(function(){ var error_nombre=''; var apellido='';...
asked by 28.10.2018 / 18:09
1
answer

Insert laravel csrf-token in ajax

This in a <script> to send a form without reloading the page but I get the HTTP419 error so I read the token failure, I was looking at the laravel documentation and the solution is this: JS : $.ajaxSetup({ headers: { 'X-CSRF-...
asked by 09.11.2018 / 14:54
1
answer

Read a File and Divide it by PHP Pages

Good I have the code portion to read a file and show it $file = fopen("../assets/libros/el_libro_de_la_sabiduria/cap_01.htm", "r") or exit("Unable to open file!"); $getline = ''; while(!feof($file)) { $getline .= fgets($file). "<br /&g...
asked by 09.11.2018 / 19:08
3
answers

Error showing json data

I have this code: <script type="text/javascript"> var direcciones = []; function getDirecciones() { $.ajax({ url: "getDireccionesJSON.php", success: function (data) { if (data != 0) {...
asked by 09.11.2018 / 20:05
1
answer

like traversing an array and replacing or deleting elements in javascript

A question how can I go through this array and delete all the commas (,) that I find in the value, I want to send that array from ajax to php and then send it to the database and I want to eliminate the comma (,). Thank you very much for the ans...
asked by 10.11.2018 / 01:21
1
answer

Highlight text in the cell of an html table when clicking

The problem is that I have a html dynamic table, and I want to put in bold the text of a specific cell when I click on the row. try using jQuery, but it's still a bit complicated for me Does anyone know how you could do that? Excuse me if it'...
asked by 24.10.2018 / 20:05
1
answer

Simple exercise to learn AJAX [closed]

As I want to learn AJAX, I am looking for a very simple "hello world" exercise but on AJAX. Have as few lines of code, if possible as simple as possible. I've googled a bit, and I do not find anything super easy. I've also seen this tutorial on...
asked by 12.10.2018 / 09:54
1
answer

ajax requests using callbacks [duplicate]

I am developing a web application, basically what I have to do is create components of a form based on the information I collect from a database. var _populate = function (idparametro) { jQuery.ajax({ type: "GET", async:...
asked by 07.04.2016 / 19:10
1
answer

Real-time table query made by php

I have a table created in HTML with PHP and MySQL, and I need that with a input to do a search in real time of that same table, will it be possible? Here the code: Body of the page: <div id="main"> <div id="he...
asked by 07.10.2018 / 19:36