Posts by gustavox • 4,004 points
143 posts
-
0
votes2
answers690
viewsA: Form with Bootstrap does not pass POST
I think it has nothing to do with Bootstrap. The problem should be why you are putting one paragraph inside the other: <p> <?php if (!empty($_GET['falhalogin'])) { echo "<p>Usuário…
-
1
votes1
answer189
viewsQ: How to reset CSS of various HTML files included by require
At the suggestion of this answer, I’m trying to use the normalize.css to reset the styles between one require and another, but it’s hopeless, the CSS of the later file completely interferes with the…
-
4
votes2
answers10294
viewsQ: Enable/Disable button according to field validation
I am performing date validation for two fields <input type="text"> with the jQueryFormValidator: $.validate({ modules : 'date' }); <script…
-
2
votes2
answers752
viewsQ: Toggle between hiding/displaying Ivs from links
I’m trying to adapt this script, which I found in this excellent reply from Soen, so that when there is a click on the link, the divs alternate. On the page there are several Ivs, and each one will…
-
1
votes1
answer396
viewsA: How to prevent Adsense links from opening in new tab
Yes, to always open in the same tab, use the attribute _self, and to always open another tab, the attribute _blank. For example: <a href="http://www.seusite.com" target="_blank">Abre em outra…
-
1
votes2
answers1890
viewsQ: Margin problem (or padding) in panel with Bootstrap list
I have this margin (or padding) ruining my dashboard, how do I remove it? I’ve tried several things with CSS, changing the padding, to margin etc, but nothing worked. This is the margin I want to…
-
1
votes1
answer598
viewsQ: How to create CSS classes containing other Bootstrap classes
Is it possible to create CSS classes containing other Bootstrap classes? I have searched but found nothing about it. Something like: .minhaclasse { .nav-tabs > li.active > a, .nav-tabs >…
-
1
votes2
answers7951
viewsQ: How to dynamically modify CSS using PHP
I need to modify some CSS styles according to a condition in PHP, so I gave a search, and so I saw it is necessary to include a header in the CSS file and change the file .css for .php, or create an…
-
3
votes3
answers1722
viewsA: In PHP, does date() take server or user time?
You can use the timezone so he can get the time you want: setlocale(LC_ALL, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese'); date_default_timezone_set('America/Sao_Paulo'); It is also possible…
-
1
votes1
answer2299
viewsA: Change panel-Heading background color by clicking
So, I’m going to use something similar, which I’m adding to the script that they posted at this link, and I think it’s almost exactly what you want. Actually it was just taking out the in of colapse…
-
1
votes1
answer624
viewsA: Dropdown Bootstrap 3
I found an example in jsfiddle that with some adaptation I think meets what you want (I think cool and I think I’ll even use :D). I put in the snippet, click here below "Execute code snippet", that…
-
2
votes2
answers155
viewsQ: How to turn strotime output into a variable
I’m trying to use this script, which returns every Monday between two periods: $beginday = isset($_POST["Tinsem3"]) ? $_POST["Tinsem3"] : false; $lastday = isset($_POST["Tdesl"]) ? $_POST["Tdesl"] :…
-
1
votes1
answer806
viewsQ: Counting of week-specific days between two dates
I’m trying to figure out how many week-specific days there are between two time periods. Like I said in this question, I am using this script, adapted with the help of this answer, to achieve…
-
1
votes1
answer1081
viewsA: Check the radio button by clicking on the div, but the div does not appear
The id of the form was only form, while the Javascript call was form-planos. Also, I think you should use classe in this case, instead of id. And I’m not sure that’s what you need, but you can…
-
1
votes1
answer1007
viewsQ: Populate multiple input fields with values from other fields
I have three lines with four fields input of the kind time, and I want to create a button so that the two lines below can be filled equal to the first. I’m following this reply from Soen, and…
-
4
votes2
answers8573
viewsQ: Working day script
I’m using a script I found in this question Soen, and to count the working days disregarding Saturday and Sunday (can only do with Sunday tbm, changing $what_day > 5 for $what_day > 6 for…
-
1
votes1
answer619
viewsA: How to put UOL videos on Jwplayer
I don’t think that’s necessary php, and that it is the same procedure to include videos from youtube. According to this indication Jwplayer support the procedure is as follows: 1 - Add library…
-
4
votes5
answers17941
viewsA: How to use the loop for(for) in Portugol?
The para .. faca (do) is a repeating structure of the portugol with control variables, and serves for you to run a certain internal code block by n times. A simple example: algoritmo "contador" var…
-
1
votes2
answers1755
viewsA: How can I make this div disappear?
You can do this using CSS, with the Bootstrap. At this link has a tutorial on how to implement (in English), and below follows a verifiable example that I tried to adapt to your situation. Click on…
-
3
votes1
answer631
viewsA: Replace Google Maps Map
I believe that using the google maps library with another image is not possible, but there are some similar tools that can help, such as openLayers which is free, and has very advanced features. At…
google-mapsanswered gustavox 4,004 -
23
votes6
answers15200
viewsQ: What is and how does Bootstrap work?
I did some research, but most of the articles I found are based on the assumption that the reader already has some familiarity with frameworks (which is not my case), that I still have only a vague…
-
4
votes1
answer34701
viewsA: How to align fields of a form
You can do it with CSS using the tag <label>, thus: label.hora { display: inline-block; width: 90px; } <label for="input1" class="hora">Entrada 1:</label> <input type="time"…
-
1
votes1
answer168
viewsQ: How to simplify the use of str_replace
As I explained in this question, I’m using the maskMoney to generate a coin mask in multiple fields input of type="text", only when I perform arithmetic operations with the values obtained, and then…
-
13
votes3
answers2493
viewsQ: How to choose the highest value of an array?
I’m trying to use the function max, but I can’t hit. // variáveis da diferença salarial $saldev[0] = $_POST ["Tdate5"]; $saldev[1] = $_POST ["Tdate9"]; $saldev[2] = $_POST ["Tdate13"]; $saldev[3] =…
-
3
votes1
answer124
viewsQ: Declare variables at or near the top of where they are used?
Is it better to declare all the variables right at the beginning of the file, even if they only come to be used, I don’t know, a thousand lines later? Or better go declaring as the program evolves?…
-
4
votes2
answers432
viewsA: References for learning web programming
What I can say with the security of those who got tired of watching nego clearing and missing typing a thousand times while "explaining" a function on youtube, is that for beginners (and free) there…
-
5
votes1
answer4944
viewsA: What is Javascript interrogation for?
Is a conditional operator. Of Developers.mozilla.org: Conditional operator The conditional operator is the only Javascript operator that uses three operands. The operator can have one of two values…
javascriptanswered gustavox 4,004 -
1
votes1
answer231
viewsA: How to find the mean by the number of vectors filled?
I found the answer in this question soen. Basically, what worked was: $result = count(array_filter($salbasetar)); $salbasetarm = ($salbasetar[0] + $salbasetar[1] + $salbasetar[2] + $salbasetar[3]) /…
-
1
votes1
answer231
viewsQ: How to find the mean by the number of vectors filled?
I need to calculate the average of a vector, but considering only those that had the fields filled. For example: HTML: <label for="Cmes222">Valor:</label> <input type="text"…
-
1
votes1
answer608
viewsQ: Error when calculating time difference with Datetime after 00:00
I’m having a problem figuring out the time between two times with the datetime when the departure time is between midnight and 1 a.m.. For example, if the first time is 14:00, and the second time is…
-
1
votes1
answer70
viewsQ: How to include dateInterval property within a variable
After getting the time difference between two fields input time (vine this question), I don’t know now how to put these values within variables, so I can use them in other functions. The var_dump of…
-
3
votes1
answer1937
viewsA: Calculate the minute difference between two input time fields
Solved. The problem was in print format. The correct one for time fields is: echo $intervalo->format('%H, %i'); So it will return difference in hours and minutes. This is the code that worked for…
-
1
votes1
answer1937
views -
1
votes2
answers433
viewsA: Incompatibility between maskmoney and number_format
I don’t know if this is the most effective way, but I was able to solve it from Diego’s tip, as follows: $ultsalbase = $_POST ["Tultsal"]; // o campo do formulário, que vem com a formatação do…
-
1
votes2
answers433
viewsQ: Incompatibility between maskmoney and number_format
I have a form field in which I am using the maskmoney, but when the number entered enters the thousand, the number_format returns only the first four decimal places. The call of maskmoney:…
-
8
votes5
answers26812
viewsQ: When is isset required?
I would like to know when it really is essential to use the isset variables in PHP, especially in the case of forms. What happens is that I am creating a large form, with some 200+ fields, which…
-
1
votes4
answers599
viewsA: Tool for mobile zoom
In Jquery has the panzoom. Here has an example of how it works. As described in Github: Panzoom is a Progressive plugin to create panning and zooming Functionality for an element. Panzoom Supports…
-
4
votes9
answers10435
viewsA: My city zip code, where can I find open, updated and reliable source?
The charge at this price is abusive, absurd. In a post blog post there was already a discussion, and there was even a guy saying he would look for political representatives "so that they explain how…
-
9
votes3
answers2830
viewsQ: Extract data from txt file to use in autocomplete
Update: Just for the record, there is no need to use jQuery-ui, it can be with another solution. I’m creating a autocomplete for a form, containing all the options in the CBO - Brazilian Code of…
-
2
votes2
answers14523
viewsA: Validating Form with JQUERY Validation + Masks
UPDATE For mask you can use this plugin Masked Input Pluguin for jQuery. You need to download the file and install it in your directory, and then make the call in HTML: <script src="jquery.js"…
-
10
votes2
answers970
viewsA: Input radio that looks checkbox?
In the code you put in the op are missing the inputs Names. Without the equal Names it does not change the selection. html, body { font-family: Arial, sans-serif; line-height: 20px; } label {…
-
1
votes1
answer134
viewsQ: Problem with condition
I am trying to create a script that ascertains whether the fine for late payment of the termination is due. The conditions are as follows:: 1 - If the prior notice is indemnified or waived (select),…
-
2
votes1
answer115
viewsQ: Error hiding <div> by selecting <option> in a form with javascript
I have a javascript function with jquery that hides Divs when an option is selected. It works almost perfectly, but when you go back to a previous option, after choosing an option that opens div,…