Questions tagged as 'javascript'

0
answers

Does anyone know why I get an error?

I do not know why I get this error could you help me? please this error appears to me    Use object destructuring. (prefer-destructuring) in context =   response.context; thanks in advance. const textInput = document.getElementById('tex...
asked by 11.08.2018 / 22:37
1
answer

Some keys do not work in the keyup event in javascript

I am learning to develop games in javascript, and the truth is that when handling keyboard events I am having problems. this is my code const onKeyDown = (e) => { let key = e.keyCode? e.keyCode : e.witch if ( board.keyCode[key] ) { /...
asked by 12.08.2018 / 04:44
1
answer

Radio group with function shows the value="text" when selecting, with checked="yes" by default it would have to show it also

I have a radio group, with a function that shows the value when I check the selection. It works well. I added a default option with checked="yes". that also applied well. By logic I assumed that the text of the option selected by default should...
asked by 12.08.2018 / 09:11
3
answers

Default value to select with a javascript function

How can I set the default value with a javascript function? <select id='tipoDocumento' name='tipoDocumento' class='select2-container select2me form-control'> <option value=''>Seleccionar</option> <?php foreach ($tipoDoc...
asked by 09.08.2018 / 21:47
1
answer

How to wait for the return of a function with async-await? (asynchronism - javascript)

I have 2 functions, the 1st one is an async function that calls the second one. This 2nd is called consult_clubRN. The problem is that I am using async and await to wait for the results of the 2nd function but it seems that when invoking the fun...
asked by 09.08.2018 / 20:41
1
answer

Access a method variable $ .ajax

Out of $ .ajax I want to access the variable var = row. With a console.log if it returns results. How could I fix it? $.ajax({ url: '/laboratorio/searchLista/', method: 'GET', data: {'id':id_doctor}, success: function(resultado...
asked by 09.08.2018 / 21:34
0
answers

What this error is: fatal: can not update the ref 'HEAD': unable to append to '.git / logs / HEAD': Permission denied --in Windows

By making some changes to read and write permissions and deleting some subfolders of my work I could no longer save my "commits". Please if someone can help me, I'm working on the blessed Windows .. I know ... fatal: cannot update the ref...
asked by 11.08.2018 / 10:43
0
answers

Show table fields jQWidgets in excel file

Hello this time I have this function (initGrid) to load a table with jQWidgets, the loading of the table is done correctly .... function initGrid(cb){ var alto = window.innerHeight; alto -= 250; $grid.jqxGrid({ theme:...
asked by 22.08.2018 / 23:29
4
answers

validate a number with javascrip

Note: validate letter by letter and work well, but the problem is when the user pastes the data with numbers and letters I only have to receive a string of 11 digits, but when I put a letter it passes the validations that I have, how do I solve...
asked by 11.08.2018 / 01:01
1
answer

Why did I add the class next left in my boostrap carousel when I told him to add my active class in my boostrap carousel?

What I want to do is that when my question has a timer and the user next, that question disappears and I can not answer it anymore. Code: var timer = $(".active").attr('data-timer'); if (timer == undefined) { var $carousel = $('#carouse...
asked by 10.08.2018 / 21:48