Posts by lionbtt • 1,211 points
36 posts
-
2
votes1
answer2937
viewsA: How to Compare Dates
You can use the Datetime Compare Method method https://msdn.microsoft.com/pt-br/library/system.datetime.compare(v=vs.110). aspx. int result = DateTime.Compare(date1, date2);…
-
6
votes2
answers6368
viewsQ: HEAD is Detached in Repository
I’m using NETBEANS and GIT. I made a few changes to when the commit is giving this message: HEAD is Detached in Repository My repository is like this:…
-
1
votes1
answer1665
viewsQ: How to know the type of the DOM object
I wonder if via JS or Jquery, there is a way for me to identify the type of DOM object I am manipulating. For example, I make the following selector: $('#filtos select, #filtos input').each(function…
-
2
votes1
answer902
viewsQ: Windows user on IIS
I’m trying to log in to a base SQL Server 2008, with the windows user who is accessing my site published on IIS. I’ve already set up Web.Config for windows authentication, set up the application…
-
4
votes2
answers2566
viewsQ: Login with Windows Authentication on IIS
I have a base Sqlserver 2008 where all users can connect to it via Windows domain, this works properly via SQL Management Studio. I am making a C# Application in MVC, and I wanted that when the user…
-
3
votes1
answer133
viewsQ: Order a LIST based on another LIST
I have a class that has a property that is another class. Follow example: Menu Class public class Menu implements Serializable { private static final long serialVersionUID = 1L; private Long id;…
-
0
votes1
answer984
viewsA: Upload C# API file
Well, I solved my problem by updating the Framework. Net4.5.
-
0
votes1
answer984
viewsQ: Upload C# API file
I have a C#MVC application, which is a web system. And I have a C# API that receives calls from the Site. I need to send a file from the Site to the API, I did the code as follows: Sending Site Code…
-
7
votes3
answers6508
viewsQ: Difference in postgresql date months
I need to catch the difference of two months dates, for example 16/03/2013 until the date 16/07/2014. If I do select extract('Month' from age(data1, data2)) What will return is a result 4, as it…
postgresqlasked lionbtt 1,211 -
0
votes4
answers3610
viewsA: Receive an array in the controller from javascript
@Cesarmiguel, the error you are having has nothing to do, but follows a second option to perform this process via ajax and using Json. var myArray = gvSortingListagemGARs.keys; var jsonString =…
-
2
votes1
answer475
viewsQ: Search for Postgresql similarity
I wonder if I can do a similarity search in a field like character varying in Postgresql. For example: The name I have saved in the table in the name field is Tauros and I’m looking for Taurros. I…
postgresqlasked lionbtt 1,211 -
0
votes2
answers1597
viewsA: Remove JS file via JS
Guys, first I apologize because the example was wrong. The problem of making two calls to the same method is that I was using the method .on() of Jquery, to the same button. Example Menu.jsp:…
-
2
votes2
answers1597
viewsQ: Remove JS file via JS
I have a site that has the fixed side menu and the other part is loaded the pages. For each page of the site I made a js file. For example: Home.jsp I have the home.js file, Contacts.jsp I have the…
-
3
votes1
answer701
viewsQ: How to not filter only a folder in JAVA - Filter
I’m using a class inherited from Filter in Java to do login control. I did the mapping on Web.xml as follows: <filter> <filter-name>ValidacaoLoginFilter</filter-name>…
-
1
votes3
answers1762
viewsA: Php MYSQL query several tables
To illustrate the use of JOIN as @perdeu falou, follows <?php include("conectar.php"); $quantidade = 1; $pagina = (isset($_GET['pagina'])) ? (int)$_GET['pagina'] : 1; $inicio = ($quantidade *…
-
2
votes6
answers293
viewsA: How to visually indicate which fields are fillable?
The way you changed the background color was cool. It would only put in the blocked fields a very light gray color, so it is out of focus of the user.
-
0
votes4
answers6021
viewsA: Exchange text by clicking on it to display/hide an element
You can use the .html() also if wanted to put markers HTML. The deference between .html() and .text() is that the first one accepts HMLT and XML tags. The second one will convert HMLT tags to text.…
-
1
votes5
answers10769
viewsA: How to mark and unmark a row from a table by clicking on it?
Or you can use a global variable to store the selected object. $('<tr>').click(function () { objMarcado = this; $(this).addClass('colorir'); });
-
4
votes3
answers5715
viewsA: How to customize the Delphi editor?
Guy has a good plugin and with a lot of use Cnpack. I use it in the company where I work and help a lot. Do not be alarmed, he is Chinese. But no problem can install and configure. It is also very…
-
29
votes8
answers95476
viewsQ: How to check with jQuery if there is a checkbox checked?
I would like to know which Checkbox is checked with Jquery. To catch all the checks I made the following code var checado=false; $(obj).find("input[name='analisar']").each(function(){…
-
5
votes2
answers1741
viewsA: How to fade icons using jQuery?
Effect fadeIn() and fadeOut() only messes with the opacity element. You will have to change the image. What you can do is by passing the mouse sends a FadeOut() in the image changes it and sends a…
-
3
votes2
answers2143
viewsA: Take measurements of an element and play in variables? How to do?
Has by javascript. Using jQuery you can get the size of a div, for example, like: var largura = $('div#id').width(); The height: var altura = $('div#id').height();…
-
1
votes3
answers3981
viewsA: Problem with Hover in CSS
It may be that boostrap is overwriting your CSS. Try putting the !importantein front of the rule :hover. Ex: .info_table:hover { background-color: #f1c40f !important; }…
-
1
votes4
answers7550
viewsA: jQuery identifying jQuery’s own change
You don’t have a input with the id="input". Either you correct the same as @bfavaretto spoke, or at the very click of the button you can call the input alert. Example: $('#botao').click(function(){…
-
0
votes3
answers2806
viewsA: How to Change Windows Variable Records
You can assemble a file .reg also, and run it. For example: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SeuREG\CHAVE] "valor1"="conteudoValor1"…
-
1
votes3
answers2188
viewsA: Use symbol in input text, and disappear when typed
The response of @Sergio is a very easy and usual way to do it. However, I used to rather put the image outside the input and put a negative margin, so it of the impression that is inside. Ex:…
-
1
votes8
answers4914
viewsA: Do not allow saving image of a web page
If the idea is to hinder the options provided will help you. However what is traveling on the net is not protected, IE, in the HTTP request the image is there. In firefox if you access…
-
1
votes2
answers1212
viewsA: How to take background-color from padding?
The padding is a space within the container, that is, if you have a background color it will be displayed. I believe it is not possible to remove the background color only from a part. But as I said…
-
1
votes2
answers546
viewsA: How to Fade Only Item Clicked
What must be happening is that you are clicking through a class, assuming the following HTML code <td> <input type="button" class=".botao"></input> <div…
-
2
votes5
answers1657
viewsA: How to add class to the next element when clicking the button?
The way is the same, but take care .next() takes the next element or: <script> $('.primeira').next(); </script> <div class="primeira"></div> <div…
javascriptanswered lionbtt 1,211 -
1
votes3
answers2323
viewsA: How to know if you are resize in width or height?
You can use Jquery UI. It provides more functions on resize. For example, as the function returns the Object and in this object we have the original propertySize. So it will be easier to discover…
-
14
votes8
answers26648
viewsQ: How to backup Mysql Database Diaries?
Is there any free tool, or even a script (.bat) that I can use to make a backup automatic from my database? I wish that backup was generated by saving a single file .sql.…
-
0
votes4
answers1904
viewsA: How to control when localstorage data expires?
localstorage only deleting when it expires or the user cleans manually. localStorage will keep the data recorded until it is removed directly, you can close the browser, restart the computer and the…
-
-2
votes18
answers139957
viewsA: What is the best way to center an element vertically and horizontally?
For me one of the best way is to put css top:50%; left:50%; Then put negative margin, half the size of your element margin-top:-200px margin-left:-200px The disadvantage is that the object has to be…
-
0
votes2
answers1705
viewsA: Hide widget if empty
Set the div as default display:none Then when filling the div with the content put the display:block If you use Jquery $(elemnto).show() $(elemnto).hide()…
-
1
votes6
answers18042
viewsA: How to make a Custom Scrollbar?
I use the plugin jQuery custom content scroller Very good plugin and easy configuration in your layout.…