Questions tagged as 'javascript'

0
answers

How to avoid the error.code 1006 in WebSocket

On the client side, I have websocket configured with javascript. On the server side, I have websocket configured with java. The configuration is quite simple and works correctly. Once a day, randomly, the clients (javascript) begin to give th...
asked by 04.04.2017 / 21:32
2
answers

Work with the text selected by the user [duplicated]

Good morning, I still have a theme that is making my head break, but I do not hit the key. In a text editor like the one I am writing now, I have some icons, which when touched, are added some labels in the textarea. But I have a series of...
asked by 22.03.2017 / 15:27
1
answer

You lose synchronism by increasing the time interval

I have the following problem, increasing the time of setInterval . Explain what it is, I have two text one on the right side and the other on the left side. On the right side I have a word which I look for in a group of words that I have o...
asked by 21.04.2017 / 01:28
1
answer

How to connect Angularjs2 with the server?

I am trying to make a connection of Angularjs2 with the server but I have not been able to, I will place the code of my file "app.ccomponent.ts" to give more explanation: import { Component } from '@angular/core'; import { OnInit } from '@angu...
asked by 08.08.2017 / 00:57
2
answers

Require in nodejs instance a new class

I need to call a method of a class which should not be instantiated again, since it causes an error. In main.js: var telegram = require('./telegram.js'); telegram.hello(); In telegram.js const bot = new TelegramBot(token, {polling: tru...
asked by 05.08.2017 / 10:37
0
answers

register in groups / javascript arrangements [closed]

How can I ask if I want to register students but can only be in a group? gpoalumno=prompt("Ingrese el grupo \n 1.11191 \n2.1192 \n3.21191 \n4.21192") if(gpoalumno==1){ do{ ya_esta=0; aux_idalumno=prompt("Ingrese I...
asked by 11.08.2017 / 03:06
1
answer

Show unicode texts (other languages) in my table made in php using ajax and jquery

Hello, I have made a table in php in which I will show several contents and by which one can search for these contents in the table. But a question arises when I try to write letters in other languages, it shows me as ? with interrogation...
asked by 17.03.2017 / 20:17
1
answer

Join two Javascript functions that do similar functions

Good morning, I have a problem when it comes to going back and forth with the questions of a questionnaire. It was all because of a progressbar that had its own script. The one that originally has the questionnaire works perfectly, that is, I ca...
asked by 27.01.2017 / 10:30
1
answer

Conditional within series of HighCharts

How do I condition the number of series I want displayed on my Highcharts ? That is: If the value% co_of% is equal to 1 that shows the following: series: [{ name: '<span style="font-size: 65%">' + datos.fecha[0]...
asked by 16.03.2017 / 22:42
1
answer

D3 the zoom only affects the axes

I'm using the library D3.js , and I'm creating a scatter-type chart divided into four quadrants. For now I have managed to divide the scatter in the quadrants and paint each quadrant of a color and insert the data. I have started to app...
asked by 16.03.2017 / 10:37