All Questions

5
answers

Disable a submit and Activate only when the minimum radio buttons is selected

I tried to make a function but it came out with some strange bugs, it has to be more or less this script, but enable button only if 5 or more radio buttons are marked. Remembering that my form is huge, it is a questionnaire that has radio grou...
asked on 27.02.2014 / 18:28
3
answers

How to sum the results of an array brought from the database in PHP?

I'm doing this, but what's being added is the number of rows and not the values of the "something" field. <?php $searc= mysql_query ("SELECT algo FROM lugar") or die (mysql_error()); while ($rows = mysql_fetch_array($searc)) { $soma_das_...
asked on 30.04.2014 / 15:32
3
answers

Create a comic-balloon-shaped div

How can I create a% com with comic book-like appearance (I do not know if this is the best expression). Goal: Reality: * Please ignore fonts and colors in question, focus is tip of div . Follow the code in JSFiddle :     
asked on 02.10.2014 / 21:36
2
answers

How do I store information when I exit an application and recover on next use?

I'd like to know how to store information, such as this variable: int t = 0; Let's say that while using the application, the user did some operation that added + 5 to this variable. How do I when the user closes the application, the valu...
asked on 01.10.2014 / 20:23
1
answer

submit in form with jquery not working

I have a form and inside this form I have an input of type file. <form id="formulario" method="post" action="upload.php"> <input id="imagem" name="imagem" type="file" class="da-custom-file customfile-input" > </form> an...
asked on 16.06.2014 / 19:19
2
answers

How to control file type in Javascript without capturing extension?

Example: <input type="file" name="meu arquivo"> I know there is a way to catch the name of the extension described, but my goal is to prevent the client from changing the file extension, for example, PDF to TXT and try s...
asked on 16.07.2014 / 16:16
2
answers

JOptionPane, example?

Well, JOptionPane needs all these add-ons: JOptionPane.showOptionDialog(parentComponent, message, title, optionType, messageType, icon, options, initialValue); Could you give an example of all of these complements filled out...
asked on 18.08.2014 / 19:24
2
answers

How to print a javascript variable inside an html tag?

How to print a javascript variable inside an html tag? <script> (function() { var PORCENTAGEM = '25%'; })(); </script> <div class="progress progress-striped active"> <div class="progress-bar" style="widt...
asked on 24.07.2014 / 22:04
3
answers

How do I use Skip and Take with the PagedList Helper

I would like to paginate, but using Skip and Take in my LINQ not to fetch all results. Currently my code looks like this: public ViewResult Index(int? page) { var grupos= from s in db.grupos...
asked on 20.08.2014 / 19:23
2
answers

Optimize Mysql tables

I work with some huge tables in a system I've developed. These tables are constantly being updated and sometimes the query becomes slow. Some of them have more than 100,000 lines. I would like to know how often I should run the optimization c...
asked on 20.02.2014 / 17:08