Questions tagged as 'javascript'

1
answer

Variable step from js to java

I do not know how to catch a variable declared in javascript, from a java class. Any suggestions? var ratiosObj = {ratios:[{idRatio:1,Descripcion:"HoraMaxima",horas:10,Descuento:5}]}; var fila = 2; var horas = "horas"; var horasFin; var pre...
asked by 06.04.2017 / 11:05
2
answers

I need to update (UPDATE) the result of a select in mysql for node js and myadminphp does not accept the instruction

I am working a socket.io to update a database. The data read and served by socket.io to a file pug I want to mark with estado=1 . Initially the value is 0. I want the% co_of% to read 10 articles and be in consult...
asked by 06.04.2017 / 01:32
1
answer

input date and time

I have an input in which I select the date and a select to mark the time. Of those two input, I have to make an insert to the database since the field is datetime. How could I do it? I can not use datatimepicker, because it deconfigur...
asked by 25.04.2017 / 11:58
2
answers

Value is not shown as it should be

Good, I have a code which is giving me a problem. My code is made up of 3 things, a total variable, another for money received and another to show change or pending payment (depending on the result I received when verifying the total and the...
asked by 25.04.2017 / 13:54
3
answers

Define scroll to bootstrap modal window and not only to your body

I have a modal bootstrap window that normally has the scroll for the body. How can I make the scroll of the modal appear for the entire modal window? since when the body grows, when adding components, I can not see the top of the modal     
asked by 30.03.2017 / 10:30
1
answer

Send coordinates in javascript and ASP.NET MVC

I have a question, I have a function in javascript, but apparently it does not receive the coordinates correctly, when you put the mouse over the link that the function calls, you can see that if the coordinates go. I enclose the code of the fun...
asked by 26.03.2017 / 18:07
2
answers

@ Html.Action asp.net MVC

Good afternoon, I have trouble going to a view, calling from another view. I do it in the following way: I'm in the OlvidoPassword view, and in the view there's a ViewBag.User, what I do is ask if the ViewBag is null, if it is, I send i...
asked by 26.03.2017 / 20:06
1
answer

Python tuples in JavaScript

I have a tuple (or a list) in Python, which works to fill a <select> control in the Django templates. The tuple looks like this in Python: DOCUMENTO_GENERICO = ( (0, 'FUAR y/o Sol. Ind.'), (1, 'Testimonial'), (2, 'I...
asked by 04.04.2017 / 02:03
1
answer

How to activate / deactivate a list of buttons "Bootstrap Toggle" from javascript?

I want to deactivate the list of buttons of this type that I have on my screen, but I get an error, I do not know what I'm doing wrong. The way to deactivate it I'm taking it out of the plugin api . $(document).on('click', '#deshabil...
asked by 04.04.2017 / 22:54
2
answers

How to activate a li depending on the page where I am with JQUERY?

I have the following JS code: var theme_list_open = false; var aurl = window.location.href; // Get the absolute url $('li a').filter(function() { $(this).prop('href') === aurl; if (theme_list_open == true) {...
asked by 03.04.2017 / 20:11