Questions tagged as 'javascript'

1
answer

Syntax error when using new paragraph

I have a Javascript function like this: <script> $(document).ready(function () { if('@TempData["Message"]' != "") { $("#myModal").modal(); } }); </script> Its function is to open a modal in ca...
asked by 04.03.2018 / 20:58
0
answers

scroll works in windows but in mac it moves to the end of the page

I have problems when I try to move the scroll in mac because with a single tap it moves to the end of the page and being in the end until the beginning as shown in the gif some idea of how to fix it with css or javascript     
asked by 20.02.2018 / 16:12
0
answers

download javascript videos with an extension in chrome

I was trying to make an extension and I wanted that in the extension that I am trying to do can download the files usually have mp3 and mp4 format. What I wanted was that the middle of the extension could download my videos only by setting the d...
asked by 05.03.2018 / 00:17
0
answers

Use variables generated with browserify

I have the following code: 'use strict'; var counterpart = require('counterpart'); var Translate = require('react-translate-component'); I compile it with Browserify: browserify nuevo.js > locale.js I import the file locale.js in...
asked by 16.02.2018 / 15:39
0
answers

Validate tab - TypeError: Can not set property 'step2' of undefined

I am integrating to an old project that works with Angular 1.3, Java and Spring. What I'm trying to do is get the JavaScript to change the status of the steps when it goes beyond the function. If this is not the case, let it be disabled until...
asked by 13.02.2018 / 23:18
0
answers

Null data in Chart.js with JSON

I hope someone can find a solution to my mistake. I'm trying to fill out my chart with data taken from the database, but my chart is undefined I have done tests, and if it brings me the data correctly from the BD, but when passing it with PUSH...
asked by 13.02.2018 / 23:35
1
answer

multiple query in nodejs

I want to show a post and the respective comments for this I have 2 tables in mysq l a " post " and the other " comments " Use mcv model view controller with nodejs and express . model.js getOne(id, cb) { conn.que...
asked by 13.02.2018 / 19:57
0
answers

Show with a graphic in laravel

I need help, what happens is that I'm making a graph by means of highcharts in laravel but I do not have the slightest idea of how I get an amount, it turns out that the graph I'm doing is to obtain which farm had the most amount of pigs started...
asked by 15.02.2018 / 22:00
1
answer

Scale Canvas Image

I have a 800x400 canvas, I'm painting on it a very small and pixelated images (5x5, 10x5, 7x5, 5x7, etc). When sending them to the canvas doing scaled [2, 2], [4, 4] etc. It is not done linearly and does not preserve the clarity of the pixels. H...
asked by 17.02.2018 / 21:40
1
answer

The results are not shown in the iframe

I have this code and I do not know why the results are not shown in the iframe. I have hardly any knowledge and what I am reading on the web does not help anything. Thanks. <script> function enviar(){ dato1 = document.getElementById('d...
asked by 18.02.2018 / 10:38