Questions tagged as 'javascript'

2
answers

Strings and numbers problems [closed]

I am participating in a application process to train as a web developer, I have doubts with these concepts: Obtain a specific character from a string. Get the index of a character of a string. Convert a string to uppercase. Convert a str...
asked by 22.07.2017 / 01:24
1
answer

Change the time format of the Bootstrap Time Picker

As I can include the 0 in the morning hours, by default I get it: 8:00:00 9:30:00 I would like the schedule to show like this: 08:00:00 09:30:00 How can I change the time format of the Bootstrap timepicker to be displaye...
asked by 11.07.2017 / 17:05
2
answers

keydown event in php?

this the context. I'm going to load a text file in php, and once loaded, I want to show on the screen a line of the text file every time I press the "s" key. I know javascript and I usually know how the keydown event works, but I get confused ab...
asked by 10.07.2017 / 16:14
1
answer

How to get botton and top

I'm using angularjs and I have to get the top and botton of the scroll and the top and botton of the div that contains the scroll, all this to know if the scroll is completely down, My goal is to know if the scroll is below , with the followin...
asked by 10.07.2017 / 23:55
1
answer

How to configure the scroll in this slider

I made this slider with jquery and greensock and I need to know how I can use the scroll, I think I need to use the event mousewheel, but I do not understand how to configure it to use it in the slider since I end up breaking all the animations,...
asked by 12.07.2017 / 13:31
2
answers

calculate percentage

I have a problem when calculating the percentage I have the following fields: amount, percentage, profits my problem is that the calculation does it wrong, the percentage field I select it with a select and from there it will proceed to take the...
asked by 12.07.2017 / 04:42
3
answers

How to access sub elements in AJAX and jQuery?

Well I'm working with AJAX , JavaScript and of course jQuery , I've managed to bring the data response from the database so access and show the main data of this, the problem is that I have not been able to access the child elements that eac...
asked by 04.08.2017 / 16:18
1
answer

Extract the array in json components, which look like consecutive arrays

I am faced with the following dilemma: I am using the api C3.js of statistics in a project, where I want to make a graph of time of day and the accesses to a building, I have: var chart4 = c3.generate({ bindto: '#estadisticaTemporal',...
asked by 06.09.2017 / 10:03
1
answer

How to find an object by a key (ej id) inside a multidimensional array?

I am using a recursive function which consists of looking for a array for its key id , when it gets cut the repetition of it and returns the array . It's the only way I can think of to find the array that is what I need...
asked by 07.09.2017 / 06:08
1
answer

Get rank between two hours given

I am currently working with momentjs and moment-range to show the range between two dates in an array, this is my code: var start = moment("2017-01-03", 'YYYY-MM-DD').format('YYYY-MM-DD'); var end = moment("2017-01-13", 'YYYY-MM-DD').format(...
asked by 06.09.2017 / 22:56