Questions tagged as 'javascript'

1
answer

Validation failed

I am writing a function to validate only numbers in one case and only letters in another, however, when I only had one function to validateNumbers, the function worked fine, when I have both at the same time, both go wrong. function somenteNum...
asked by 23.11.2016 / 23:14
1
answer

How do I embed an HTML page inside another without iframe?

I have a common page inside a body in a div I want for a li or a p of another html, so I have a main page if I need to make changes and I have external contents. Without having to change all pages when I insert a new link in the me...
asked by 24.11.2016 / 20:19
1
answer

How to turn v-on: click="sync" into something automatic that is triggered when opening the html

Explaining the problem I have this javascript that in the html I call v-on:click="sync" it updates the news list, but this news list while I do not click on sync it goes blank, so I'm looking for a way to make v-on:click="sync"...
asked by 24.11.2016 / 23:01
1
answer

How to get DB value for a variable?

I have the following question: I have a database in mongoDB, I do the search of the data by NodeJS it returns me all right, however I would like to play this search value for a variable, to make a comparison. Type I search the date in DB and wou...
asked by 04.12.2016 / 13:22
1
answer

Checkbox with function

Good afternoon, I'm building a form with checkboxes that call a function through onclick <body> <form name="questao1" method="post" onsubmit="sendToDB();"> <br><input type="checkbox" name="Q1[]"...
asked by 03.12.2016 / 20:19
1
answer

Pop up open once a day by user in javascript?

I'm creating my website, and I created a basic popup with html , css3 , javascript and would like to know how do I get the cookie of the user and display the popup only one instead on my site, follow the s...
asked by 03.12.2016 / 15:58
3
answers

How to call javascript function in asp.net?

This is my job <script> function keypressed(obj, e) { var tecla = (window.event) ? e.keyCode : e.which; var texto = document.getElementById("numeros").value var indexvir = texto.indexOf(",") var index...
asked by 04.12.2016 / 04:57
1
answer

JSON Parse error:

I have this error in JSON that I can not understand. This is my return on console:    SyntaxError: JSON Parse error: Unrecognized token '
asked by 06.12.2016 / 13:39
1
answer

How to pass range form input values to variables defined in JavaScript to perform conditions? [closed]

I need to get values from a form of type "range" and through the values of every <input> of <form> I want to store in a var of JavaScript within the <html> page itself so that within a function ve...
asked by 26.02.2017 / 20:33
1
answer

Ajax function being ignored

Well, I have this code that I'm using to get the server validations and display in the jquery validation plugin I use. function nomeExiste(value, validator, $field) { var retorno; $.ajax({ u...
asked by 23.12.2016 / 03:31