Questions tagged as 'javascript'

2
answers

How to open a server file with javascript?

I have this code that opens a local file, but I would like to open a file from the server without needing input. HTML: <input type="file" onchange="run(this.files[0]);"> Javascript: function run(file) { xyz.loadRomFromFile(fi...
asked by 05.02.2015 / 12:06
1
answer

Set default value in Textarea's if empty

I have two textarea on my page to give GET to the value I have in my database and I want to delete the text of the two textarea automatically set a default value there " inside. "     
asked by 02.02.2015 / 01:54
2
answers

Call javascript onsubmit does not "trap" the submit until giving confirmation of eiliminação

I find the following error: <form action="" method="post" onsubmit="sweetalert(1)"> Dados aqui !!! <input type="button" id="selectall-game-button" label="check all" value="Selecionar tudo"> <...
asked by 30.01.2015 / 21:47
1
answer

How to put the next and previous buttons on a Slider?

I have this simple slider , but I can not get through Previous and Next buttons. And I wanted to know if it's "workable." HTML <div class="fadein"> <img src="http://farm3.static.flickr.com/2610/4148988872_990b6da667.jpg">...
asked by 16.03.2015 / 00:55
1
answer

implementation tip

I made a page using the <video> tag, as per the code below: function teste(){ var url = document.getElementById('mudarVideo').value; if(url === '') { alert('campo Vazio'); } else { videoConteudo = document.getEle...
asked by 15.03.2015 / 17:31
1
answer

Show a div with jQuery

I'm trying to show two divs ( container-imagem-upload , container-tipo-video ), but it did not work. It is showing div and disappearing. CSS .container-tipo-video {margin-top: 50px; display: none;} .contain...
asked by 16.03.2015 / 01:19
1
answer

Two graphs on the same page with Chart.js

I wanted to put two graphics on the same page but only one appears to me. <div id="canvas-holder"> <canvas id="chart-area" /> </div> <div id="canvas-holder"> <canvas id="pie" /> </div> And the java...
asked by 07.07.2015 / 15:47
1
answer

How to use the value of an HTML field inside the code behind C #?

I have a JavaScript code that makes creating HTML fields in an ASP.NET page. How do I call the function for the Code Behind and return to the created fields? If I could use ASP.NET in this case, I would have to create multiple Textbox a...
asked by 05.07.2015 / 23:16
3
answers

How to show or hide some element with AngularJS, without creating variable

I'm trying to make a table, where it shows the list of requests and the button for editing Order Lita: var lista = [ {id: 1, nome: 'Pedido 1', ano1: 100, ano2: 200}, {id: 2, nome: 'Pedido 2', ano1: 100, ano2: 200}, {id: 3, nome:...
asked by 16.01.2015 / 16:21
3
answers

Validate the form without sending it

I'm trying to validate a form to check if everything is at least populated. The problem is that I'm not submitting the form because I can not reload the page. I'm just capturing the event by JavaScript and performing the function. Follow the...
asked by 16.01.2015 / 19:42