Questions tagged as 'javascript'

2
answers

Send value of a variable from one method to another javascript

Hello, I have the following methods in javascript: function buscarC(consulta) { var result = ""; var buscado = ""; $.ajax({ dataType: 'json', url: 'http://localhost:8080/tesisv2/webresources/generic/buscarxC?courseDisplayName=' + consu...
asked by 08.08.2017 / 19:04
1
answer

Select row and bring the values

I have this table function highlight(e) { if (selected[0]) selected[0].className = ''; e.target.parentNode.className = 'selected'; } var table = document.getElementById('table'), selected = table.getElementsByCla...
asked by 18.07.2017 / 16:30
3
answers

Angular access 4 to php does not receive the JSON

Good day, I have a problem, I have my file JSON by xampp, and effectively this code extracts the data I need in JSON . In the part of PHP , if you receive files JSON and insert them into the database very well, but when...
asked by 27.07.2017 / 00:39
3
answers

Change Textbox BackGround from Javascript

Any way to change the background color of a asp:Textbox with the event OnClientClick of a asp:Button from JavaScript unused: document.getElementById("un_textbox").style.background = '#f88067'; The button is defin...
asked by 27.07.2017 / 16:31
1
answer

check the existence of several files in javascript

The following SCRIPT checks the existence of files whose names are in an Array, if there is no file it shows a warning The output is made through a table. var table = document.getElementById('dataTable'); var pagina = ['pepito.html', 'I...
asked by 28.07.2017 / 21:19
2
answers

Limit length of a text

If I have a div #div {width:300px;height:200px;overflow-y:scroll} The user will add a text with prompt , which will be added as a paragraph element with: element.createElement("P") How can I limit that if the user enters a...
asked by 28.07.2017 / 00:30
1
answer

Why do you give me the error [object NodeList]?

I'm trying to just select a radio button to be saved in a variable in php, but for now I just managed to do it in javascript and it gives me the error [object NodeList]. function updateTotal() { var radios = document.getElementsByNa...
asked by 26.07.2017 / 22:39
2
answers

Copy text from an input or a div in the paper holder, saving the HTML tags

Some time ago I could copy text from an input text or a div in the clipboard, also saving its HTML format. That is, I could copy the text with the HTML tags I had such as p , strong , em , h1 ... etc. For this I used...
asked by 14.06.2017 / 13:48
1
answer

Change ID with Jquery

My question is as follows. I have two audio tags in html, but one has the id="player", when I click on a button I want the id to change to the next tag. I have the following. <audio id="player" data-value="dato"> <audio id="" data-val...
asked by 05.12.2017 / 03:39
1
answer

CSS / Javascript Filling Effect [closed]

I need to generate a fill effect by CSS, CANVAS or SVG, which is done on the PNG image that I have. The filling can be horizontal or vertical. It must be on the image. Current Expected : The effect does not necessarily have to be...
asked by 04.12.2017 / 15:42