Posts by Rodrigo Mello • 413 points
28 posts
-
1
votes2
answers3949
viewsA: How to change the style of an React component by clicking a button?
Dude, there is no secret, you will have a state to control the click action, with the click running the change of state the component will be reengineered, IE, vai passar de novo pelo metódo…
-
0
votes1
answer214
viewsA: How to wait for the result of a Firestore query?
Firestore is a file, that is, you need to pass a callback function in "getAll" and at the end of the whole process, already when you are with the categories then call the function passed with the…
-
0
votes3
answers6521
viewsA: Can you map() an object array to React?
I made it with state instead of props, if it works like this just change it later: import React, { Component } from 'react'; class Recipes extends Component { constructor(props) { super(props);…
-
1
votes2
answers412
viewsA: React onChange is not firing
It is only possible to update the state of React with this.setState you MUST NEVER change this.state directly. Because this.state is how React will know what’s changed or not. You started the…
-
0
votes1
answer788
viewsA: Enter link in URL does not load page
You are in the browser and not on the server (server-render) so you need to use Hashrouter instead of Browserrouter
reactanswered Rodrigo Mello 413 -
1
votes2
answers310
viewsA: Show or Hide modal with sessionStorage
When he closes the modal use: window.sessionStorage.setItem('ja_exibiu', 'true'); Then to validate whether it’s the first time or not, use: if (window.sessionStorage.getItem('ja_exitiu') == 'true')…
-
3
votes3
answers19347
viewsA: How to align text to the right in a list
The point is to use right alignment on an inline-block element. Try using float right; .top-bar .contact-details li { display: block; float: right; margin-right: 10px; }…
cssanswered Rodrigo Mello 413 -
2
votes6
answers8595
viewsA: javascript loop with Sleep
for( var i=0; i < 10; i++ ){ setTimeout(function (){console.log('valor de i='+i); },i*1000); }
javascriptanswered Rodrigo Mello 413 -
0
votes1
answer50
viewsA: Turn multiple css files into a single one with Postcss
I managed to solve with the "Gulp-Concat" that concatenates files. https://www.npmjs.com/package/gulp-concat
-
0
votes2
answers1453
viewsA: as a tool to leave a FULL SCREEN slide
Pull the slide from the . bootstrap container... or create a div ".container-fluid" out of its main container.
-
1
votes0
answers43
viewsQ: How to install and configure Markdown in Meteor together with React?
I’m learning React along with Meteor, so I saw in the official React documentation the use of Markdown is a good practice against XSS. I downloaded it in the media with "Meteor add markdown" but…
-
0
votes2
answers231
viewsA: Left property does not work in position Fixed
It works as long as the parent element is with position: relative;
cssanswered Rodrigo Mello 413 -
4
votes5
answers106
viewsA: link is not called
Use $(seuelemento).on("click", function() {}) This is because the DOM has already been loaded, you need the event ON to listen to page changes.
jqueryanswered Rodrigo Mello 413 -
0
votes1
answer50
viewsQ: Turn multiple css files into a single one with Postcss
I use Postcss to generate a css framework, I can use it in a good way, my only problem is the output. If I have 8 CSS files Postcss generates me and treats the 8 in new 8 files, but the ideal for me…
-
0
votes4
answers18313
viewsA: Change point per comma to input value
I present you only toFixed() and replace() methods of Javascripty: var num = 5.56789; var num_com_2_casas = num.toFixed(2); var res = num_com_2_casas.replace('.', ','); // resultado 5,57…
-
1
votes1
answer2287
viewsA: When the user clicks on the image, open in larger size
I recommend you the responsive plugin blueimp Gallery, you can download it and inside the zip there will be some examples, it is quite simple, you link the css and js (jquery is necessary), then…
-
1
votes1
answer363
viewsA: Click on Jquery does not work
$('.listagemEsc').click(function(){ $(this).parent('.membrosClick').width(383); }); Updated: $('.membrosFechar').click(function(){ $(this).parent().parent('.membrosClick').width(383); }); Updated:…
-
0
votes2
answers2205
viewsA: Send javascript object to php
The Broker Class does nothing? That’s what I understood. case 9: $operacao->CadastraCorretor(); break; Considering that your switch is already on the same page I believe you can use get inside…
-
1
votes2
answers853
viewsA: Datepicker does not work
$('body').on('focus','.datepicker', function(){ $(this).datepicker(); });
-
0
votes2
answers811
viewsA: HTML5 form validation
This javascript plugin limits what is typed and can still put masks if you need, I always use for phones, Cpf, zip... http://www.igorescobar.com/blog/2012/03/13/mascaras-com-jquery-mask-plugin/…
-
0
votes2
answers706
viewsA: How to send array files via ajax?
I understood what you want, but I believe it is not possible with a simple script, because the plugins that do this are very complex. I would recommend a ready-made javascript/php plugin that…
-
3
votes2
answers922
viewsA: Change Css with javascript when clicking
Create a class to manipulate this. .margintop230 { margin-top: -230px !important; } Leave already in the style of your circle the standard of -170px; .btn-contato { margin-top: -170px; } In…
-
4
votes1
answer541
viewsA: Using ajax serialize in Laravel
I don’t know if only 'check' works in your 'url' inside ajax. Try to use: url: "{{ URL::to('verificarBarcode') }}"; From what I understand the problem is the ajax find the function in the Laravel. I…
-
1
votes1
answer300
viewsA: How to compare post time interval since it was published ?
You have to work with timestamp. I save the dates in the bank using: date('Y-m-d H:i:s') Which is the default for mysql timestamp/datatime. Now that you have a saved pattern, while reading this you…
-
1
votes2
answers142
viewsA: Insert time function value in mysql
I suggest to change the column in the database to datetime or timestamp and in your php code to use date("Y-m-d H:i:s"); Instead of time();…
-
0
votes3
answers137
viewsA: Postgresql Query - How to do this?
Dude, your ID idea is wrong, careful with that, the ID should be unique... You will not be able to do this only with Query in SQL, you will have to do this with your main language... In PHP I would…
-
1
votes2
answers648
viewsA: Back to top button in scroll to top
It does, but I suggest you take a look at this plugin: http://markgoodyear.com/labs/scrollup/? Theme=image I think it should help you. If it doesn’t help, explain better which mobile button is this…
jqueryanswered Rodrigo Mello 413 -
0
votes4
answers186
viewsA: Dropdown menu opens partially
z-index did not work? <ul class="dropdown-menu" style="z-index:99999"> <li><a href="#">Ação 1</a></li> <li><a href="#">Ação 2</a></li> <li…