Questions tagged as 'javascript'

1
answer

JavaScript escaping backslash \ as I do not let this happen!

Good morning, I have a problem, I wanted some help from you. Something is causing the content passed in the function to escape the control bar \, I need them not to escape because this function renders a diagram where all of them are part of ren...
asked by 23.05.2017 / 14:57
0
answers

Problems with image resolution in HTML2CANVAS

I'm developing an app that automatically manages images. I am able to generate the image and everything else using a library called html2canvas. But when the image is saved the quality of the image comes out in a very bad resolution. &l...
asked by 25.05.2017 / 17:36
0
answers

What's wrong with the code? exercise with vector and comparison of values

In the code below I want to choose some numbers and for them in a vector, the user will try to guess them and his bid or kicks will be saved in another vector and in the end I will inform the user how many numbers he has hit, I created this code...
asked by 21.05.2017 / 22:11
0
answers

Generate multiple .js files with webpack

I need to create several .js files for each .ts file, but I do not know how to configure webpack 2 to do this. var path = require('path'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var webpack = require('webpack'); var ht...
asked by 07.06.2017 / 16:53
0
answers

Update using Json HTML and PHP

Good morning I need to update the data that is in my index TheyareloadedasfollowsJavaScript$("document").ready(function () { function gerarFunctionario(obj) { return '<div class="col-md-4 col-sm-4 col-xs-12 profile_details">' +...
asked by 08.06.2017 / 18:19
3
answers

Prevent login to submit form

I have a login page made with HTML and CSS, and I need to prevent the login with JavaScript under certain conditions, but I still have not gotten much time to do this . I'm searching the internet, but I still have not been able to do that. A...
asked by 20.05.2017 / 05:13
4
answers

What is callback?

I see in many codes and even architectures the word callback, I see that it is in JavaScript functions. But what is it? How is it used? Why? I would like an example of actual usage.     
asked by 31.07.2014 / 00:14
1
answer

How to do Frontend Integration with Java? [closed]

I'm a beginner in frontend. I am making a system using html, bootstrap, javascript and jquery. I'm going to have to do the integration with java . I would like some guidance. I do not know where to start. I'll ask you some questions: Wha...
asked by 21.06.2017 / 21:01
1
answer

Add a different image in a div to each loop using javascript

I need to add a different image to a div. For this I used a for to do this loop. Is there any manipulation I can do in the img tag that I'm adding so that every loop is changed in the image name? for (i = 0; i <= 16; i++) { $('#p'...
asked by 21.06.2017 / 22:43
1
answer

Button to enable drawing and clean the canvas [closed]

// forked from makc's "Simplify this three.js drawing exmple" http://jsdo.it/makc/zXNX var mouse = { x: 0, y: 0, down: false }; var scene, camera, renderer, raycaster = new THREE.Raycaster (), mesh; var canvas = document.createElement...
asked by 21.06.2017 / 20:13