Posts by marcelogribeiro • 425 points
16 posts
-
1
votes1
answer468
viewsA: Force POSTBACK
You can use the "__doPostBack" function, example: function suafuncao() { document.getElementById("<%=outros.ClientID%>").value = click_teste; __doPostBack("<%=outros.ClientID%>", ""); }…
-
0
votes2
answers1796
viewsA: Formulario Email React
You can use the Redux-Forms that your code will look more elegant and better for future maintenance, see an example of validation with Redux-form:…
-
4
votes1
answer7723
viewsA: Remove "." /" and "-" from varchar in select
You must use several Places: REPLACE(REPLACE(REPLACE(E.[CNPJ/CPF],'.', ''),'-', ''),'/', '')
-
3
votes1
answer1926
viewsA: How to add a Component to each click on the React
You must create a list (save to state) and use the map to render this list: class NovoResponsavel extends Component { render(){ const responsavel = this.props.responsavel; return ( <div>…
-
3
votes1
answer35
viewsA: Doubt when using SESSION to store data
You are not updating the value of Session in your class, see the correction in the "add" <?php class Livro { public $livros; function __construct(){ session_start();…
-
1
votes1
answer39
viewsA: How can I make an if if Database data is True or False
One simple way is using the Sqldatareader, example below: using (var comando = connection.CreateCommand()) { comando.CommandText = $"SELECT LoginID,Award FROM Sys_Usuarios_Award WHERE…
-
0
votes2
answers16136
viewsA: Print a Javascript variable in Input html
Your problem is that you are using Document.write, this command will replace the entire contents of your page. You must create a div to "print" the result, see the example below: function Sumar() {…
-
0
votes1
answer173
viewsA: (SELECT JOIN?) How to get a number of records from a specific column, from another table (when there is a foreign key)
You can use a subselect with select Count, for example: SELECT pe.*, (SELECT count(0) FROM matriculas ma WHERE ma.idpessoa = pe.idpessoa AND ma.evadido = 'S') quantidade_evasao FROM pessoas pe INNER…
mysqlanswered marcelogribeiro 425 -
0
votes1
answer49
viewsA: Block other sites from uploading my images
A strategy for what you want, would create an intermediary page to load your images, with this you can detect the origin of the request, below I will put an example in PHP. <?php…
nginxanswered marcelogribeiro 425 -
4
votes2
answers242
viewsA: Split date format
You must convert to text using the TEXT function, see below: =CONCATENAR("Codigo: ";A1;" - Data: ";TEXTO(B1;"dd/MM/aaaa HH:mm"))
-
0
votes1
answer50
viewsA: Do not insert in table
Yours is without action. Ex: <form name="customer_details" action="minhapagina.php" method="POST" onsubmit="return form_validation()" > <h1><center><strong>Listagem Para…
-
-2
votes1
answer2803
viewsA: Change font after text to a div?
Use :Hover as an example below: HTML <html> <head> <title>Exemplo alteração de cor do texto</title> </head> <body> <div class="divMain">Seu texto…
cssanswered marcelogribeiro 425 -
1
votes1
answer174
viewsA: Get Textbox value inside the Repeater with Javascript Event Onchange
Try it this way: <asp:Repeater ID="Repeater2" runat="server"> <HeaderTemplate> <table id="repeaterTable" style="border: 1px solid black;"> </HeaderTemplate>…
-
1
votes1
answer359
viewsA: Read html file and get the value of a selected select
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); doc.LoadHtml(str); var select =…
-
1
votes4
answers318
viewsA: How to get the last segment of the path?
I believe this regex solves your problem: (\/\w+\/\w+)((\/?$)|(\?.+$)) I created a test in the link below: https://regex101.com/r/b48kWg/1 The content you need is in group 1 (green)…
-
1
votes1
answer1067
viewsA: Retrofit JSON - Error Expected BEGIN_ARRAY but was BEGIN_OBJECT
This API does not return a List, you have to create a class and change your Return to it as the below: package com.example; import java.util.HashMap; import java.util.List; import java.util.Map;…