Questions tagged as 'javascript'

2
answers

Sum with decimals

I am trying to make a sum with decimals, I am starting to use javascript to make operations etc. this is the script I use: <script> function sumar (valor) { var total = 0; valor = parseInt(valor); // Convertir el va...
asked by 10.07.2017 / 00:31
1
answer

Error converting to ISOString in javascript

I'm trying to pass a date to the ISODate format using the javascript toISOString () method, the problem is that it's a bad time for me. var fecha_hora = '2017-05-15 15:39:22' var f = new Date(fecha_hora); var fechaISO = f.toISOString()...
asked by 13.07.2017 / 17:23
2
answers

Avoid saving credentials in the browser

How can I avoid saving a user's credentials inside the browser, for example, Chrome? I am performing two authentication queries within a single account that has already been authenticated. It's bad practice, but I need users and secondary passwo...
asked by 14.07.2017 / 22:00
1
answer

Add CSS with javascript

JS <script> var estilos = ["https://www.mexicodestinos.com/Content/StyleMD/a-hotels-md/general.min.css?1.0.8","https://www.mexicodestinos.com/Content/plugings/slick-1.5.7/slick/slick.min.css", "https://www.mexicodestinos.com/Content/css...
asked by 11.07.2017 / 21:24
1
answer

Repeated data when traversing an array and displaying them in a list

I have the following code: (also available in Codepen ) const agregar=document.querySelector('#agregar') const inputAgregar=document.querySelector('#inputAgregar') const listaUl=document.querySelector('#listaUl') var datosArray=[...
asked by 18.06.2017 / 18:40
2
answers

How to put date of birth in an input date

Hello, what I want to do is that by clicking on the input the calendar that shows start in the year 1900 as the default but do not show the date in the input before selecting a date, try with value but that shows the date without having sele...
asked by 28.06.2017 / 13:14
2
answers

Failed to reference style sheets (css) and javascript in ASP.NET MVC 5 project with Razor

Good afternoon, I have a my website in ASP .NET MVC. I am currently implementing the Layout (Located in Yanbal (the VS solution) - > Views - > Shared - > _Layout.css . I have made a model in wordpress, I got the html code from it...
asked by 30.06.2017 / 23:59
1
answer

Error executing function

Because the result expected (5 * 4 = 20), does not result in this, but in undefined ? function anyMe(callback) { callback(5,4); } var expresion = anyMe(function(a,b){ return a * b; });...
asked by 27.06.2017 / 02:00
3
answers

Problems validating contact form fields

I have a page to contact me and I need all fields filled out. I have to use alert to warn that you have not entered any field and what is that field. I tried to use isNaN but it did not work for me. Also try this but it did not...
asked by 29.06.2017 / 00:38
1
answer

Understanding async / await

Environment: sequelize 3.27, node.js 6.1, express sequelize Object.hasMany(OtherObject) I have the following piece of code: //... await db.Object.create(objectData).then(async (object:any) => { //.. object.update({sharedL...
asked by 12.06.2017 / 13:08