All Questions

2
answers

How to add contiguous numbers to an array?

I have array of numbers being typed by the user, and I need to add the numbers of this array . import java.util.ArrayList; import java.util.Scanner; public class Questao3 { /*3.Fazer um algoritmo que: •Leia um número indeterminad...
asked on 07.01.2015 / 19:42
2
answers

Prevent an application from being closed by the user through the task manager

I have a C # application that can not be closed by the user. But even if I eliminate all means of closing the application, including by itself, it is still possible to terminate the process by the task manager. Can you stop this? Is it possible...
asked on 24.02.2015 / 14:28
3
answers

How to replace in html string only in texts within (between) tags?

I created a search that marks the text that was found. NOTE 1: The search is done in a string that is HTML. OBS 2: I check if there is text within that HTML through indexOf. OBS 3: If I find I give replace in all occurrences of th...
asked on 23.02.2015 / 18:32
2
answers

Wrong date calculation

I have the following method: TimeSpan dt = dataFinal.Subtract(dataInicial); double anos = Math.Floor(dt.Days / 365.25); double meses = Math.Floor(((dt.Days - anos * 365.25) / 30)); return string.Format("{0} Anos e {1} mês(es)", anos, meses);...
asked on 11.03.2015 / 15:38
2
answers

Correct way to perform a dynamic UPDATE with PHP in MySQL

What is the right way to do% dynamic%? The big problem is to be dynamic, if I pass only the first parameter and others do not change. What is the best way to leave this update only with the parameter I am changing without the need to pass...
asked on 09.10.2014 / 00:32
2
answers

How do I remove the default (browser) arrow in the select tag?

I'm doing a < select > customizable. The problem is the different renderings that happen in browsers. In fact, you would just have to hide the arrows that appear: in IE: andinFF: In Chrome and Opera they were hidden (Same render...
asked on 06.01.2015 / 19:57
2
answers

Is it possible to run a JavaScript function through PHP?

I want to run a function of JavaScript without "submitting" it, that is when the screen is accessed the php will call the function JavaScript and run what it has in it and then continue the normal code. It's possible? Note:...
asked on 13.10.2014 / 15:24
3
answers

How to persist the selected background even after reloading the page?

I have a site background change script: function bac(){ document.body.background = "img/1.png"; } <a href="#" onclick="javascript: bac();"> The user can choose which background image from the site, but when the page reloads, the...
asked on 25.11.2014 / 00:11
2
answers

Mount the parameters of a URL dynamically

I have a page on a system where I list the products registered in the DB, I am implementing some filters within this page, and I would like to update the links of the filters as requested in the URL (GET REQUEST): At the beginning of the pa...
asked on 10.03.2015 / 12:21
2
answers

How to identify when someone is uploading on the page?

I need to refresh the page every 5 minutes, but I have a form for uploading files on the page and are usually large files. Is there any way to identify when someone is uploading a file with Javascript? Javascript code: setTimeout('locati...
asked on 16.10.2014 / 17:03