Questions tagged as 'javascript'

1
answer

Uncaught ReferenceError: takepic is not defined (Intel XDK)

I saw on the internet an example to capture photo in the app. I am debugging and this error appears:    Uncaught ReferenceError: takepic is not defined My code: function takepic(){ intel.xdk.camera.takePicture(10,true, "jpg");...
asked by 19.12.2015 / 16:30
1
answer

I need to do a validation on start date and end date with javascript

I need to validate the start date and end date ... So the end date can not be less than the start date, but since I started messing with javascript less than two weeks ago I'm knocking a little. It would be this case below: Both for DataInici...
asked by 10.12.2015 / 15:01
1
answer

Include variable in json result [closed]

if($_GET['operacao'] == 'banners'){ header('Content-Type: application/json; charset=utf-8'); $rs = $mysqli->query("SELECT foto AS image FROM banners"); $registros = mysqli_num_rows($rs); $arr = array(); $url = "http://www...
asked by 11.12.2015 / 18:20
1
answer

Send textarea text to div

$(document).ready(function(){ $('textarea').keypress( function(e){ if (e.keyCode == 13) { var msg = $(this).val(); $(this).val(''); if(msg!='') $('<div class="msg_b">'+msg+'</div>').insert...
asked by 13.12.2015 / 23:11
1
answer

Change values of a div

I have a combo when event occurs onchange it performs a query on the database with the selected value and inserts into a div values, the problem is that when I apply $('.minhaDiv').html(resultado) it returns me only the last...
asked by 14.12.2015 / 17:25
1
answer

Angularjs, How to create Checkbox to insert array in MongoDb

I have created a collection in mondoDB called Mangas , where it has " name, author, gender and info Gender is array. I have a form that will receive the values name, author and info, Checkbox needs to be filled as Array with values to...
asked by 02.02.2016 / 19:50
1
answer

pass data from jquery to the controller and return values

Would you like to know how I could do this? My controller method is this: public UserValid RetornaUsuario(String matricula) { UserValid valid = new UserValid(); UserValidDAO dao = new UserValidDAO(); valid = dao.Busca(...
asked by 03.02.2016 / 14:17
2
answers

Remove blank fields from an array

for(var j =0; j<data.length; j++){ var valorEmBranco = 0; for(var i =0; i<data[j].length; i++){ var porcentagem = 0; var valorPorColuna = data[j][i].valor; //alert(valorPorColuna);...
asked by 01.02.2016 / 19:47
1
answer

Click on a Google Map API marker and open a page

I'm making a website that will contain several bookmarks, but how do you do that by clicking on the bookmark, instead of opening the default window with marker information, does it point to another page or open a modal window?     
asked by 18.02.2016 / 00:33
1
answer

Installment js

Well, I've created an account installment system ... I'd like to know how to filter ... [{"tipo":0,"classe":"Saída","nome":"a 1/2","tag":"a","categoria":"Carro","cor":"SkyBlue","data":"2-2016","pg":"1"},{"tipo":0,"classe":"Saída","nome":"a 2/2...
asked by 13.02.2016 / 07:02