Posts by Paulo Amaral • 177 points
9 posts
-
0
votes1
answer124
viewsQ: Split table into two div
Hello I have four div with fixed size 300px each, and a table in the first div, I need that when this table exceeds the size 300px the rest of the content go to the second div and so on. #pg1{…
-
1
votes4
answers1467
viewsQ: Show and hide div
I need to make a function that when clicked only the div with the passed class is visible and the others are hidden. <a href="javascript:teste('minhaDiv');" class="expander">Link</a>…
-
7
votes1
answer825
viewsQ: Return duplicated values in arrays
My question is this? I have the following array: $array1 = array(10, 50, 80, 40, 90); $array2 = array(10, 30, 10, 40, 20); $array3 = array(10, 60, 15, 40, 30); $array4 = array(20, 30, 40, 10, 50);…
phpasked Paulo Amaral 177 -
1
votes1
answer636
viewsA: bind_param() dynamic
I decided here with this function: function refValues($arr){ if (strnatcmp(phpversion(),'5.3') >= 0) //Reference is required for PHP 5.3+ { $refs = array(); foreach($arr as $key => $value)…
-
1
votes1
answer636
viewsQ: bind_param() dynamic
I have the following class: class BindParam{ private $values = array(), $types = ''; public function add( $type, &$value ){ $this->values[] = $value; $this->types .= $type; } public…
-
4
votes3
answers346
viewsQ: .serialize() only lines marked with checkbox
I need to serialize() only on the lines selected with the checkbox <form id='form'> <table class='table table-bordered'> <thead> <tr> <th>Código</th>…
-
0
votes0
answers51
viewsQ: Problem with AJAX WEB environment
Good afternoon. I have an application on localhost this working perfectly, but the WEB does not follow picture: Localhost WEB The list of products in this case is large, and in the web works when I…
-
2
votes1
answer411
viewsA: Function to totalize selected input values in checkbox
Solved here, I changed function and worked as wanted. function SomaTotais(){ var total = 0; $("input:checkbox[data-id=selecao]:checked").each(function () { var i = this.value; var valor =…
-
1
votes1
answer411
viewsQ: Function to totalize selected input values in checkbox
Good afternoon. I have a table on my page with columns of quantity and value of the product. These values are returned from my BD, in each row there is a checkbox for selection, I have already made…