Posts by StillBuggin • 2,012 points
86 posts
-
1
votes1
answer848
viewsA: Toolbox gets all the items disabled
Look at you! In Web mode, only, they are all disabled: If I open a page . ASPX (where I can work with code too), the tools come back:…
-
2
votes6
answers10207
viewsA: Open Multiple Bootstrap Modals
In Bootstrap remote modals are opened in modal-content and remote content, or modal remote, has the basic parts as header, body and footer. You should repeat by logic. The question is como é que…
-
3
votes3
answers325
viewsQ: Data types in SQL Server 2012 and HTML forms with PHP: date and monetary values
How can I put a mask in an HTML form, in the date and monetary value fields, then send this data to the database without having to convert the strings into types date and money? Explain: I have a…
-
1
votes3
answers960
viewsA: Is Mysql embedded in Easyphp?
Phpmyadmin is only the Mysql database administration interface. You can check that in the Easyphp installation folder you have the Mysql folder. But nothing prevents you from installing the Mysql…
-
0
votes1
answer161
viewsQ: Relative reference in Javascript files
Hello, Community! My question is about how the reference to external files works in a Javascript file also external. I explain! Suppose I have three files: index.php, json.php and javascript.js with…
-
2
votes1
answer71
viewsQ: Check the compatibility of my app with browsers
Generally speaking, how can I check the compatibility of my web application with the most used browsers (and their versions) so that there is no problem with the functionalities?
-
4
votes1
answer792
viewsQ: Chained Select: how to select Brazilian municipalities in a JSON file from the state select
EDITION In case, in the future, someone needs the jQuery version. Here is the code: //select encadeado com JSON $('#uf').on('change', function () { var estado = $(this).val(), cidade =…
-
3
votes1
answer76
viewsQ: Insert JSON file into Jsfiddle
I am trying to solve a question with a plugin that uses jQuery but do not know how to insert a JSON file in Jsfiddle. This JSON is a string and comes from a file .json.…
-
2
votes1
answer156
viewsA: I got a div that’s not working
Brother, you’re writing the word class wrong. Take a look here: JSFIDDLE I used your code, so you can copy and paste. <!DOCTYPE html> <html> <head> <meta charset="utf-8">…
-
0
votes1
answer681
viewsA: Using the HTTPS (SSL/TSL) protocol in a login with 2 (two) levels of authentication in PHP?
1. What is HTTPS? [ref.] HTTPS is nothing more than communication done over the internet using the protocol HTTP with a secure connection encrypted in the transport layer with SSL. 2. How to use…
-
4
votes1
answer2140
viewsA: How to insert external CSS into Codeigniter 3
EDIT Be sure to call the help method in the Controller or the helper URL. $this->load->helper('url'); ORIGINAL Use the base_url() same. But then you have to configure the URL to return the…
-
1
votes1
answer1323
viewsA: Change JSON file on server
Before reading the file you have to receive the form data in a array of PHP. $dados_do_formulario = array(); $dados_do_formulario = filter_input(INPUT_POST, 'nome_do_formulario'); /*eu uso esse modo…
-
1
votes3
answers1779
viewsA: How to do that by clicking a key a Submit is sent
In fact you can send the form by any key. See this example on JSFIDDLE that I rode. You can put any key code. The codes can be seen here, just type the specific key into the form and the code…
-
-2
votes1
answer812
viewsA: How to create a sub submenu using bootstrap megamenu
For design reasons, it makes no sense to submenu a mega-menu. Then take a look in this example.…
-
0
votes1
answer991
viewsQ: CRUD with jQuery, PHP and SQL Server: table with total, subtotal and auto filter
Hello, Community! I have tested some jQuery plugins to generate table that support CRUD. Here’s my review of them. jQuery jTable Excellent plugin, but has annoying limitations like horizontal…
-
1
votes1
answer1238
viewsA: Activate HOVER without clicking the same div
Check it out, I found that only with CSS can not do, but has how to do with Javascript: jQuery(function($) { $('.table-trigger tr') .on('mouseenter', function() { console.log(this);…
-
11
votes2
answers476
viewsQ: How can Rule 110 be a good way to know if a language is Turing-complete? Why?
My question comes from the following implementation of Rule 110 in CSS (Yes! In CSS!). The doubt comes from the definition of Turing completeness, which says that a system is Turing-complete if it…
computer-scienceasked StillBuggin 2,012 -
3
votes1
answer7485
viewsA: Laravel 5 and Sql Server
Well, first you need the PDO drivers from php_pdo_sqlsrv, that are not the same as php_sqlsrv. Then you have to put the sqlsrv to be the driver in Lavarel. 'sqlsrv' => array( 'driver' =>…
-
1
votes2
answers3429
viewsA: Is it possible to capture PHP code from a page using CURL?
Here, but I don’t recommend it, because I only use Curl to take a page’s HTML and handle it. For example, when I want the inflation data from the Central Bank website, I use Curl. #cria uma variável…
phpanswered StillBuggin 2,012 -
2
votes2
answers3496
viewsA: How to run a file with PHP?
Use the PHP function exec()! exec( 'caminho/do/executavel.exe', &$resultado); echo $resultado; Remarks exec must be enabled…
phpanswered StillBuggin 2,012 -
0
votes3
answers504
viewsA: Disable input text by clicking another input text
I’ll leave this code here in case anyone wants to use it: $(function(){ $('#txtEntrada, #txtSaida').keyup(function(){ if($('#txtEntrada').val().length > 0){ $('#txtSaida').attr('disabled', true);…
-
2
votes2
answers448
viewsA: How to resolve loading part of the page in delay
I took a look at your code: Place all Javascript at the bottom of the page before closing tags of </body>. Doing so implies that Javasccript has to wait for the DOM to fully load so it can,…
-
1
votes2
answers1119
viewsA: How to put the background effect fixed and on the whole screen?
Has a perfect plugin called Vagasjs. It’s great for this, because it gives you many options including slideshow as fixed background. I prefer a solution like the one marked as a response, which only…
-
2
votes5
answers9469
viewsA: Hide HTML code
Use <iframe/>. The browser needs the generated HTML to show your site. You cannot hide HTML code completely. Don’t urge the user to search for more ways to find your code. Any client-side…
-
0
votes3
answers645
viewsA: SQL Server subquery is always returning null. How to fix.
Use IDENTITY_SCOPE to take the primary key of the last inserted record and add it to the other table. Depending on how your tables were created, if you put foreign key restriction, use cascateamneto…
-
1
votes2
answers355
viewsA: Download file by mobile device
Danilo, there’s no way to do this consistently on the client side. You would have to use a server solution to ensure the download happens. See a well-spread PHP example: Your image on the front end…
-
0
votes2
answers361
viewsA: Error masking Javascript
Check if you have put the jQuery plugin and Masked Input in that order, then start the plugin inside: (function($) { $(document).ready(function() { $('#telefone').mask('(00) 0000-00009'); });…
javascriptanswered StillBuggin 2,012 -
4
votes2
answers122
viewsA: Doubt JS with input type file
Customer side: <form enctype="multipart/form-data" action="upload.php" method="POST"> <input type="file" name="file" onchange="this.form.submit();" id="file"/> </form> From server…
-
1
votes2
answers1652
viewsA: SQL Server: how to create range of values based on a column with monetary values
UPDATE I preferred the version marked as reply! ORIGINAL This is the solution that suits me. I got it thanks to the help of @Bacco, which made me reach this link, on Daniel Hutmacher’s blog. DECLARE…
-
4
votes2
answers1652
viewsQ: SQL Server: how to create range of values based on a column with monetary values
Hello, community! I need an SQL query with the values of a SQL Server 2012 table field shown as frequency distribution. Let’s say I have, today, the field Sales (in R$), type float. The lowest sales…
-
3
votes1
answer767
viewsA: What is the symbol for direct product?
I can’t comment, so I’ll post right here. In text mode, the Cartesian pro product (or direct product) symbol on Latex is \texttimes Refers to this link If you can read in English, I recommend the…
latexanswered StillBuggin 2,012 -
0
votes1
answer623
viewsA: Change color of the Cell
You could explain what you want to do and what outcome you want to achieve? What do you mean by "line name" and why does it have to be the "line name"? Thus, there are no names for the lines of…
c#answered StillBuggin 2,012 -
0
votes3
answers907
viewsA: Sum array in javascript currency
Use Javascript parseFloat(). If your string comes as "1.568,78" (example). You should do so: parseFloat("1.568,78") //1568.78…
-
2
votes1
answer5822
viewsA: Two or more PHP formats on the same page
UPDATE I updated the code. Now the values are passed to a PHP page I called calculo.php. You just need to create this page and put your calculations on it, then take the result of this page and put…
-
3
votes1
answer1504
viewsA: Add line to a datatable
I know two methods: 1) Sort while creating the table: tabela.Columns.Add("Hora"); var LinhasOrdenadas = from linha in dt.AsEnumerable() orderby linha.Field<DateTime>("Hora") select row;…
-
0
votes2
answers47
viewsA: how to limit sql column information
First, try not to use the short tags PHP, they can cause problems, because depending on the server where you host your source code, they may not be accepted. Then you can use array_values()…