Questions tagged as 'javascript'

4
answers

Error passing variable from JavaScript to PHP

I'm trying to pass a variable from JavaScript to PHP, but I get an error that I do not understand why. The code I have is the following: <script> var dias = ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"];...
asked by 18.06.2018 / 17:29
1
answer

How to round a float to integer (upwards)?

I have an operation that returns a float for example 6.3 and I need to round it to 7 I have tried with Math.round(6.3) but when the decimal is less than 0.5 it rounds down and when it is bigger it rounds up and I need it to...
asked by 14.06.2018 / 10:34
1
answer

Error Can not read property in quiz Game with JavaScript

What happens is that I was testing my quiz this code but it turns out that it reaches the final part of quiz when I click on the button to see results, and in the chrome console I get an error really I do not know how to solve it I...
asked by 10.03.2018 / 05:52
2
answers

Return of strings in thousands of separators Javascript [duplicated]

I have this little script that will place thousands separators in an html input. The problem is presented in mobile, when returns the separated numbers, return the complete chain, that is to say I put 10000 and it returns 10.1000 va...
asked by 09.03.2018 / 21:08
1
answer

How can I change the value of a variable in AngularJs?

I need to create a variable that stores the state of the función I execute in the $ interval called $scope.getSignatureCallStatus(); that function executes a request that saves in a variable $scope.callStatus = res.data; the...
asked by 08.03.2018 / 15:41
2
answers

send data through ajax of a select

I have the following lines $(document).on('change', '#select_encuestas', function(event) { //alert( this.value ); //alert("sssd"); var x = document.getElementById("select_encuestas").value; //alert("...
asked by 12.03.2018 / 23:28
2
answers

Regular expression

I would like to see how I can obtain a regular expression to get the result in brackets without considering the sub brackets, I will explain with an example let txt = F[aaa(0,0,0)] otra texto F[bbb(1,1,1)] let regExp = /F\[([^\]]+)\]/g; let ma...
asked by 11.05.2018 / 22:05
1
answer

bring a different element in order at the same time, from JSON

This time I'm stuck in this part, I need to bring the elements of a JSON, one at a time, but for each time the function is executed, I bring the following one in the JSON, in order, and that when I arrive to the last element start again to show...
asked by 15.05.2018 / 23:53
3
answers

Get input value in jquery

I am generating a list with a input of type button this list is generated from a bd that I have with 4 data therefore generates 4 buttons which I have given an identifier " alum[i].ID_EVENTO " that is a number 1,2,3,4...
asked by 06.11.2017 / 07:15
1
answer

Missing ")" in JS [closed]

In the browser console I get the following error when I hit the button. The function that accesses when giving click is responsible for not allowing a created window to be re-dimensioned. Can someone tell me what the syntax error is? fun...
asked by 26.10.2017 / 18:05