Questions tagged as 'javascript'

1
answer

'innerHTML' undefined

I need help, I can not get it to work. var valu=document.getElementsByClassName("user-coins-value middle-block")[0]; var yesno=confirm("You have access key ?"); if(yesno==true) { var enter_key=prompt("Enter access key",'Example: 43ML99...
asked by 29.06.2017 / 05:24
1
answer

How to split a string with dynamic value?

I do not know if it's the split you use, in jquery, but I'm not having success. In my code I get the ID value that comes dynamically, I want to split the ID in two. One part up to character 16 and then the rest .. how can I do this?     
asked by 28.06.2017 / 15:10
1
answer

Check an obj json option and return

Good afternoon, guys. I'm starting now with angular 2 and I'm having a problem. I have a json object and within that obj, I have several inputs and I want to filter by the colors I get in this obj. json example: public alerts = [ { tex...
asked by 20.08.2017 / 17:19
1
answer

Writing Html using javascript

I was studying some jquery plugins and realized that to create the html, the programmer wrote each line in an array and finally used the join: var tpl = [ '<div class="popover clockpicker-popover">', '<div class="arrow">...
asked by 20.06.2017 / 19:11
2
answers

How to call a function in the click of the Input Type="date"

Friends, I have an issue that I would be happy if you could help me. I have a calendar created with <input type="date"> of Html5 . I need that when clicking a specific date it takes the value of the date and calls a PHP functi...
asked by 18.08.2017 / 19:41
1
answer

Datatables bringing all data at once

I'm having a bizarre problem getting my hair ripped, I know I'm creating a valid json via server side, even using a json validator. the format of my json is this way: [ { "name": "jhon doe", "age": "22", "eye": "brown" }, { "nam...
asked by 22.06.2017 / 17:59
1
answer

Vuejs pass object as props

I would like to know how to pass a javascript object as a property of a component vue.js . I'm trying this way, but it's not working: component: Vue.component('web-nav', { props: ['navProps'], data: function() { return {...
asked by 23.06.2017 / 21:32
1
answer

Iterate array in input element

I need to generate a radio element according to the selection of a field. I'm having difficulty building the block: I need to fill in the value of radius in this block according to the section of the array below: var horario = ['quinta/10:0...
asked by 23.06.2017 / 23:21
1
answer

How to return an array in javascript?

I have a function to upload images and for now the imgs array is going to be global scope, but I wanted this function to return this array: function loadImages () { imgs = []; for (var i in arguments) { var start = arguments[i]...
asked by 28.07.2017 / 16:47
1
answer

Can I prevent notifications for other applications on my device?

I'm setting up my CBT. Is it possible to implement a blocker for other applications in my app so that it will not receive notification while you are using my app? A basic example of how I can portray this would be when you disconnect your wi...
asked by 29.07.2017 / 00:38