Posts by Tiago Gomes • 766 points
34 posts
-
1
votes4
answers1488
viewsA: How to do <li><div class="class" onclick="window.Location='link';"></div> open in new tab?
With the code that is in the question it is necessary javascript to open the page so the code is.: <li> <div class="clientes" onclick="window.open('LINK');">text</div> </li>…
htmlanswered Tiago Gomes 766 -
0
votes2
answers92
viewsA: PHP refresh SQL Data without refreshing the page
Quick response.: Não é possível apenas com PHP More elaborate answer.: PHP é do lado do servidor e não do lado do cliente. O que poderá fazer é utilizar uma linguagem do lado do cliente e fazer…
phpanswered Tiago Gomes 766 -
1
votes4
answers177
viewsA: How to get the entire HTML of the last Fieldset into a dynamic page?
html to be what Voce has.: <html> <head><title></title></head> <body> <h3>Multiplos Fieldsets</h3> <br> <div id="BlocosDinamicos">…
-
3
votes1
answer88
viewsA: How do I visualize responsible with dependents
When you are adding the value to SQL you are indicating that it is the number (intval) that means you are taking the zeros on the left. Alter from.: $stmt->bindValue(":numerocontrato",…
-
0
votes1
answer542
viewsA: Add one array within another
Therefore has 2 arrays $reg mysqli_fetch_array($result2, MYSQLI_ASSOC) You want to get 1 array with the following rules.: array( 'JSON'=>array( 'partida'=>$reg,…
-
1
votes1
answer49
viewsA: Retrieve a general rating and display in a list
The SQL you want SELECT *, (SELECT COUNT(*) FROM avaliacao WHERE id_car_ava=id_car) AS QT FROM carros Example.: http://sqlfiddle.com/#! 9/23cfaf/2…
-
3
votes1
answer2792
viewsA: Function jquery does not work
In localhost you must have put it in the same order you asked the question. That means.: <script type="text/javascript"> $('#btn').click(function() { $('.nav').toggleClass('nav-min'); });…
-
1
votes4
answers340
viewsA: Is there a way to set width specified in html as the max-width of this element in css?
In css it is not possible to fetch the information. Can do in jquery.: (is generalized can cause slowness) <script> $(document).ready(function(){//executa quando terminar de carregar a pagina…
-
0
votes2
answers103
viewsA: Doubt with Script - Show image according to Selection
You can send in the function as argument which target will be. Each tag should have its id, so I’ve changed the ids. Stay like this.: <script type="text/javascript"> /* URL of folder with…
-
3
votes2
answers29597
viewsA: How I keep html elements on the same line
The question is not very specific. So it is not possible to give a concrete answer, but I will try to answer generally. The div tag when created by default has the attribute in css "display:block".…
htmlanswered Tiago Gomes 766 -
0
votes2
answers75
viewsA: My radio input is repeating
It is the name that some have a space and others do not. Change to.: <tr class="section4"> <td>Cumprimento de Horário (pontualidade dos horários de viagens).</td> <td WIDTH=9…
-
0
votes4
answers218
viewsA: How to define Focus in jhtmlarea?
The field you want to validate is <textarea name="descricao" id="descricao" cols="60" rows="15"></textarea> So you should validate the textarea and not the iframe the library creates.…
jqueryanswered Tiago Gomes 766 -
1
votes1
answer76
viewsA: Checkbox marking select multiselect stopped
The embarrassment was arising because when it passed in the was there were no objects. So change.: $("#tipo").multiselect(); $("#bairro").multiselect(); For the start of the function.:…
jqueryanswered Tiago Gomes 766 -
3
votes4
answers2497
viewsA: How to dynamically change the color of the text based on the background color?
What you want is to implement invert except class Tr1. Change the css of.: tr td:hover { -webkit-filter: invert(1); filter: invert(1); } for.: tr:not(.tr1) td:hover { -webkit-filter: invert(1);…
cssanswered Tiago Gomes 766 -
1
votes1
answer53
viewsA: Why isn’t the time difference returning?
function dateDiff( $tempo1, $tempo2, $format = '%H:%i:%s' ) { $d1 = new DateTime( $tempo1 ); $d2 = new DateTime( $tempo2 ); //Calcula a diferença entre as datas $diff = $d1->diff($d2, true);…
phpanswered Tiago Gomes 766 -
1
votes1
answer97
viewsA: How to adapt this code to different screens
To be dynamic the updated function was created. atualiza=function(){ $('.swiper-container').width($( window ).width()); $('.swiper-container').height($( window ).height()); if ($( window…
-
1
votes1
answer62
viewsA: SYMFONY 3 -> Could not load type "Tableless Modelbundle Form Datetimetype"
It is necessary to import.: use Symfony Component Form Extension Core Type Datetype; Alter ->add('createdAt', 'datetime') ->add('updateAt', 'datetime') for ->add('createdAt',…
-
1
votes1
answer62
viewsQ: SYMFONY 3 -> Could not load type "Tableless Modelbundle Form Datetimetype"
I’m learning SYMFONY 3. Last steps I made before the error.: create crud with Doctrine ORM create your route Enter the post page After loading "Create a new entry" gives the following error.: Could…
-
2
votes2
answers205
viewsA: Media Queries for Java Script - What is the error in this syntax?
Constriction originates in the 1st line var mq = window.matchMedia('@media all and (max-width: 768px)'); this should be the case.: var mq = window.matchMedia('(max-width: 768px)');…
-
1
votes1
answer568
viewsA: Add dot('.') after the 3rd character
You have to due the string as you want. LEFT(original code,3) -> The first 3 characters SUBSTRING(original code FROM 4) -> All other characters Then you need to concatenate with the ".".:…
-
1
votes2
answers464
viewsA: How to replace a specific query string value of a url through PHP using an array?
function transforma_query_string($url,$dados){ $url=explode('?',$url,2);//separa o link dos argumentos $link=$url[0].'?';//adiciona o ? para ficar pronto para os argumentos…
phpanswered Tiago Gomes 766 -
1
votes1
answer474
viewsA: Manipulate Jquery autocomplete ui
There is the possibility to pass the JSON information inside the array. In your case you should change from.: arr.push(value.nome); To arr.push({label:value.nome, value:value.id}); So when they are…
-
1
votes3
answers47
viewsA: Second button replacing contents of the first
The constraint is here.: $("#matriz").html(retorno); and $("#saopaulo").html(retorno); You are inserting the content in different places or why the two tables appear. You can put only 1 id or change…
-
0
votes5
answers946
viewsA: Bootstrap: prevent the menu from closing when clicked out of it
The dropdown component of the bootstrap has events to handle all interactions. show.bs.dropdown->This Event Fires immediately when the show instance method is called. Shown.bs.dropdown->This…
-
1
votes5
answers946
viewsA: Bootstrap: prevent the menu from closing when clicked out of it
The solution I found was: If not to hide then save what is open and then open again. Stayed like this.: $(document.body).on('click', function(event){ var windowWidth = $(window).width();…
-
6
votes1
answer292
viewsA: Open a div according to your ID
First it is not advised to have equal id, id’s should be unique. Only class allows tags with equal class. So step one I changed the id’s in the menu Ivs. For example.: From 1 to menu1. At the time…
-
1
votes1
answer49
viewsA: DIV misalignment when inserted text inside
Missing put < p> in position:Absolute. Example.: https://jsfiddle.net/jotkf2jn/1/ I put on top and left just so I didn’t get on the curve. I couldn’t open the image to see what was intended.…
-
1
votes1
answer531
viewsA: Link in Datatables table
I was "simulating clicks" because filling the table was calling the function. When you’re writing.: return '<a href="onclick=' + selecionarInsumo(data) + '">' + data + '</a>'; The…
-
0
votes1
answer93
viewsA: How do I print the html content of a div when I store the information in the database?
If the save is successful you should return from the server all the data you want in JSON. EXAMPLE.: {NAME:'test', CONTACT:'123'} In php to return this JSON print_r(json_encode…
-
1
votes1
answer908
viewsA: Check area size on Canvas
The embarrassment is in the function: function drawRetangle(context, width, height) { position_x = parseInt(width) / 2; position_y = parseInt(height) / 2; position_x = parseInt(position_x) - 20;…
-
1
votes3
answers358
viewsA: how to use date interval to count days?
If you want MYSQL you have DATEDIFF. Use function.: DATEDIFF(data1,data2) will round off the days of difference. Example of use.: SELECT DATEDIFF('2016-10-09','2016-10-01') AS QuantidadeDias Result…
-
3
votes2
answers536
viewsA: Using Animate() jquery to animate the place change in a puzzle
I think it’s best to think like objects. Example a puzzle needs to have a base and pieces. Following the logic we need to make the basis (position:relative) and the parts (position:Bsolute). So I…
-
0
votes2
answers205
viewsA: Unwanted 1px space in Internet Explorer
Add to CSS body{ margin:0 0 0 0; padding: 0 0 0 0; } This code aims to reinforce that we do not want space between body and content. Example.: <html> <head> <meta…
-
3
votes3
answers5856
viewsA: Leave fixed elements on a static page
The search css tag is position Fixed. Example: <html> <head> <title>texto fixo</title> <style> .fixo{ position : fixed; width : 250px; height : 100px; left : 50%;…