All Questions

3
answers

Write checkbox value in input

I'd like to be registering the selected days of the week directly in the insert, but I'd like to be passing those values as a "phrase" to the hidden field. What's the way to do this in jquery? EX: I checked the Tuesday and Friday checkbox so the...
asked on 07.04.2015 / 20:26
3
answers

How to format title for url format?

For example, I have a title: 'Test Title Url'. But I need to leave it in url format, is there any function that does this?     
asked on 15.04.2015 / 16:48
2
answers

How to exit a cycle in C #?

I need to exit foreach when the value is equal to 1 foreach (DataGridViewRow dr in dgvValetes) if(dr.Cells["valor"].toString()=="1") //Sair aqui I do not know how to do ...     
asked on 16.06.2016 / 12:36
5
answers

change the title of a Window confirm ()

I would like to know if I could somehow change the title of a window confirm() because I'm developing an app using phonegap and when I call this window it presents me the title with the name of my html file, can I modify this? if so how...
asked on 17.12.2015 / 18:00
2
answers

Why do certain services still depend on the Java plugin?

Banks, digital certificates, government service sites still depend on the plugin of Java. The idea of Java, "write once, run anywhere" is not always true. Many services still have platform-specific requirements, they only run on Windows...
asked on 25.02.2015 / 20:51
4
answers

Count distinct names saved in txt

I have a txt file with users' names separated by line as follows: diego sergio antonio maria diego antonio Note that names can repeat, and I would like to list and list only the distinguished names. I made this method to list the whole f...
asked on 16.02.2016 / 11:19
2
answers

Try and Catch continue execution (after exception)?

How do I put a block try and catch to continue the loop for , even if it gives arrayindexofbounds and among others exception? I put it in and it runs but the output of "m" does not print anything after! for (String f...
asked on 27.01.2015 / 11:11
5
answers

Using jQuery Validation Engine and CPF validation

I'm using the jQuery Validation Engine with translations file for Portuguese. I have added the following line to the JavaScript: "cpf": { "regex": /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/, "alertText": "* CPF inválido" }    Class="va...
asked on 16.12.2014 / 01:38
2
answers

How to improve the process of generating non-repeated random numbers?

I have a algorithm for creating random numbers for lottery that have the following characteristics: 1 ° You must be informed of the number of numbers to be generated. 2 ° Numbers can not be repeated. 3 ° The numbers need to be in ascend...
asked on 08.01.2015 / 19:25
1
answer

What is the difference between print and echo in PHP [duplicate]

What would be the difference between using print or echo in PHP, since both print text on the screen. When is it best to use one? echo "echo"; print "print";     
asked on 29.12.2014 / 17:13