Posts by PauloHDSousa • 3,509 points
159 posts
-
4
votes1
answer103
viewsA: Why is Nan bigger than any number?
Based on the English OS question you "copied" Edit - Based on the English OS question you "did there and here"…
-
1
votes4
answers11464
viewsA: Increase image when user click on JS
Try it this way. $(document).ready(function(){ $('.img-responsive').on( "click", function() { $(this).toggleClass('maxSize') }); }); .maxSize { height: 70%; width: 70%; } <script…
-
1
votes4
answers877
viewsA: How to search for an element with the same class depending on the number of children?
I caught it follows your js code and added the if you need. var lista = document.querySelectorAll('.lista'); console.log(lista); var listaj = $('.lista'); console.log(listaj.size()); $( ".lista"…
-
-1
votes6
answers49720
viewsA: Convert DATA dd/mm/yyyy hh:mm:ss to yyyy/mm/dd
SELECT convert(datetime, '14/12/2015 00:00:00', 103)
-
4
votes3
answers125
viewsA: Enable/Disable input by id
Hello, Do so <script> $(document).on('click', '#outros, #txtOutros', function() { $('#txtOutros, #outros').attr('readonly', false); $(this).attr('readonly', true); }); </script>…
jqueryanswered PauloHDSousa 3,509 -
0
votes1
answer531
viewsA: Validating an Empty textbox field with Customvalidator
Hello, Follows the code function ValidatxtECFNrSerie(src, args) { if (string.IsNullOrEmpty(args.Value)) { args.IsValid = false; } else { args.IsValid = true; } }…
-
1
votes1
answer827
viewsA: Javascript call from within code Behind does not work
Try it like this and see how it works ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "_montaDataSubstituicaoPrestador", "montaDataSubstituicaoPrestador(calDataExclusao.Date);", true);…
-
5
votes1
answer1319
viewsA: Display data with Google Chart - Stacked
Operation of the tool is correct, To do what you want, you must subtract the TOTAL - COMPLETED total values, as follows:. <script…
-
0
votes1
answer51
viewsA: C# - Cursors.Hand.Handle does not identify cursor " Hand "
I think you’re getting the cursor wrong, Try it this way private static bool Cursor() { var h = Cursor.Current; CURSORINFO pci; pci.cbSize = Marshal.SizeOf(typeof(CURSORINFO)); GetCursorInfo(out…
-
2
votes3
answers306
viewsA: Javascript: Retrieve text from an Option
Hello, Using Pure JS. window.onload=function(){ var form = document.getElementsByTagName("form")[0]; var cmdEstados = form.Estados; cmdEstados.onchange=function(){ alert("Sigla: " + this.value + "…
javascriptanswered PauloHDSousa 3,509 -
0
votes1
answer475
viewsA: Android - What data technologies, SQL? , noSQL? , local database + server database?
Hello, I’ll talk based on the apps I developed. What is the need/advantage of a local database(which information is ideal for using a database, for example, Sqlite)?; I used local database for data…
-
1
votes1
answer106
viewsA: Treatment of Datagridview
Hello 2 Points to be made. 1 - In your class add 2 properties, which are. Assuming the Product Code is an INT public int CodigoProduto { get { return this.Produto.Codigo; } } //Assumindo que…
-
1
votes1
answer417
viewsA: How to include a checkbox column for all rows in Datatable?
Hello, Do so function MeuMetodo(){ alert('Faça o que quer aqui'); } "aoColumnDefs" : [ //adiciona a classe para todas as células referente a coluna indicada {"sClass" : "hidden-xs…
jqueryanswered PauloHDSousa 3,509 -
1
votes1
answer640
viewsA: Maximum size of sql query text
Hello, The value in KB is 65,536 * Network Packet Size Network Packet Size you configure on your SQL server Source:https://msdn.microsoft.com/en-us/library/ms143432.aspx…
-
1
votes1
answer140
viewsA: requestAnimationFrame, setInterval and setTimeout
For what I’ve used requestAnimationFrame It is more for games or animations, it is like a set interval only that without problems with the difference of MS from one computer to another, came along…
javascriptanswered PauloHDSousa 3,509 -
-3
votes5
answers15911
viewsA: How to make a circle in CSS without Border-Radius 100%?
<img class=”element” src=”image.png” /> <p>Lorem ipsum…</p> <style> .element{ shape-outside: url(image.png); shape-image-threshold: 0.5; float: left; } </style>…
-
0
votes2
answers94
viewsA: How to organize titles
Follow what the W3C says. Source W3C => http://www.maujor.com/w3ctuto/qatips/useh1.html Use H1 for first-level headers H1 is the HTML element used for first-level headers in a page: If the…
htmlanswered PauloHDSousa 3,509 -
0
votes2
answers2726
viewsA: Run Function only when div appears
I think it works $('.spincrement').spincrement({ from: 0.0, decimalPlaces:0 , duration: 5000, complete: function (e) { alert('Faz algo ao aparecer a DIV') } });…
-
0
votes1
answer96
viewsA: Update Android Application Data
It would work yes, this one seems the simplest and not the most correct. The most correct would be to use a WEB server can be WCF C# ASP.NET or some other. And that WCF server would take from a…
androidanswered PauloHDSousa 3,509 -
0
votes2
answers3582
viewsA: Required does not work
The REQUIRED attribute was inserted with HTML5 and only works in some versions of the browsers. Possibly you are testing in a browser that is not supported, follow the list of browsers that accept…
-
1
votes1
answer107
viewsA: Which event shows if the android keyboard is active or not?
Hello, I found these 2 codes in SOEN Mode 1 InputMethodManager imm = (InputMethodManager) getActivity() .getSystemService(Context.INPUT_METHOD_SERVICE); if (imm.isAcceptingText()) {…
-
1
votes1
answer1268
viewsA: Coloring Canvas Drawing and Increasing Painting Area
The plugin you are using does not support what you want, it is still in version 0.0.1. The most you can do is increase the brush’s action area. paint one of the drawing on the canvas with BUCKET…
-
0
votes1
answer92
viewsQ: App name does not appear after downloading from APP Store
I developed an application in APP BUILDER and published in APP STORE, but in the last update I noticed that now, when you download the application, it appears with the icon and no name on mobile…
-
1
votes1
answer2654
viewsA: How to add onclick event to play audio on canvas?
Hello, Try to do it this way <img src="" onclick="TocarMusica()" /> function TocarMusica(){ var audio1 = new Audio(); audio1.src = "audio/samples/F.mp3"; audio1.play(); }…
-
1
votes1
answer114
viewsA: Validation of URL parameters
1 - I would use GUID instead of INT, only this would solve all the problems. 2 - If you save in Sesssion or Viewstate, the user cannot change in Client. Session["Idpessoa] =…
-
0
votes1
answer34
viewsA: Fields for entering data in the form
Hello, Based on this stackEN question, you can do as the code below. https://stackoverflow.com/questions/4609405/set-focus-after-last-character-in-text-box (function($){ $.fn.setCursorToTextEnd =…
-
2
votes1
answer243
viewsA: How to remove required HTML5 validation icon
According to what the @Onosendai responded in the comments, support for styling validations in Chrome is no longer available. Source:https://code.google.com/p/chromium/issues/detail?id=293209…
-
1
votes1
answer1359
viewsA: How to generate PDF with Crystal Reports and send it by email?
I found this here, maybe it’ll help http://www.aspforums.net/Threads/171901/Export-Crystal-Report-to-PDF-and-send-in-Email-as-Attachment-in-ASPNet-using-C/ using System.Data; using…
-
3
votes2
answers189
viewsA: What is the inverse of :Visible in jQuery?
I believe it is hidden. Example: $(this).find('li:hidden').addClass('color-red'); https://api.jquery.com/hidden-selector/…
-
2
votes1
answer70
viewsA: Jquery - Check when a class is removed by the developer tool
I wouldn’t advise it, but follow the code $(function(){ var repetirEmMiliSegundos = 10000;//10 segundos setInterval(function() { if($('.nomeDaClasse').length > 0){ //Ainda existe } },…
jqueryanswered PauloHDSousa 3,509 -
0
votes2
answers83
viewsA: doubts about localDB in MVC C#
If I understand your question the answer is NO, the name of the bank doesn’t change anything. if you create a database on an SQL server and point your application to that database, anyone who…
c#answered PauloHDSousa 3,509 -
1
votes2
answers387
viewsA: Add all records before a specific date - Sqlite
Do so SELECT SUM (VALOR) FROM despesa WHERE data <= Datetime('2015-06-30 00:00:00') AND pago = 1 AND idusuario = 1
-
8
votes1
answer170
viewsA: Questions in Windows Forms and C#
Why are there two. Cs files that are intended one for the design of form and another for the code of the program itself A . Cs is the source of the design you made on hand. When you have the program…
-
1
votes1
answer755
viewsA: Change the color of a line and take the selection of a Datagrid
Do so. if(dataGridAtribuicaoVaga.SelectedCells.Count() > 0) cod = Convert.ToInt32((dataGridAtribuicaoVaga.SelectedCells[0].Column.GetCellContent(item) as TextBlock).Text);…
-
2
votes1
answer62
viewsA: command to make a phone call
Hello, do it like this. <a href="tel:+9999999999"><img src"" alt""></a>
htmlanswered PauloHDSousa 3,509 -
1
votes1
answer537
viewsA: String Error CPF Android
Put this at the beginning of replaceAll,you are probably trying to access an INDEX in the string that does not exist. public static boolean validateCPF(String CPF) { CPF =…
-
1
votes3
answers1339
viewsA: Relationship between data with combobox
Simple We’ll call the State Combo and Citizen Combo. You will fill the state combo as you are doing now without problems, but will add an event in the COMBO STATUS, the SelectedIndexChanged in this…
-
2
votes1
answer21
viewsA: Folderdialog in Consoleapplication C#
Do so, Just instantiate and call. static class Program { [STAThread] static void Main(string[] args) { FolderBrowserDialog fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() == DialogResult.OK) {…
-
0
votes2
answers258
viewsA: Global Exception Handling with Web API 2
Add this here after registering routes. It’ll stay that way using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; using System.Web.Http.ExceptionHandling;…
-
0
votes2
answers2725
viewsA: Error: String not recognized as valid datetime
The Preview value cannot be converted to a date time, It may be that it is NULL (if your column allows this in SQL) or you are holding it wrong in the bank, I suggest you do something like this.…
-
1
votes1
answer329
viewsA: Add parameters to URL without changing the path to the file
Querystrings do not change page content unless the programmer has done something to make it happen, so: www.seusite.com.br Will display the same content of www.seusite.com.br? name=Paulo…
-
1
votes1
answer587
viewsA: Clear json array after Ajax from a PHP file
Just you reset the list of IDS in JQUERY, would look like this var antes = -1; var depois = 0; function verificar(){ users = []; beforeSend: antes = depois;…
-
-1
votes1
answer137
viewsA: Object cannot be cast from Dbnull to other types
Within the code bjDMConexao.ExecutaComando(My.Settings.ConexaoAtiva, "[dbo].[usp_sel_valor_total_premiacao]", CommandType.StoredProcedure, objApoioConexao.RetornaArrayParametros) The value returned…
vb.netanswered PauloHDSousa 3,509 -
1
votes3
answers1378
viewsA: Datetime field display in View with hours, minutes, day/month/year?
No Controller ViewData['MinhaDataMinhaVida'] = DateTime.Now; Na View <input type='text' value='<%=ViewData['MinhaDataMinhaVida'].ToString("HH:mm dd/MM/yyyy") %>'> </input> I…
-
0
votes2
answers1198
viewsA: Get network path
You can save the address in a variable in the bank or in the app.config telling you which directory you want to work with and save that address there. If necessary, you can even create a screen for…
-
3
votes3
answers18417
viewsA: How to catch the child element
You can take the value of the direct plan without having to take the parent element > son. $('.sel-plan').click(function(){ var valorDoPlano = $("[name='plano']").val(); });…
-
0
votes4
answers607
viewsA: Get full number of an input
To get the value of the element do var valorComZeros = document.getElementById('idDoSeuInput').value; You are probably doing a Parseint() and this will remove the zeros on the left.…
-
1
votes2
answers297
viewsA: Delete a data list in the EF
Hello, The mode you made will only delete 1 Record (Firstordefault) where a.ARQUIVO_GUID == fileVersao.ARQUIVO_GUID To erase them all, do something like this I did outside the visual studio, there…
-
1
votes1
answer181
viewsA: List method does not return objects
When you call meuDal.GetAllArquivo() it returns a list of File, if you want to catch 1, do so meuDal.GetAllArquivo().FirstOrDefault().XARQUIVO It will return the first record from the list, If you…
-
0
votes2
answers761
viewsA: Argued tofrangeexception with Entity
I think the mistake happens here var versao = arquivo.ArquivoVersoes[0]; Check if there is any record within Arquivoversoes Thus var versao = new ArquivoVersoes(); if(arquivo.ArquivoVersoes != null…