Questions tagged as 'javascript'

3
answers

Exit the loop suddenly

Let's imagine the following code: function FazAlgoTrabalhoso(parametro1, parametro2, parametro3){ //Algo trabalhoso aqui } var i; for(i=0;i<=coisas.length;i++){ //"coisas" é um array já preenchido FazAlgoTrabalhoso(coisas[i].algo1, coi...
asked by 02.03.2017 / 14:01
1
answer

How to load a table using datatables ajax?

I'm trying to load a table using the datatables component. The return of this ajax request is a json object in this format: data = { "CLIENTES": { "0": { "ID": "1", "NOME": 'GABRIEL' }, "1": { "ID": "2",...
asked by 25.02.2016 / 13:13
1
answer

How to mount an array of select items from select in html and run it to organize items in javascript?

I have the code: var associar = $("#associar"); var desassociar = $("#desassociar"); var permissoes = $("#permissoes"); var minhasPermissoes = $("#minhasPermissoes"); associar.click(function() { var selecionado = permissoes.find...
asked by 24.02.2016 / 18:12
1
answer

How to get values from two html selects in javascript?

Basically I have the following code: var associar = $("#associar"); var desassociar = $("#desassociar"); var permissoes = $("#permissoes"); var minhasPermissoes = $("#minhasPermissoes"); var gravar = $("#gravar"); associar.click(f...
asked by 24.02.2016 / 21:38
1
answer

I can not publish my MEAN app on OpenShift

I've done everything that seems right. I changed the local variables to process.env , but when I commit and send I get this output: Pushing to ssh://[email protected]/~/git/pontotec.git/ remote:...
asked by 12.02.2016 / 05:45
1
answer

Problems converting px to Percentage

I have this code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div style="width:50%;height:30%;background:#65C6BB;positio...
asked by 15.03.2016 / 15:18
1
answer

Change the Google Charts subtitle line

I'm currently using the Google API to generate some graphs, but I noticed that when there are small percentages, eg 0.94%, 1.2%, it makes reading the labels a bit confusing, "one in top of the other ". Is it possible to change the "Path" line of...
asked by 17.03.2016 / 17:39
1
answer

Redirect Cross-Domain AJAX Request in PHP

I have code that redirects an AJAX request and it works normally on localhost , but on the cross-browser server the request is not redirected. header('Location: http://dominio.com/endereco'); exit; Is it possible to block AJAX request red...
asked by 14.03.2016 / 22:16
2
answers

Ajax does not work - send PHP data without refresh

I'm trying to send merged data from a form + PHP variables to be inserted into the DB, without refreshing the page. For this, I have a simple html form, and a PHP conditional that checks the submit form's click (this is why I have other submi...
asked by 18.01.2016 / 16:42
1
answer

How to save a html page in java

I have a project which I need to report for each code. And save it to disk in PDF format. After generating the report, I do not know how to pass the (generated) page to the Servlet and save it to PDF. I was able to send the html to the servle...
asked by 15.01.2016 / 16:42