Questions tagged as 'javascript'

1
answer

Error morris.js

I'm trying to create a graph with morris.js, but it gives me an error: Uncaught Error: Graph container element not found at d [as constructor] (morris.min.js:6) at d.c [as constructor] (morris.min.js:6) at new d (morris.min.js:6)...
asked by 15.05.2017 / 10:22
2
answers

Javascript in WordPress onClick and opacity

I am using CSS & Javascript Toolbox in WordPress , and I have an element that changes the opacity with the class="casa" . When I do onClick , I use this code, but it does not work: <script type="text/javascript">...
asked by 15.05.2017 / 08:58
2
answers

How to pass the reference of a variable (io - Socket.io) to a class in JS [Node.js]?

I would like to know what is the correct way to pass the reference of the variable io to a class in Node.js I currently have the variable initialized in a file index.js : const io = require('socket.io').listen(9000) Reading some bl...
asked by 12.05.2017 / 03:30
0
answers

How to create a WebSocket connection in Flask without port

I am completely new to Flask and Nginx, apart from this I am trying to use WebSocket and I need to do data transmission through a web page, but without having to specify the port, nor be running it in a virtual environment. I have an Ubuntu s...
asked by 12.05.2017 / 04:41
1
answer

JavaScript object to Json node network

I am trying to pass a javascript object generated by my network node to json format. The object script that is obtained is an hour and minutes that is written on the screen, for example "13:02" I want to get a json type {"hora" : "hh:mm...
asked by 17.05.2017 / 08:10
2
answers

Illegal error return statement when using return

with the alert and what I want to do is that for example if paracentral2 arrives empty or pextremos2 arrives empty it shows me the alaer saying that it is not standard modulation, but when I put it false return so that it does not run anymore th...
asked by 08.05.2017 / 23:58
0
answers

Webpack Dev Proxy server does not redirect to my api backend

I'm trying to redirect the routes " link " to " link " where an Apache server runs. This is my webpack dev server configuration: devServer: { publicPath: '/build/', port: 3000, proxy: { '/api': { target: 'h...
asked by 05.05.2017 / 18:19
2
answers

Assign value to inputs using .each ()

I have an error when I want to set the data to the IDs of the inputs, only set one and not the N that I get. It should be noted that the input IDs are placed with PHP, that is, dynamically, as well as the amount of input's they will show....
asked by 08.05.2017 / 16:57
0
answers

InnerHTML on Ionic

Good afternoon, I have a code which should generate an innerHTML in IONIC but IONIC when creating the tag it enters content example: <ion-input class="incomesValue input input-md" placeholder="Ingreso 1" type="number" ng-reflect-pl...
asked by 08.05.2017 / 20:05
1
answer

Unable to access php file, because a variable is not defined

I have a list of forms to access to each of them you need to be through the click of a button with JS code. List form in HTML: <form name="acciones_consultar_omd_unidades" id="acciones_consultar_omd_unidades" method="POST"> <input...
asked by 02.05.2017 / 14:25