Questions tagged as 'javascript'

2
answers

javascript date format how to change date format?

Good I have problems with the format of dates my code is the following fecha = new Date(); entrega = new Date(); dia = fecha.getDate(); mes = fecha.getMonth()+1;// +1 porque los meses empiezan en 0 anio = fecha.getFullYear();...
asked by 04.01.2019 / 21:18
2
answers

How to open an html page from javascript, passing parameters

I am looking to open a new page, but when opening it, a parameter is passed. Example: file A: <html> ..... <script> var user="mi_nombre_de_usuario"; location.href="/pagina_b"+user; </scritp> ..... </html> So...
asked by 04.01.2019 / 22:53
0
answers

button export to Datatable excel crashes when it is more than 100 thousand records

the function of the datatable is of the form: function mostrar_datatable_marcaciones() { "use strict"; $('#resultado_marcacion').DataTable({ destroy: true, "language": { "url": url_js + "/es_es.lang",...
asked by 11.12.2018 / 13:49
0
answers

How to use events with vue-draggable

I can not detect events with the library vue-draggable documentation for rearrangements of lists JS Vue.use(VueDraggable); new Vue({ el: '#app', data: { items: [ {id: 1, title: "Iqssq"}, {id: 2, title: "Itemaa 2"...
asked by 04.01.2019 / 20:51
0
answers

Change the style of a svg path by clicking on an option of a select

Just beginning with vue js, I have an interactive map.svg accompanied by a select, for now the select fulfills the function of if you select a state list the branches of that state. The map when you press one of the states in the same way lists...
asked by 10.12.2018 / 19:51
0
answers

Jquery how to work with each index

I have a question about my Jquery, with this script I sent information to an email, the problem is that 11 emails are being sent to me with the different information, that's fine but what I want is that all this information is summarized in a si...
asked by 10.12.2018 / 20:16
0
answers

scroll in javascript

I have the following code: function scroll() { shouldScroll = chat.scrollTop + chat.clientHeight === chat.scrollHeight; if (!shouldScroll) { scrollToBottom(); } } function scrollToBottom() { chat.scrollTop = chat.scrollHeight; } s...
asked by 10.12.2018 / 19:43
0
answers

Print result of JavaScript function

I have the following function what it does is take information from a printer, code supplied by its manufacturer, the issue is that I need to print "SerialNumber", "hostName", "productNumber", "firmwareVersion", they tell me that by Onclick func...
asked by 10.12.2018 / 21:53
2
answers

as valid checkbox

I have a table with a list of materials and a check to the side are part of a form, what I want to do is not send my form until all the fields are filled with my check, because until the moment I fill in the form but it is sent even though I hav...
asked by 10.12.2018 / 20:11
1
answer

Sweet alert problem in JSF

I am trying to integrate the sweet alert plugin in a boto in JSF to show a presentable confirmation window, the problem is that pressing the button opens the sweet alert but still executes the action of the controller without taking into account...
asked by 10.12.2018 / 20:16