Questions tagged as 'javascript'

1
answer

How to retrieve the URL from the previous page ASP

Hello, good afternoon. I wonder if anyone has any tips for me to get the URL from the previous page in the following scenario: An MVC page has a link to an ASP page Click the link Opens the ASP page ** At this moment, how do I save th...
asked by 05.04.2018 / 20:52
1
answer

Create trigger automatically

I have created a code that automatically creates trigger for MySQL. But my function still has flaws, one of which is accepting the statements of PK's and FK's as if they were table fields. Look at this statement from a...
asked by 06.04.2018 / 14:33
2
answers

Find JavaScript array elements [duplicate]

I would like to create a input that receives a value entered by the user and that when I click a button it executes a function that checks if the value entered exists in my array and if there is an index it is contained. var vetor = [1...
asked by 05.04.2018 / 08:02
1
answer

Replicate phone mask in multiple fields

I have a form where the user who is filling in can include multiple cell numbers, but my mask function only works on the first field. var telMask = ['(99) 9999-99999', '(99) 99999-9999']; var tel_1 = document.querySelector('#celular'); VMasker...
asked by 05.04.2018 / 16:06
1
answer

Transform serialized inputs into JSON

In a datatable there are some columns with inputs. If I click the Submit button I will serialize the inputs of the lines that are marked checkbox. The return of the serialize: 'id=1596&inputCodPag=dwad&inputDtPagto=22-03-2018&input...
asked by 19.03.2018 / 17:09
1
answer

Put variable within input type="date"

How can I put this variable inside input var data = new Date(); var dataCurrente = new Date(); if (data > dataCurrente) { alert("Data maior que atual"); } In case the new date() has to be the date I put in...
asked by 28.03.2018 / 19:02
2
answers

Hide checkbox and display another

I made a small validation in my script, but I'm not able to do the following validation. I have 2 checkboxes, each executes an action, as you can see in my if below. @if (item.Cadeado == 1 && item.cadeadoAH == 1) { <inpu...
asked by 28.03.2018 / 20:48
1
answer

What is the difference between Function and Class in React?

I am studying React now and I have a little doubt. What is the difference between the 2? From what I've seen, they both do the same thing.     
asked by 27.03.2018 / 16:06
1
answer

Increase Ionic 3, Angular, Typescript

I'd like to know how to increase the expiration date of a purchase. Example: the person made a purchase, and placed the due date for the 30th of March, so the date of the second installment would be April 29th. Follow the function and the HTML c...
asked by 27.03.2018 / 17:06
1
answer

onclick "confirm" does not work cancel button

I have an onclick confirm in my code that, if ok, it sends a variable to a specific page. If he canceled ... he should cancel the operation. But even if you click cancel, it is sending the variable to the page. Follow the code: <a...
asked by 27.03.2018 / 14:26