Questions tagged as 'javascript'

1
answer

Session library for NodeJS / HapiJS?

I'm doing an email application and got to the part where I need to do the session and login part, but I've never done it before, I'm using HapiJS as a server and I'd like to know which session libraries are best, and what other resources that I...
asked by 24.08.2017 / 22:00
2
answers

Function append vs javascript [duplicate]

I have a page that generates a form dynamically using append('texto html'); These inputs that I generate after loading the page completely, I can not by them invoke functions js created in the ready of the page, that is, before the i...
asked by 24.08.2017 / 16:21
1
answer

I would like to put two actions for the same form

<form method="post" id="formulario_contato" onsubmit="validaForm(); return false; " class="form" action="?go=enviar"> <table id="login_table"> <div id="all"> <div id...
asked by 01.08.2017 / 15:02
1
answer

Error opening map in bootstrap modal

I have this function that receives the variables and mounts the map. It simply stopped working and the error appears in the console --- index.php: 196 Uncaught ReferenceError: $ is not defined <!DOCTYPE html> <html> <hea...
asked by 31.07.2017 / 14:27
1
answer

jQuery plugin input mask with strange problem

I've been using this plugin for quite some time: RobinHerbots / Inputmask And this week I made a change in the way I use it, I started calling it like this: The Caller for input: var mainValidator = function () { var fieldValid...
asked by 31.07.2017 / 21:16
1
answer

By pressing the backspace key, delete the previous input fields

The code below causes the user to type in a particular input field, it jumps to the other field automatically: <form class="form-inline"> <div align="center"> <div class="form-group"> <input type="password" cl...
asked by 29.07.2017 / 16:18
1
answer

How to perform query via AJAX and store the data in a javascript variable?

I have this code <script> $(window).load(function(){ var source = [{ label: "Tom Smith", value: "1234" }, { label: "Tommy Smith", value: "12321" }]; $("#descricao").autocomplete({ source: source, minLength...
asked by 02.08.2017 / 14:30
1
answer

Transfer files from server to client ?? [closed]

I am generating a PDF on the NodeJS server and when it is ready I want it to be sent to the client and downloaded, all through a GET request. The file will be generated on the server, stored in a specific address and then returned in the GET req...
asked by 02.08.2017 / 15:07
2
answers

Two-button form validation

I'm having trouble validating a form, but the way I'm trying, I do not know if it's possible, can anyone give me strength? I have a form with two buttons submit . And in the form tag I'm putting onsubmit = "checa_formulario()"...
asked by 01.08.2017 / 21:59
1
answer

Button to go back to initial div

I would like that after the last part of the test, it had a close button to go back to the initial page, where you have the start test button, I tried with the option document.write('<a href="' + document.referrer + '">Go Back</a>...
asked by 20.07.2017 / 18:21