Questions tagged as 'javascript'

1
answer

Doubts with non-angular post method

Hello, I'm trying to do a POST method that returns me a 'User' object. In my BackEnd I have the following code: //Add um Usuarios public Usuarios Post([FromBody]Usuarios usuario) { return _usuariosServices.Adicionar(usuario); }...
asked by 05.05.2018 / 23:32
1
answer

How to get values from an array without array.push

I'm trying to get a user's location and it keeps updating from time to time, searching, I found this method, but I can not just do this with the current value of the array, it concatenates (push) and adds infinitely .. does anyone know how I can...
asked by 06.05.2018 / 23:09
1
answer

Function in PHP to verify information in the database

Hello, I need to check in the registration form, if the user name that was passed already exists in the database. I would like the help of how do I make a function in PHP or javascript that does this query, without using a framework. The only...
asked by 06.05.2018 / 05:39
2
answers

Add input with JavaScript

Hello, I'm new here. I would like to know how to make my input generated by javascript inherit the css formatting that my html input has. Here is the code: <html> <head> <title>Pedidos</title> <style>...
asked by 06.05.2018 / 23:25
3
answers

JavaScript Property and Object

Why can not he read the property? objetoSelecionado = document.selectForm.variosDias; <form name="selectForm"> <select name="variosDias" multiple> <option value="Domingo">Domingo</option> <...
asked by 02.05.2018 / 20:47
1
answer

How to convert the format of a javascript date to ISO "International Standard"?

I have here a code that performs a javascript operation. It determines the maximum date of birth that can be entered on a form. The rule is that you can only register who is 18 years and over. var d = new Date(); var year = d.getFullYear(); va...
asked by 03.05.2018 / 17:54
2
answers

Date sum javascript

In the add-and-generate-by-one function, the amount of installments that you have will require you to generate a due date each time you have a parcel. function adicionar(){ ParcelaVencimento=$("#ParcelaVencimento").val(); Parcel...
asked by 23.04.2018 / 01:25
1
answer

perform a function when the button is clicked

I'm trying to make it just send to the database when I click the button however every time the page is loaded it sends even not clicking the button. This is the code I'm using <script> var text = "foi clicado" </script> <button...
asked by 22.04.2018 / 16:53
1
answer

Figure drawn on canvas is not showing up

I made the code below to create a canvas that draws in its space a red rectangle. But nothing appears. I can not find any syntax errors. I'm using Google Chrome: <!DOCTYPE html> <html> <body> <p> Antes da Canvas </p&...
asked by 22.04.2018 / 04:43
1
answer

Block an element within the textarea

I need to block a part of a text that is inside ckeditor so that the user does not delete and does not change that part of the text, but it can complement the text only can not change that part <p>Essa parte nao pode ser alterada&...
asked by 18.04.2018 / 17:12