Questions tagged as 'javascript'

1
answer

Do not transpile file to use babel

Trying to learn the new things that ES6 brings, I am following steps to transpile my first file, but I can not get it; I do not see any error, nothing bad appears when trying to do the operation. I am following the steps on the page, and foll...
asked by 05.07.2017 / 15:23
2
answers

Error Syntax in Javascript eval

When trying to move from an object defined in backticks : var mi_objeto = '{propiedad1: 'a', propiedad2: 'b'}'; To a real object using the eval method: var objeto_real = eval(mi_objeto); I get a syntax error, which is fixe...
asked by 03.07.2017 / 19:49
1
answer

Reload a partial view from JQuery or JavaScript

This time I find a doubt that looking in several forums I have not managed to solve, I have a list of notifications, which I post in a partial view, then I invoke this view in a layout. up there all right. Then I have a script that whe...
asked by 28.06.2017 / 18:09
1
answer

play gif once

I want to put a gif which should only be played once and be paused in the last frame. Currently in the html I have this: <div class="img"></div> and in the css I have this: .img{ background-image: url(image/login.gif);...
asked by 29.06.2017 / 13:56
2
answers

Rotate canvas image

Estpy trying to make the image on the canvas stay diagonal This is what I have var imageObjCextrema = new Image() imageObjCextrema.onload = function() { ctx.drawImage(imageObjCextrema, 35, 250, 7, 50); } imageObjCextrema.src = 'img...
asked by 10.05.2017 / 13:25
1
answer

Error in JQuery can not use two scripts at the same time

Hi, I'm doing a page, but adding some scripts only makes the last one and the first of them stops working. This is the code: <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta http-equiv="X-...
asked by 16.05.2017 / 16:55
1
answer

How to convert data in JQUERY number?

When printing a variable it shows me 5 results that I have obtained from the database. General Management. Administrative Assistant. Administration and Human Resources. Finance and Accounting. Advertising and Marketing. But I woul...
asked by 24.04.2017 / 14:47
1
answer

Using the directions service with SearchBox Google Maps API?

I'm working on a project with the Google Maps API, I've been guiding myself with this Example that gives the same page of the API " Place Autocomplete and Directions " Try to do mine by guiding me by example, replacing class Aut...
asked by 26.04.2017 / 07:06
2
answers

Problem with loop for

Could someone tell me why my script in a new document in which I only copy the script does work though when I put it in an html document? Thanks in advance. The code is this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...
asked by 25.04.2017 / 11:55
2
answers

Conditional on buttons in javaScript

Hello classmates I have the following code which the purpose is depends on which button you show an image and the name of the character, the image shows it to me and its name but in the first it works correctly but in the second it does not work...
asked by 11.04.2017 / 20:21