Questions tagged as 'javascript'

1
answer

Remove shopping cart content in javascript

var libros = []; libros[0] = ["img/libro1.jpg", "Calcetines Rotos", 16.5]; libros[1] = ["img/libro2.jpg", "Patria", 21.80]; libros[2] = ["img/libro3.jpg", "Los ritos del agua", 20.00]; libros[3] = ["img/libro4.jpg", "El extraño vera...
asked by 02.05.2017 / 10:31
2
answers

How to make a generic loop in JS

I have programmed in other languages but now I am using JavaScript. I have the following code: function Mix2( ValoresJ ) { var ai = ValoresJ var l00 = ai[0] var l01 = ai[1] var l02 = ai[2] var l03 = ai[3] var l04 =...
asked by 31.05.2017 / 11:32
0
answers

Dreamweaver shows errors are defined but never used, is not defined, use strict in JavaScript code

I have a JS for a tooltip that works but in dreamweaver it shows me the various errors    'showTooltip' is defined but never used   Missing "use strict" statement   'X' is not defined The question is why these errors and how to corr...
asked by 01.05.2017 / 01:24
1
answer

limit the number of responses entered by the user with prompt

I want my prompt se ejecute tres veces until the user responds correctly response = prompt("capital del italia"); switch (response) { case 'napoli': alert('falso') b...
asked by 01.05.2017 / 17:42
1
answer

ERROR in NgSemanticModule is not an NgModule Angular cli

I am implementing ngsemantic and I found the following error ERROR in NgSemanticModule is not an NgModule. This is my package.json { "name": "SaveBPM", "version": "1.0.0", "license": "MIT", "scripts": { "ng": "ng",...
asked by 05.05.2017 / 13:19
1
answer

Does not load Angular Js correctly in internet explorer

I have the following problem when wanting to load a url in internet explorer. when loading my page with angular 1.5 in mozilla, normal load. then I copy the url of my page in mozila and I paste it in internet explorer this shows the html without...
asked by 11.05.2017 / 20:05
0
answers

How to print the contents of a web form

I am trying to print the content of a form on my web page, for now I am doing it in the following way: <input type="button" id="btnBuscar" class="btn btn-primary" value="IMPRIMIR" onclick="javascript:print()" /> The problem is that...
asked by 11.05.2017 / 21:10
2
answers

Sort from right to left in Canvas

I have this for which I put some images from left to right. with this arrangement. arrText = [435, 820, 795, 915]; var scala = 7.5; if (check.checked & Bminus == '1') { for (var i = 0; i < arrText.length; i++) { parseFl...
asked by 29.04.2017 / 15:41
1
answer

NodeJS consume functions that have parameters (res, req) from another file.js

I have the following problem, which I think is very simple, but I am very new to node, so I still have problems with these things. I have a .js file that connects to an external service and makes use of (res and req) and returns it as json....
asked by 17.05.2017 / 21:24
1
answer

DOM - Create an object in a form

I have the following code with DOM functions which shows a text with a background color. //Crear un div mediante DOM. function crearCajaResumen(){ var div = document.createElement("div"); var texto = document.createTextNode("Texto");...
asked by 17.05.2017 / 18:30