Posts by Hugo Borges • 5,294 points
332 posts
-
0
votes1
answer81
viewsQ: What is the best way to assemble this layout?
Good guys I’m mounting a simple layout for a sisteminha in php. My question is, which is better, table or div? I mounted it in table to display what I need. Follows him: body{margin: 0; height:…
-
0
votes1
answer42
viewsQ: reversing the average cost of a product
I’m calculating the average cost of a product using php. I can calculate the average cost smoothly, the error occurs when I try to reverse the calculation. My code returns this: Novo cuto médio é:…
phpasked Hugo Borges 5,294 -
0
votes0
answers30
viewsQ: problem when updating my site css
Well I have a problem that I think affects a lot of people, and probably someone’s been through it and solve the problem. Whenever I update my site, with a new menu or any changes in css, many users…
-
0
votes2
answers4022
viewsQ: Doubt with table in div css
I am mounting a table in div and css, the problem is that I need the div div-table-Row to have the size the other Divs. but she keeps breaking lines. How do I fix this? Follows my code: .div-table{…
-
0
votes1
answer297
viewsQ: send javascript link when selecting checkbox
Guys I have a checkbox, and I need javascript to send the link according to the checkbox selected. Example html: <input type='checkbox' id='1'> <input type='checkbox' id='2'> <input…
-
2
votes1
answer112
viewsQ: How to solve margin calculation problem in Javascript?
I have the following inputs: 1st Cost, where I inform the value of 6,23 2nd Margin, where I inform the value of 29,21 The JavaScript makes the automatic calculation and returns me 8,05 in value Well…
-
0
votes1
answer109
viewsQ: jQuery Autocomplete plugin 1.2.3 limit for query
Guys use jQuery Autocomplete plugin 1.2.3 from Jörn Zaefferer. I wanted to know how to make him perform the query only if I inform more than 3 characters. Calls the plugin this way:…
-
3
votes2
answers971
viewsQ: Problems with calculations in Javascript
Well I edited the question, because I located the problem. I have a javascript responsible for making calculations with the values in the input, and I have a plugin Jquery Mask or Maskmoney to make…
-
2
votes1
answer587
viewsQ: How to enable tooltip in inputs?
I have the following Tooltip: $(document).ready(function() { //Tooltips $(".tip_trigger").hover(function(){ tip = $(this).find('.tip'); tip.show(); //Show tooltip }, function() { tip.hide(); //Hide…
-
1
votes1
answer293
viewsQ: Problem with auto Focus
Guys I created a custom input, and I can’t make autofocus work. Follows the code: $('.form_campos').on('focus blur', function(e) { $(this).parents('.form-group').toggleClass('focused', (e.type ===…
jqueryasked Hugo Borges 5,294 -
1
votes2
answers66
viewsQ: Numberformatter does not work MIN_FRACTION_DIGITS, 2
Good use of php’s Numberformatter library to work with conversion, but I’m having a problem converting numbers with many digits after the . Example: $valores = '54.98054562'; $moeda1 = new…
-
1
votes2
answers8101
viewsQ: mask accepting numbers and , with jQuery Mask Plugin
People wanted to know how to create a mask in jQuery Mask Plugin so that the input accepts only numbers and comma. To accept only number I’m doing so: $('#valor').mask('#', { reverse: true });…
-
0
votes1
answer925
viewsQ: problems with jQuery-Mask-Plugin
Guys I am using the jQuery-Mask-Plugin to create masks in the value fields, I liked it because it is very simple. The problem is when I try to add a negative value it does not accept -. But I…
-
2
votes2
answers268
viewsA: How to remove R$ from Numberformatter?
Good following the php manual: http://php.net/manual/en/numberformatter.formatcurrency.php I arrived at the solution. Which in my opinion is much better to use Numberformatter because it is a native…
phpanswered Hugo Borges 5,294 -
3
votes2
answers268
viewsQ: How to remove R$ from Numberformatter?
Guys, I have the following problem. Follows my code: $valores = '530222077.99'; $moeda = new NumberFormatter('pt_BR', NumberFormatter::CURRENCY); $valores = $moeda->formatCurrency($valores,…
phpasked Hugo Borges 5,294 -
1
votes1
answer143
viewsA: how to format a value in en
The solution is this: $valores = '530222077.99'; $formatter = new NumberFormatter('pt_BR', NumberFormatter::CURRENCY); $valores = $formatter->formatCurrency($valores, 'BRL'); echo $valores; echo…
phpanswered Hugo Borges 5,294 -
1
votes1
answer143
viewsQ: how to format a value in en
Galera currently use the following code in php to format a value in PT-BR (22.222,22) // Colocar valor no padram 0,000,000.00 $valor_antigo = "22222.22"; $valor = number_format($valor_antigo, 2,…
phpasked Hugo Borges 5,294 -
1
votes2
answers92
viewsA: problem when converting text to lowercase
Good with the help of diego came the following solution: $(document).ready( function() { $('input').on('input', function(){ // Armazena posição corrente do cursor var start = this.selectionStart,…
-
1
votes3
answers535
viewsQ: how to perform calculations between 4 input, loading page or change value
I have 4 input fields, being: Cost that already comes with a value The freight field, which when changed the value must be added to the cost and displayed in total The discount field, which when…
-
-1
votes1
answer59
viewsQ: Title system bug I developed
I developed a title system using jQuery and CSS, it is very good and works when I call the tag <title>. But I am facing 2 bugs that I am not able to solve. first: When I put a very large…
-
0
votes1
answer47
viewsQ: Problems when defining width in div, tab system
Guys I created a simple tab system, using css,html and jquey. However I’m having a problem defining the width flaps. To make it easier to explain I’ll post the code here: function corrige_altura() {…
-
1
votes2
answers92
viewsQ: problem when converting text to lowercase
Galera created a function that converts the text to lowercase inside the input, the problem is that when I enter an input with value, and having change something the cursor jumps to the end. Someone…
-
2
votes1
answer506
viewsQ: problem when sending css email by phpmailer
Galera I set up an email using html and css. The email arrives perfect in several e-mail, but in G-mail the email arrives without css, ie only html. Does anyone know how to solve the problem? Follow…
-
0
votes1
answer179
viewsQ: problem with hidden copy in phpmailer
Guys I’m trying to send several emails with phpmailer, my recipients are receiving them, but to avoid them seeing to whom else I sent the emails, I used the following function:…
-
3
votes2
answers3023
viewsQ: How to lock certain keys in an input using Javascript?
Guys, I have a javascript function where I allow only numbers, comma (,) and hyphen (-) in an input. The problem is that I can type as many commas (,) and hyphens (-) as I want. I wanted to know how…
-
0
votes1
answer117
viewsA: problems with autofocus in custom input
I solved the problem with the autofocus="autofocus"
-
1
votes3
answers23335
viewsQ: avoid line break within a table, or minimum size
Galley is possible to determine a maximum and minimum size for a table? My problem and the next, I have a table with a text inside it, and when I decrease the size of the window of the navigate…
-
0
votes1
answer117
viewsQ: problems with autofocus in custom input
galera created a custom input, it works 100% the problem and autofocus is not working. Could someone help me? Follow the code jsfiddle…
-
1
votes2
answers551
viewsQ: Problem with duplicate form sending
Guys I’m having a problem sending duplicate form. It occurs as follows. I have an html form, when the user of 2 quick clicks or quick click on enter he sends the form 2 times. I tried to solve the…
-
1
votes4
answers1845
viewsQ: How to identify Focus in a div?
Galera mounted an input system with the same layout of android. Everything works perfectly on input but the input supplier stays within a div, because I have to add a button instead of x. The…
-
0
votes2
answers22610
viewsQ: How to take the value of one input and assign it to another?
Galera I have a form with several input that follow a sequence of pair, ie: value1 for cost1, value2 for cost2 and etc... I need to take the value of the input value1 and assign the same value to…
-
1
votes2
answers52
viewsQ: Problem with <select> animation
Galera I set up an input system similar to android, the problem and I’m not able to do the same animation in select. Could someone help me? Follows the code: Code working jsfiddle NOTE: I want to…