Posts by Joel Cunha Ferreira • 119 points
7 posts
-
0
votes4
answers289
viewsA: How do I send a "textbox" always to the right when it’s in focus?
Just use the PHP equivalent number_format() for Javascript. $("#omeuinput").keypress(function(e) { var valor = $(this).val(); valor = number_format(valor, 2, '.', ''); $(this).val(valor); });…
-
5
votes6
answers2251
viewsA: Upload files (always in different folders)
Here’s an idea of how you could do it: <?php // Pasta de upload $updir = "/upload/"; // criar pasta random .../upload/RANDOM/ $finaldir = $updir . md5(openssl_random_pseudo_bytes(23)) . "/"; if…
-
3
votes1
answer2094
viewsA: How do I set up Netbeans to work with Phpunit in a virtualized environment?
You need to configure the file well phpunit-remote.sh and the network/network of the virtual machine. The virtual machine network is in NAT or Bridge Adapter? I recommend using Bridged Adapter for…
-
2
votes2
answers7390
viewsA: How to save JSON file with Node.js
I recommend using a Mongodb JSON database on Node.js. http://nodebr.com/nodejs-e-mongodb-introducao-ao-mongoose/ I recommend learning and reading more on how to use Mongodb:…
-
1
votes1
answer230
viewsA: Plupload - Refresh the page
You need to bind to "Fileuploaded": $(function() { $("#uploader").plupload({ runtimes: 'html5,html4', url: 'upload.php', resize: { width: 800, height: 500, quality: 90, crop: false }, filters: {…
-
-1
votes5
answers3608
viewsA: Can the browser "remember" a password programmatically?
Simple. This type of info was previously stored in cookies but now with the new versions Html5 of browser you can save everything using LOCAL STORAGE. In the same way that the bitcoin blockchain…
-
1
votes6
answers690
viewsA: How do I make a page not bug when the browser is resized?
The problem is that the HTML layout is not formatted to be Responsive. You can use multiple CSS grid systems to solve this problem. http://getbootstrap.com/ http://960.gs/…