Posts by Erick Gallani • 1,596 points
51 posts
-
0
votes2
answers6462
viewsA: Create excel file with c#
I believe that to have a control at this level of an excel without buying a third lib you can use the Interop of the. net framework itself. https://msdn.microsoft.com/pt-BR/library/dd264733.aspx And…
-
2
votes1
answer251
viewsA: Create a get/set for the Cpf string, which verifies that it has 11 digits, being numbers?
I think the best option for you is to use a regular expression because you can have a better control than you are validating. And the mistake you’re making is because you’re validating outside of…
c#answered Erick Gallani 1,596 -
1
votes1
answer954
viewsA: Create Json with a large amount of Data and Return with Webapi
@Diegosilvalima I see four possible solutions. 1) Partition the search for information, that is, instead of taking the 500k lines at once, trigger requests chained asyncs that fetch 50K at a time…
-
1
votes2
answers437
viewsA: Disable Bootstrap Collapse after first click
The bootstrap Collapse has a number of events and you can use them to avoid getting bind and unbind from click events and etc. $('.panel').on('hide.bs.collapse', function (e) { e.preventDefault();…
-
4
votes1
answer76
viewsA: Request Angularjs being executed first incorrectly
The problem is that you are getting lost in the concept of async calls. See both EmailHunter.findProfessionalEmail and CheckAvailability.save make HTTP calls which by default are asynchronous calls,…
-
1
votes2
answers246
viewsA: String Comparison Problem in AJAX
There are several ways you can solve this, but the problem you are facing is scope-of-execution. See, how your request is asynchronous the Returns within your ajax call on Success make no sense, for…
-
0
votes1
answer669
viewsA: Problem with jQuery scrollTop() on Chrome
Guys, after exploring a little more and analyzing the suggestions I arrived in the following solution. <script type="text/javascript"> $(document).ready(function () { var $body = $('body');…
-
12
votes2
answers4961
viewsA: How to use such semantic tags?
Then the HTML5 tags come to bring more semantics to the page structure. But not only does the new tags have semantic properties, many of them bring new built-in browser features, for example the tag…
-
1
votes1
answer451
viewsA: Does compressing all Nodejs JS files (node_modules) decrease performance?
There are several ways to work with the dependencies of modules installed via NPM. Compressing all node_modules and deploying it is never a good option. Making reference in your direct project to…
-
1
votes1
answer814
viewsA: Javascript Progress Bar
There are a number of Ibraries that do this. I recommend you use them not to reinvent the wheel. https://kimmobrunfeldt.github.io/progressbar.js/ Using jQueryUI https://jqueryui.com/progressbar/ A…
-
0
votes2
answers332
viewsQ: How to show a call activity when the device is locked and turned off
I’m developing a Video and Voice app. What I need is to show an Activity the call request when one user tries to call another. I’m already using Firebase Cloud Message to push messages to the…
-
1
votes2
answers18294
viewsQ: How to get the date right using momentjs
Personal talk. I’m having some trouble trying to use the momentjs library to work with dates. My problem is described below. ****--------- Datetime ----------**** Timestamp recebido do banco de…
-
1
votes2
answers959
viewsA: How to remove item from array in Service after using $filter in the Angularjs controller?
If your tasks have ID’s that are unique identifiers, they cannot be removed by the same from the list? Note that when using the filter the angular has to make internal modifications to the objects…
angularjsanswered Erick Gallani 1,596 -
1
votes1
answer62
viewsA: How to make a Selectall checkbox
Renan, do it like this. $("#selectAll").on('change', function () { var checked = this.checked; $(".checkReunioes").each(function(index, val) { $(this).prop("checked", checked); }); });…
-
1
votes1
answer669
viewsQ: Problem with jQuery scrollTop() on Chrome
Personal talk. I have the following problem, I have a code that identifies when a scroll of the page occurred to be able to move up my side menu when a scroll is performed. Works on IE and Firefox…
-
3
votes2
answers171
viewsA: How to fix this error correctly?
A good tip is to always access the links that the angle generates when it points out that an error occurred. For example http://errors.angularjs.org/1.4.5/$injector/unpr?…
-
0
votes2
answers329
viewsA: how to change the date using datatables
Yes it is possible. You must use the function surrender from the datatables plugin. http://datatables.net/reference/option/columns.render#Function Example: { "data": "minha_data", "render": function…
answered Erick Gallani 1,596 -
2
votes1
answer305
viewsQ: SPA with ui Router Angular JS files very large
Talk guys. This is a conceptual doubt. Recently I started to develop a SPA application (Single Page Application) making use of the partial rendering concept, using ui Router (more information about…
-
2
votes1
answer351
viewsA: Pass data-id="@Milestones.Code" to a modal
I could do something like this. $(document).ready(function () { $(".AddAtividade").click(function () { var codigoMilestone = $(this).attr("data-id"); $("#modal").load("AddAtividade", function () {…
-
1
votes1
answer89
viewsA: Use different symbols for dots
Rod. Yes it is possible. $.plot('#placeholder', [{ data: [ [1, 1], [2, 3], [4, 4], [5, 9] ], lines: { show: true }, points: { show: true, symbol: function(ctx, x, y, radius, shadow) { if (x == 0) {…
-
3
votes2
answers191
viewsA: Customization scroll bar
Using only CSS is possible to customize. But I believe that does not work in IE (no version). At this link http://www.codeproject.com/Tips/674478/Customize-Scrollbars-using-CSS has the step by step…
-
1
votes1
answer295
viewsA: Checkbox conflicting with paging
The problem is this. On that line of your code $('#pieces tbody tr td input.checkbox:not(:checked)').on('change', function (e) {.... You are creating the event change system of the present…
-
5
votes1
answer251
viewsA: Problem with "on change" followed by "on click"
Joao, What happens is this. When you change the text, thus releasing Trigger from the textbox change and trying to click the button. The event is triggered before the click and Alert is called, so…
-
2
votes1
answer22
viewsA: Is there a better way to check how many inputs were checked?
Denali, You can do it like this: $("#btn-verifica").on("click",function(){ alert($("input[name*='pergunta']:checked").length); }); Virtually all search loops can be replaced by jquery selectors,…
javascriptanswered Erick Gallani 1,596 -
2
votes1
answer124
viewsA: Catch string first with regex
Ewerton, You can do it like this. var stringTeste =…
-
2
votes4
answers93
viewsA: Help with programming logic
Charles. Is there a real reason why you store everything in a column in the bank separating everything by semicolon? This is a bad practice mainly thinking about the normalization of the bank and…
phpanswered Erick Gallani 1,596 -
5
votes2
answers2029
viewsA: Next and Prev Arrows in Slider
Diego. I imagine the problem is this. Doing so var imgAtual = $('.img-main').attr('src'); You are taking the source of the image being displayed and assigning it to a variable and end point, nothing…
-
2
votes1
answer462
viewsA: Javascript: If dropdownlist is selected, how to load the fields?
It can be done like this The html <select id='meuDropdown'> <option value='1'>Opção 1</option> <option value='2'>Opção 2</option> <option value='3'>Opção…
-
4
votes2
answers1697
viewsA: Control view component visibility in the ASP.NET MVC 5 controller
Visualization control are the responsibility of the same view. The controller has another responsibility within the MVC, which is to receive, interpret and direct user requests by responding to and…
-
4
votes4
answers231
viewsA: Jquery find in tree
We may consider the form? If yes the dial would be like this $('.pai > .form > .filho') The selector > considers only the father’s direct children disregarding the hierarchy. Functional…
-
0
votes1
answer50
viewsA: <p:spinner> Does not accept double
Good night. In the code snippet you have placed you don’t have the spinner that is the title of your topic. According to this documentation the component accepts double…
-
2
votes3
answers1286
viewsA: while for number other than 0 in C
The problem here is that at the beginning of your of the .... while you are storing the entered value within consumer[i]. codTC and in your while you validate if the value of consumer[i]. in a is…
-
0
votes2
answers830
viewsA: Connection BD C# Sqlite
Although the Sqlite is Serveless there are some ways to do this. One that I consider cool because it actually creates a Sqlite client-server service is Sqlitening, you can see more about it here…
-
1
votes1
answer316
viewsA: Jquery Anchor extremely accurate!
You should discount the height of the menu when performing the scroll. <script type="text/javascript"> jQuery(document).ready(function($) { $(".scroll").click(function(event){…
-
2
votes2
answers1763
viewsA: How to align images responsibly with bootstrap
You must work with the classes col-x-y of bootstrap. For example, if you want them to behave differently in different resolutions do so: <div class="col-sx-6 col-sm-4 col-md-3 col-lg-3"> And…
-
1
votes3
answers3287
viewsA: Fill a text field and display the same text in another field
Hello, a very easy way to do this is by using the Binding data methodology. There are many lightweight and easy-to-use frameworks for this, for example the Ractive.js If you want examples I put…
javascriptanswered Erick Gallani 1,596 -
3
votes1
answer477
viewsA: Pause program with Timer
That should be simple. Timer timer; public Executar(int segundos) { timer = new Timer(); timer.schedule(new MinhaFuncao(), segundos*1000); } class MinhaFuncao extends TimerTask { public void run() {…
javaanswered Erick Gallani 1,596 -
1
votes2
answers2209
viewsA: Get the client id from a selected Datatable line
Hello, one way to do this is to use fnGetData For this after declaring your table you declare the get date event for Row Face (Row) of your table. table.$('tr').click( function () { var data =…
asp.net-mvc-5answered Erick Gallani 1,596 -
4
votes1
answer247
viewsA: How to manipulate iterator position
Must necessarily be iterators? You could convert to a list and so interact with the list positions. You can use the library Guava: (best performance) import com.google.common.collect.Lists;…
-
2
votes3
answers1426
viewsA: How to take data from a tag and calculate?
It has to do this yes, but it is not recommended to do all this in Javascript. This has the face of business rule, and business rules should not be exposed like this in Javascript. But, come on. To…
-
2
votes2
answers230
viewsA: Jquery find input containing specific text
Ideally, your checkboxes have a value equal to the text you want to search for. So you can use the jQuery queries $("input[type='checkbox'][value*='Teste']") For example Look at the operator *= of…
jqueryanswered Erick Gallani 1,596 -
4
votes1
answer558
viewsA: With Jquery grab all the elements
Hello, it’s very simple. Just do $('.txt-comjurosde').remove()
-
2
votes1
answer56
viewsA: Doubt about selection of items in Listview
Click the back icon, I imagine it is the default back of OS Android, correct? To do this, you must do the override of function onBackPressed within the Activity that you want the default behavior to…
androidanswered Erick Gallani 1,596 -
2
votes1
answer141
viewsA: How to find an HTML component in the DOM after using the . append() function?
Since you didn’t put where you’re creating the button click event I’ll assume what I think is the problem. The problem is this. You are probably creating the button click event using either your ID…
-
1
votes2
answers2057
viewsA: Consuming Json with Angularjs
Hello. I believe that the design of the Angularjs services fatctory is mistaken. Here is the official documentation https://docs.angularjs.org/api/ngResource/service/$Resource To do this as you…
-
2
votes3
answers308
viewsA: Centralize elements using margin
The best thing for this case, to display a catalog (a list of any items) is to use the default HTML lists. It’s semantically accurate, makes it easy for visually impaired web page reading tools,…
-
1
votes1
answer157
viewsA: A 'tremida' effect with while?
I’ll give you an idea of how you would do it. I will do in windows Forms even just so you have an idea. private void button1_Click(object sender, EventArgs e) { int x; int by; int cont = 0; x =…
-
2
votes1
answer79
viewsA: Show Carousel after loading
Hello. In the tool’s own documentation you have an option fadeThumbsIn which says the following: Enabling this will fade in the UL after Pikachoose has Loaded. You must Manually set the UL to…
-
1
votes2
answers132
viewsA: I couldn’t understand the new cpaint()
I’ll try to answer your two questions. Whenever you have questions, check the framework documentation. You said the following "what I couldn’t really understand was cp.call" here’s the link to the…
javascriptanswered Erick Gallani 1,596 -
4
votes4
answers1852
viewsA: Oracle11g - Problems SELECT command
The error message itself is telling what is happening. ORA-00933: SQL command not properly ended It means that something in the construction of your SQL made ORACLE understand that it came to the…