Questions tagged as 'javascript'

2
answers

does not enter if in javascript - ajax

I have an ajax script which goes and queries a mysql DB in a php, if there is a record I return an echo "yes"; and if not "no"; here the file delete_radio_per_serial.php <?php //Configuracion de la conexion a base de datos $link = mysql_...
asked by 19.09.2017 / 21:35
1
answer

Dynamically image in a puzzle with javascript

My question is how can I put the image by javascript and in this way have dynamic images since here it is put in the css: var select = false; var c = "inc"; var pos_s = ""; var id_s = ""; var rompecabezas = { _arr_pos_r : new Ar...
asked by 28.09.2017 / 19:31
1
answer

Return the capitalized array

Why do not you return the first letter in uppercase? function LetterCapitalize(str) { var strArray = str.split(' '),maxA = strArray.length,j=0; for(;j<maxA;j++){ strArray[j][0] = strArray[j][0].toUpperCase(); } r...
asked by 29.09.2017 / 21:02
1
answer

Ajax, Jquery and PHP: Can not read property 'length' of undefined

I've been trying to run this code all morning. One method loads several div, one inside another function renderPage(e){ var contPrincipalLastTwitter = '<div class="principalSeeTwitter">' +...
asked by 30.09.2017 / 17:23
2
answers

ASP.NET execute method through AJAX

Hi, I'm learning to use AJAX in ASP NET, I want to run a method through js, but I'm not sure how to reference it, the method I want is in my controller but when I give it the route it does not tell me it does not find anything . @model P...
asked by 29.09.2017 / 19:41
2
answers

How to animate an image?

How can I animate an image, I have an arrow in png , and I would like to animate it with css3 or javascript , I am studying transitions, transformations, etc, but I still do not know how. It occurs to me to do it with javascript , with a for...
asked by 13.09.2017 / 00:43
1
answer

Node - console.log (req.body) -undefined

Hi friends, I am trying to print a reply by console, that receives my app in node and that I am sending from Postman , but when I print in console it gives me the object undefined .    Server Started.
asked by 02.02.2018 / 18:46
2
answers

Node -npm start npm ERR! missing script: start

Hello, I'm using Node to make a RESTFUL API. I just found out that now npm uses package-lock.json and I do not know if this changes the way you work with node ... this is my error and my code var express = require('express') var a...
asked by 02.02.2018 / 17:15
1
answer

Class constructors can not be invoked without 'new'

I was trying to make a package of npm , something simple: class Hello { constructor(world){ this._world = world | 'world'; } world(){ return this._world; } } module.exports = Hello; After doing tests...
asked by 02.02.2018 / 14:09
2
answers

Take out the percentage between 2 amounts in different jQuery elements

I need you not to give me back NaN. In div.calculado I must put the% of each comparison (percentage discounted). There is no problem when it is a single operation, then what I need is that it is cyclical (the first price_sale is compared...
asked by 07.02.2018 / 00:13