Questions tagged as 'javascript'

2
answers

Include HTML content without adding it in REACT classes

I have a somewhat simple doubt, maybe others have had it before. I'm starting with react and, as we know, the main thing is to change content segments through the components. Now, I have a specific doubt. If when updating a segment, I would like...
asked by 15.01.2017 / 14:35
3
answers

What is the correct way to sort the css and the js?

As I understand the order of css and js affects and it is not just an aesthetic issue and order of the code, but it has relevance in the time of loading the page and in the user experience while carrying out said loading. Said What...
asked by 05.01.2017 / 19:19
3
answers

Sort div in columns

I'm developing a website where I have a <div> (fixed size) and I'm adding small <div> through JavaScript with appendChild() . The fact is that I can not do what I want, my idea is that they are added as follows...
asked by 16.10.2017 / 12:21
1
answer

Why | (operator or binary) truncates a decimal number?

Good morning. My question is quite simple, I show it with this example: $('#resultado').append($('<p>').html(13.135345 | 0)); $('#resultado').append($('<p>').html(122.333 | 0)); $('#resultado').append($('<p>').html(56...
asked by 17.11.2017 / 15:37
2
answers

jquery DataTables does not allow opening modal dialog after 10 rows

I have a problem when using jquery Datatables , I do not know why it does not allow me to open modal dialogs that are called after row 10, everything works normal in rows 1 - 10 of the table, however I do not know what happens that all the othe...
asked by 10.05.2016 / 00:44
2
answers

Show view of AngularJS from above (initial scroll)

I want that whenever you access a certain route in an Angular application, the view appears from above, that is, with the initial scroll.     
asked by 12.01.2016 / 20:35
2
answers

How to know if several periods of time overlap?

I need to iterate an array of date objects, with duration and get how many overlaps each of them. But I'm looking to do it efficiently and quickly. I'm looking for frameworks to manage time periods but I have not found anything. I develope...
asked by 23.02.2016 / 15:12
1
answer

javascript calculator

I have to do a graphical calculator in Javascript, and the problem I have is that I need to press the button to print the result between the previous numbers in the text. It has occurred to me to do it with a Boolean counter so that only the f...
asked by 22.10.2018 / 21:42
2
answers

Error in record deletion

I intend to do a record deletion from a table with php and javascript, but at the time of doing the deletion sometimes it does it and other times not This is the code of my button <button title="Eliminar Registro" id="delete-contrato-mo...
asked by 31.10.2018 / 16:05
1
answer

How to fill array with a for cycle

I'm using a library of jquery DDslick to fill the input selects with styles even images, the library uses arrays to fill them for example .. var data= [ { text: "Facebook",//este es el texto que se ve en la cabecera...
asked by 04.10.2018 / 15:27