Questions tagged as 'javascript'

1
answer

Is it possible to make a comment box without Databases?

I was looking for if it is possible to make a section in which the comments are saved in a .txt, and every time you comment, this file is updated, only with javascript and php.     
asked by 26.03.2018 / 23:45
1
answer

How can I navigate the properties of an object to save data in an array-like property?

Hello, I have a structure that is an object that has several arrays as properties. Example: items: {Dogs: [], Cats: [], ....} I want to go through these properties comparing each one with a variable with the name and the conincida to save...
asked by 19.03.2018 / 21:50
1
answer

Sum and subtract points groups assigned to Radios and Checkbox

I have a form: var total = parseInt($("#txtsuma").val()); function sumar(valor) { total += valor; //document.frmcalificar.total.value = total; $("#lblsuma").text(total); $("#txtsuma").val(total); //document.frmcali...
asked by 23.03.2018 / 14:05
1
answer

Method submit jquery

I'm in a form tipom wizad, and I download the code of a button that is created from vis and links, the thing is that when I click the submit, it changes its appearance, and then it does not make me the submit, I've put the $(this).submit();...
asked by 23.03.2018 / 15:17
1
answer

addEventListener alternative IE9

I have the following code and in IE9 I do not execute it ... What is the alternative to use? var but=document.createElement("button"); but.className="action"; but.innerHTML=ok[0]; but.addEventListener('click',...
asked by 22.03.2018 / 10:17
2
answers

Activate radio when the checkbox is true

I want to activate a radio at the time that my input checkbox is true, with the code I have it works well but only once, when I hit it again no. $(document).ready(function($) { $("input[type='checkbox']").click(functi...
asked by 21.03.2018 / 16:23
1
answer

convert dollar JS [closed]

module.exports = function coinConvert(usDollars) { var arr = []; var peruvianSoles /* tu código aquí */; var mexicanPesos /* tu código aquí */; var chileanPesos /* tu código aquí */; // Añade el monto equivalente en soles...
asked by 15.03.2018 / 06:59
1
answer

Uncaught ReferenceError: s is not defined [closed]

Why do I get this error? Uncaught ReferenceError: s is not defined at adjustWindow (functions.js:111) at functions.js:85 This is my code: // Call Main Slider jQuery('#main-slider').slippry({ // general elements &...
asked by 15.03.2018 / 14:43
1
answer

How to limit the increase of a value depending on one already established in an input?

In this code I want to limit the increase depending on the numbers set in input var contador = 0; var c = document.getElementById("lol"); function incrementar() { if (contador == c) { alert('Maximo permitido alcanzado:...
asked by 15.03.2018 / 20:36
1
answer

Regexp to validate shared URLs

I'm doing a Regexp that validates that the chain is a shared resource, for example \192.168.1.1\MiCarpeta\Mi subcarpeta I have taken part of the IP from the English forum /\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[...
asked by 15.03.2018 / 16:28