Questions tagged as 'javascript'

3
answers

Add Javascript Array

var quant = document.getElementsByName("valor[]"); var teste = []; function somarValores(){ var soma = 0; for (var i=0; i<quant.length; i++){ teste[i] = quant[i].value; soma += teste[i]; } docum...
asked by 05.10.2015 / 23:26
1
answer

First select2 value is not shown when using i18next

I'm doing internationalization with lib i18next, everything happens right, it translates puts the values inside the select2 , however the first value is not shown in any way, even though I open select2 and clicking on the first item...
asked by 07.10.2015 / 13:15
3
answers

Error Cordova / Phonegap - Unable to start the daemon process

I created a new cordova project and I added the android platform normally as I had done before, but when I run the command cordova build or cordova run it can not find the solution. Does anyone know what I should do?     
asked by 02.10.2015 / 19:48
1
answer

Using JSON in C # and adding points in GMAPS

Good morning, I'm developing a C # web application that uses GMAPS to add comments to addresses. I have a page where the user enters the comments (and the page captures latitude and longitude) and saves it to a MySql database. I found a...
asked by 13.10.2015 / 13:01
2
answers

Onclick calling function javascript erases the textbox htm

I have a text HTML control that is created by a function called in the OnClientClick of the button. The problem is that every time I add a new Textbox , the old data goes out. What do you do to prevent it from going out?...
asked by 07.07.2015 / 14:46
1
answer

Download via FTP with JavaScript

I would like to know how I can be putting on my page the user's option to download via FTP. I do not want the user to enter the information for FTP access and also that he does not see the FTP data he is accessing to download. Is this possibl...
asked by 30.06.2015 / 21:23
1
answer

Save value to variable

I'm using jQueryUI - Sortable to change the positions of the data in a table. However, I need to save the starting position (the position the line was before dragging) and the end position (where the line was dragged). These variables, I w...
asked by 25.06.2015 / 20:00
1
answer

Is there a function in which I can put a header in a pdf, using the javascript language?

I am now starting to tweak the HTML / Javascript language and need to generate a pdf with a header, but I do not know how, I just found code in php and I do not know if it works.     
asked by 27.06.2015 / 16:59
1
answer

Why is the code not working?

I want to, by means of a pure and simple script ), to alert after the click on a given link (from the " exit ") the following: "You are leaving the site". My script looks like this: window.document.querySelectorAll('.**sair**').oncli...
asked by 19.06.2015 / 23:25
1
answer

Decrease physical size when displaying image

I need a way to compress the size of an image I get from a third party, that is, I get the link with the path of an image and I have to show it on my site. The main problem is that these images are very large and need to load a thumbnail...
asked by 19.06.2015 / 18:55