Questions tagged as 'javascript'

1
answer

How to do a read more? [duplicate]

I have a text that I am loading from the database, but it is very long so I was thinking about doing an effect in JavaScript to read more, (or less). I hunted for information about it but they show it with two < div > and it's not exactl...
asked by 10.12.2018 / 01:32
1
answer

Help please, I'm a beginner ... Uncaught SyntaxError: Unexpected token; [closed]

var teclas = { UP: 38, DOWN: 40, LEFT: 37, RIGHT: 39, }; document.addEventListener("keyup", dibujarTeclado); var cuadrito = document.getElementById("area_de_dibujo"); var papel = cuadrito.getContext("2d"); var x =...
asked by 03.12.2018 / 22:52
5
answers

add jquery to my page with angular-cli

I need to add jquery to initialize components of semantic ui to my project in angular-cli I have downloaded it by npm and I have added the path in the angular-cli.json but at the time of compiling I get it $ is not defined     
asked by 04.05.2017 / 04:51
1
answer

How to pass data that a servlet gets from a BD to an HTML page? no JSP

This is more a doubt of something that could be feasible to carry out. What I want to do in itself, is that from a servlet I communicate with mysql to get the results of a table, and I want to pass that data to a table on an html page, I know...
asked by 26.04.2017 / 03:44
1
answer

php inside Javascript

My problem is this: I have an html button, which I call with php, pair that I perform a discount function (-1) with an api, putting it this way it works perfect to discount and shows me the result. But before discounting I want an alert with...
asked by 17.04.2017 / 15:30
2
answers

Extract decimal from a string

I have a very specific question for JavaScript: I have the following string: var prueba ="Hola mundo 5.26" I need to extract the decimal number from that string. How can this be done? Thank you very much     
asked by 28.10.2018 / 21:43
1
answer

Send a generated form with a [While] through POST by Ajax

I have a problem when trying to execute a POST by AJAX, if the function I need to have it inside a [While] that contains a [Form] and I need to modify the dynamic [IDs] of [Script] and [Form], How do I call the function $ (document) .ready (func...
asked by 23.10.2018 / 16:03
3
answers

Tour JSON Array [closed]

My problem is this: I have a JSON that returns the API of YouTube and when trying to enter some property I get "undefined" The Youtube API returns the following: // Parte del JSON retornado por la API: { "items": [ { "id": {...
asked by 04.05.2017 / 19:09
2
answers

read file through html and javascript programmatically

1) I have a sqlite file with information 2) Through a program I generate a * .csv file. I would like on a NetBook or iPad or CromeCast or Cell, r display such information sequentially or at the user's request. For example, if the user uses...
asked by 15.07.2016 / 23:55
1
answer

"Catch" name of a textbox in html with javascript

I have a table where is a textbox that increases depending on the result of the query, what I want is to trap the name with the for loop: <input type="text" name="tname" value="1"> <input type="text" name="tname" value="2"> <in...
asked by 18.04.2018 / 22:13