Posts by FabianoLothor • 604 points
16 posts
-
0
votes1
answer112
viewsA: Problem with android library REACT-NATIVE
Use the library Platform import {Platform} from 'react-native'; // Importe a biblioteca assim: const ImageCropperPackage = Platform.select({ ios: () => null, android: () =>…
-
2
votes1
answer436
viewsA: Text formatting options for HTML / PHP
Yes, there is! I like to use the Froala Editor After adding all the dependencies to your project, simply set your textarea as an input that will use the editor library. Suppose you have a textarea…
-
1
votes3
answers66
viewsQ: Modify element through Javascript and "warn" page that element has been modified
$(document).ready(function(){ $("#myTextarea").change(function(){ alert("text area changed"); }); //$("#myTextarea").keydown(function(){ //alert("text area changed"); //}); }); setTimeout(function()…
-
1
votes2
answers5956
viewsA: How to run a Python command with JS?
You can do this through a command AJAX through the JavaScript, however, your call AJAX will be a request on HTTP (WEB) for the script Python, therefore, your command needs to listen at the door for…
-
3
votes1
answer232
viewsA: How to make the pseudo-element before work?
This works for me section.conteudopadrao a:before{ content: url("http://www.bestadsontv.com/images/facebook.gif"); } Therefore, the solution proposed by Bruno above should work…
cssanswered FabianoLothor 604 -
1
votes2
answers744
viewsA: Hide one div and show another by clicking on a javascript-only button
How the buttons are inside a form, when executing the event action onClick your page will be reloaded, so the feeling that the function show_question is not working. As the first button is not in…
javascriptanswered FabianoLothor 604 -
1
votes1
answer32
viewsA: Random backgrounds on each page load on static pages
Modify the lines below: Ao invés de fazer: $("#bannerMain").css({ 'background-image': 'url("../../assets/Imagens/' + backgroundAleatorio(numeroBG) + '");' }); $("#bannerSecondary").css({…
-
2
votes2
answers3352
viewsA: How to fix accentuation query sql server data
Renan, if you need to get this data correctly at runtime, I believe the solution is below. Function has been removed of this link CREATE FUNCTION dbo.UTF8_TO_NVARCHAR(@in varchar(MAX)) RETURNS…
-
2
votes3
answers1333
viewsA: How to overwrite a method via prototype on a javascript object?
Okay, I get what you want to do. But it’s pretty confusing "como" you’re making. Anyway, from what I understand what you’re wondering is: How do I overwrite the prototype of a parent object, in the…
javascriptanswered FabianoLothor 604 -
6
votes1
answer14068
viewsA: Conversion from VARCHAR to INT
The error is happening because you are converting a value that does not fit the type INT, then ends up giving overflow in conversion. No SQL Server, there are 4 types of variables to treat integers,…
-
0
votes1
answer95
viewsA: SQL SERVER Counting Items from a Calculated Field
Have you tried that? SELECT [CAM_PF] As CAM ,[CAM_DT_REGISTRO] as DT_REGISTRO ,[CAM_DT_BD] --Esta coluna deve ser contada, preciso saber quantos iten "DADOS" e quantos "HISTORICO" tem na relação que…
-
5
votes1
answer47
viewsA: Another form of UPDATE?
Andrews, assuming that the service code provided for Bath in the PET SHOP, is 1, as you are using in the WHERE, just correct the value of your condition. Instead of using UPDATE…
mysqlanswered FabianoLothor 604 -
5
votes4
answers1424
viewsA: How to continue incrementing the value of a variable even after a page is reloaded?
It’s easy, try using the code below: <?php if(isset($_SESSION['a'])) { $_SESSION['a'] += 1; } else { session_start(); $_SESSION['a'] = 1; } echo $_SESSION['a'];…
phpanswered FabianoLothor 604 -
2
votes1
answer280
viewsQ: Select element, ignoring specific class
Come on... Suppose I have something like the list below. <div id="respostas"> <div class="historico"> <div class="lista"> <div…
-
3
votes2
answers81
viewsA: Function that returns an array of strings that are in all arrays
Good people, follow the solution of the problem: var objetos = ["abridor de garrafa", "abridor de latas", "adaga", "ábaco", "abajur", "abotoadura", "acetona", "açucareiro", "zabumba", "xícara",…
-
4
votes2
answers81
viewsQ: Function that returns an array of strings that are in all arrays
Talk people, all good? My doubt is simple, but the solution may not be so simple. The truth is that I am doing a job in JS and soon I will need to solve a problem that will make me spend a few hours…