Questions tagged as 'javascript'

2
answers

Basic comparison - Input and Object

I need to make a comparison (if) between the value of an input with 2 properties of an object and if they match, enter the system. function datosPersonal(usuario, correo, dni, contraseña) { //Objeto Personal this.usuario = usuario;...
asked by 02.09.2017 / 21:15
1
answer

get the selected item from a DropDownListFor

I have the following html code that displays a list of elements. <div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">Product</label> <div cl...
asked by 25.09.2017 / 22:34
6
answers

Validate an email in JavaScript that accepts all Latin characters

Question How to validate an e-mail that accepts all Latin characters? By Latin characters I mean accented letters, ñ , ç , and all those used by languages such as Spanish, Portuguese, Italian ... Latin. Context The goal...
asked by 01.12.2015 / 20:55
1
answer

Validate date range with JS in datepicker (pickadate) of Materialize

I need to make a date validation in Rails asynchronously since I have an initial and final date. Validation includes that the end date must be greater than the start date. To show the date I use the datepicker of materialize : F. Star...
asked by 05.09.2017 / 12:43
1
answer

JavaScript execution error

I have the following code that makes a request to a WS by jquery: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Calling Web Service from jQuery</title> <script type="text/javasc...
asked by 01.09.2017 / 18:21
1
answer

Unhandled error event using node.js

I'm writing a script for node.js: obj={} require("socket.io").listen( require("http").createServer((req,res)=>{ res.writeHead(200,{"content-type":"text/html"}) res.write('<script src="https://cdnjs.cloudflare.com/ajax/libs/sock...
asked by 02.09.2017 / 17:17
1
answer

Problem with Chrome download icon

Good, I have the following problem with the Google Chrome browser: When a $ .get () is executed within it, I have a function that is function(data){} that is executed when the answer comes and within it I have these lines of code. va...
asked by 01.09.2017 / 20:01
1
answer

Avoid using Firebase from the Chrome console

How to avoid running Firebase methods within the Chrome console or any other browser. By having a webpage that uses Firebase , any user familiar with the methods of Firebase , could create / modify users or record data, etc. For exampl...
asked by 01.09.2017 / 17:17
1
answer

Problems with the gem of Tawk.to

I am currently trying to link the chat bubble of Tawk.to to my website, I have already installed the official gem of RoR on my gemfile and I have performed the steps described in the documentation (I leave the link below). The problem is that wh...
asked by 26.08.2017 / 22:32
3
answers

run in javascript

I would like to know how I do so that javascript executes the following but without the need for the button, which is automatic when I open the page <!DOCTYPE> <html> <head> <SCRIPT language=JavaScript&g...
asked by 26.08.2017 / 20:28