Questions tagged as 'javascript'

1
answer

Fill in several input fields with values from other fields

I have three rows with four fields input of type time , and I want to create a button so that the two rows below can be filled equal to the first one. I'm following this SOen response , and adapted to catch by classe inst...
asked by 07.05.2015 / 21:14
1
answer

Error "Can not read property 'x' of undefined" Raphael.js

I have the following error when using the browser:    Uncaught TypeError: Can not read property 'x' of undefined And it does not show me anything. Using the jsfiddle function perfectly and I have no error using the same code. I think it w...
asked by 22.04.2015 / 13:36
1
answer

Change cx, cy and circle circle raphael.js

I used the raphael library to create a certain graphic. I want to change your position and your radius. How can I do this? Example jsfiddle: link     
asked by 22.04.2015 / 11:09
1
answer

How to get data returned from a post request

I have the following code: $http.post('data.php').success(function(data) { return data; }).error(function(data) { console.log(data); }); How to manipulate the data coming from this request? I'm doing it this way: var data = $s...
asked by 28.05.2015 / 03:50
1
answer

Create input fields according to the size of an array

Good evening, I'm getting via JSON a List with the structure below: anexo: [{cod: 5, nome: "anexo1.pdf"}, {cod: 6, nome: "texto.txt"}] And I use the function below: $.getJSON(url + cod, function (ajax) {...
asked by 21.04.2015 / 04:50
1
answer

manipulate another webpage via javascript

is the following, I need to access a site and search through my page. I'm trying this way: <html> <script type="text/javascript" src="js/jquery.js"> </script> <div class="news"> <iframe src="http://alelo.com.br/con...
asked by 29.05.2015 / 16:53
1
answer

Convert date with offset

I want to do a time offset, ie add or subtract the time. The problem is if the time is 24, and shift 1, the final time will be 25. The same case for if the time is 0, and shift -1, the result will be -1. How can I resolve this? var d = new Dat...
asked by 17.04.2015 / 00:34
1
answer

Show success / error message after postback

I have the following functions on my page, when I call them via javascript, they work perfectly: function msgSucesso(msg) { toastr.success(msg); } function msgErro(msg) { toastr.error(msg); } So, I have a button on my aspx page tha...
asked by 30.05.2015 / 20:52
1
answer

Pseudo upload file with JavaScript

My intention is to make a pseudo-upload of any file, when I say pseudo I mean the fact that: it should not go to the server .. and turns it into base64 Type, I select an X image but instead of it being upada normally to the serv...
asked by 19.04.2015 / 04:05
1
answer

Onchange with double value

Is it possible to get the values of each option in a combobox? Something like this: <form action=""> <select name="customers" onchange="Publicidades(this.value, 0)"> <option value="" id="teste">Escolha o utilizado...
asked by 20.04.2015 / 00:47