Questions tagged as 'jquery'

3
answers

how do I pass a json to an array in Jquery

I have a little doubt, which is that I have to put a json to a array , My jquery: function girar_ruleta() { var mesa = $("#numero_unico").val(); $('#ruleta_giratoria').modal('show'); $.post("php/traer_madres.php", {mesa: mesa},...
asked by 11.05.2017 / 17:01
1
answer

Avoid the full refresh of the page by sending function get in jquery ajax

Hello, I have two functions in jQuery that when you click on the button btn_enviar send the data to the database via AJAX. I also have a $.get that writes the data in HTML controls. I would like to be able to send the data wi...
asked by 09.05.2017 / 00:43
1
answer

How can I make a blog of access to the pages of a website of a user in laravel?

Hello I request your support in order to implement security to a website in laravel, to make a log of all the accesses of a user, but I do not know how to capture the url to which a user accessed or the action he has executed. What do you recomm...
asked by 21.07.2017 / 04:39
1
answer

Refactor if JavaScript

I would like to know what is the best way to refactor this code so that it is less repeated. if($('#edit-tipo-documento').exists()){ $('head').append('<meta name="TagAutomataAccion1" content="home">') } if($('.linea_restablecer').ex...
asked by 10.08.2017 / 21:23
1
answer

Does not load the class .php call

I have 2 files: load.html and colors.php The load.html file is: <html> <head> <script type="text/javascript" src="../jquery.js"></script> <script type="text/javascript"> var x;...
asked by 18.12.2017 / 08:50
2
answers

How can I check a check box with an if?

Greetings, I have the following situation: I have a if that as a target I want to mark a radio button , I have tried with scripts but it does not work for me. <div class="funkyradio"> <?php $sql = "SELECT * FROM permiso WHERE us...
asked by 24.12.2017 / 21:02
4
answers

Problem in GET url in jquery [duplicated]

I am in the middle of a script of an html page, and what I need is to save in a variable what is in another html page. What I am doing is the following: ... más código... var datos; $.get('info/info_registros/','json', function(data){ d...
asked by 10.07.2018 / 08:54
2
answers

How to add the selected attribute to the option tag of a select

I would like to know how you should add the selected attribute to the option tag in a list. I was trying several alternatives with jquery or javascript and it has not left me, I do not know what I'll be confusing about. I leave the code so th...
asked by 12.11.2018 / 21:00
2
answers

Error returning a data from Controller php to an Ajax in jQuery

I have a problem returning a data from Controllers/registro in php to% Ajax . The controller receives a data from Model/registro.php , but it does not return the Ajax that data it receives. What could be the r...
asked by 07.02.2016 / 21:29
1
answer

Upload image in Lavarel 5 encrypt and delete with Dropzone.js

I have a problem with Dropzone.js to delete images after being encrypted and upload with Laravel 5 I have the following code: $file = $request->file('image'); $extension = $file->getClientOriginalExtension() ?: 'png';...
asked by 27.02.2016 / 16:01