Posts by Vinicius Figueiredo Rodrigues • 304 points
10 posts
- 
		1 votes1 answer123 viewsA: How to work with if in a Vue.js application_OLD____________________________________________________ one way to do it is by placing chained filters filteredBancodedaos () { return this.bancodedados .filter(this.filtraPorNome)… 
- 
		0 votes1 answer117 viewsA: Pass javascript value to php postAn example of how you can do with jquery.ajax (you have documentation on the official website) api.jquery.com/jquery.ajax/ $.ajax({ method: "POST", url: "some.php", data: {lat: -34.397, lng:… 
- 
		1 votes2 answers861 viewsA: Pass ids as parameter to Function jsYou have a function receiving 3 parameters, but you are always passing only one which is the id of the clicked instance. In case you would have to fetch the 3 ids within the function, one way is to… 
- 
		0 votes2 answers766 viewsA: How to create a regular expression to validate only cell phone number?Hmmm maybe this expression will do, it worked for some tests with 9 digits and 8 digits, with or without ddd, and with or without hifen var cel = /[0-9]{0,2}?[9]?[0-9]{4}-?[0-9]{4}/;… 
- 
		1 votes2 answers145 viewsA: Long click with JavascriptA modification to the code proposed above would be to create the longclick event var timer; $("td").mouseup(function(){ clearTimeout(timer); // Limpa o timeout return false; }).mousedown(function(){… 
- 
		3 votes3 answers477 viewsA: Json filter help with jQueryfunction filtroHora(horaminida, horamaxida, horaminvolta, horamaxvolta){ var trechos = jsonParaFiltrar.aPesquisa; var trechosFiltrados = trechos.filter(function(trecho){ //essa função retorna para… 
- 
		1 votes2 answers113 viewsA: Play date returned from ajax in php foreachWell, you will need to inflate this data in html to then play on your page, one of the ways, following your template is creating a string template: var templateVideos = `<div class="sc-box "… 
- 
		0 votes3 answers1807 viewsA: How to do something asynchronous with jQuery, search in Mysql with PHP?You can create a webservice to provide this data. Basically a file that will return only this data. First create a file, ajax.php, for example. In it you make the query and write the result. To make… 
- 
		1 votes2 answers113 viewsA: how to direct a page synchronously at nodejsYou can send the answer inside the request callback function performRequest(callback){ http.request(options, function(res) { var body = ""; res.setEncoding('utf-8'); res.on('data', function(chunk) {… 
- 
		7 votes3 answers452 viewsA: There is a useful way to highlight an HTML element/tag(a) in a certain colorYou can use the selectors before and after: .paragraphClass::before, .paragraphClass::after{ color: blue; } .paragraphClass::before{ content: '<p>'; } .paragraphClass::after{ content:…