Posts by old7 • 144 points
9 posts
-
0
votes2
answers94
viewsA: When decreasing the browser window the position of the Labels is changed
When Voce resizes the margin and/or padding is being readjusted. You can take the test using: * { margin: 0; padding: 0; } Using position: Fixed; will fix for IE.
javascriptanswered old7 144 -
4
votes1
answer213
viewsA: Websockets connections with PHP
public $wsClients = array(); and function wsRemoveClient($clientID)
-
0
votes1
answer135
views -
1
votes1
answer200
viewsA: pick number of results of a query with the database using cakephp
Try using the "Count()" of the Resultset object http://api.cakephp.org/3.0/class-Cake.ORM.ResultSet.html…
-
2
votes4
answers1841
viewsA: Does the order of the WHERE clauses interfere with performance?
Both clauses make use of indexed columns? The SQL code is compiled and the SGDB mounts an execution plan. There are some tools that allow you to visualize the execution plan. In Mysql if I’m not…
-
0
votes2
answers108
viewsA: Comment area overlapping the footer of the site!
Try to use this: z-index: 50000;
-
3
votes6
answers2500
viewsA: Hover on DIV1 change DIV2 with CSS
With javascript is possible. Follow an example using jquery: $("#div1").hover(function() { $("#div2").toggleClass("vermelho"); }, function() { $("#div2").toggleClass("vermelho"); }); #div1, #div2 {…
-
0
votes4
answers798
viewsA: Filter <td> with PHP
Since it is from another site try with jquery $("tr td:nth-child(5)").remove() $("tr td:nth-child(4)").remove() $("tr td:first").remove() <script…
-
3
votes3
answers3898
viewsA: How to 'break' a text at each character range - Javascript
var texto = "x2345678y2345678z23"; var dist = 8; var resultado = new Array(parseInt(texto.length / dist)); for (var x = 0; x < texto.length / dist;…