Posts by andrepaulo • 1,631 points
48 posts
-
2
votes1
answer1598
viewsQ: Validation of RNE (National Aliens Registry) or CIE (Alien Identity Card)
Does anyone know how I can validate the CIE (Foreign Identity Card) or RNE (National Aliens Registry) number? I believe there are two names. Language-independent.
-
0
votes1
answer51
viewsQ: Xcode update - loss of all simulators
I was with version 7 of Xcode and just updated to version 8.2.1 and all iOS simulators are gone. Is there any way I can make them appear again in the Xcode without having to download them all again?…
-
2
votes1
answer1926
viewsA: Count the number of selected items in a Listbox
I believe that code should help you. Dim intIndex As Integer Dim intCount As Integer With ListBox1 For intIndex = 0 To .ListCount - 1 If .Selected(intIndex) Then intCount = intCount + 1 Next End…
-
3
votes2
answers3159
viewsA: Insert icon in input text with HTML and CSS
When you focus on your text field: you use the pseudo class :focus to remove the background-image of your input Declare in your css: input[type='text']:focus { background-image: none; }…
-
3
votes2
answers755
viewsA: Pie div effect
This is the idea: You get the width div 2-1 and apply to the edge of div 2-2. even if the user resizes the screen, you will not lose the effect as it is linked to window.resize tb. I don’t know if…
-
1
votes2
answers448
viewsA: SQL Injection or Script Injection - MVC-5 - Is it a concern?
Instead of concatenating strings to form your query. utilize Parameters.Add of SqlCommand to prevent Sql Injection. Follow below example applied to your code: string query = "SELECT * FROM TABELA…
-
1
votes1
answer31
viewsA: Horizontal walking form does not work
You can use the animate() jquery to do this: $("#box1").animate({right: '0px'}); and to hide again: $("#box1").animate({right: '-450px'});…
-
0
votes3
answers149
viewsA: How to replace the extension but remain the title
I believe this is the part, if I understand what you want to do. you can use the method replace of strings in javascript. href = href.replace('.webm','.mp4');…
-
1
votes3
answers611
viewsA: Calculate values within all inputs with class='Quant'
You can do the math with jQuery itself. When you use $('.itens_total') you will be paying for all items that possess the class .itens_total That is, all your inputs according to your code. The…
jqueryanswered andrepaulo 1,631 -
3
votes1
answer1472
viewsA: How to change content within div with Ajax/Jquery?
You can use two methods in jQuery: .text $('td.descricao').text('aqui vai o conteudo text'); .html $('td.descricao').html('<p>Aqui vai seu <strong>HTML</strong></p>');…
-
2
votes2
answers1579
viewsA: Vertical alignment of columns
Just add display: flex and align-items: center; in your class "father" .row I added a few more css for compatibility with older browsers: display: -webkit-flex; /* Safari */ -webkit-align-items:…
-
1
votes2
answers48
viewsA: Show different values in a table - JS/Html
Having selected your dropdown: Ex: $('#ddl-meu') You can use the event change instead of click boot. Then you check which value was chosen, and call the method you need. is the part of switch in the…
javascriptanswered andrepaulo 1,631 -
3
votes1
answer184
viewsA: List more borrowed books
To list all books you need to use LEFT JOIN instead of INNER JOIN, for the LEFT will bring you all the records from the table on the left (first table). A to show what has more to what has less, you…
sqliteanswered andrepaulo 1,631 -
3
votes1
answer2321
viewsA: disable double click across site?
You can disable the element button e.g. after the click and enable it again after 2 seconds (eg.) function myFunction(e) { document.getElementById("linha").innerHTML += "<p>adicionado…
-
1
votes1
answer28
viewsA: Selecting disabled elements
that’s what you’re looking for? option[disabled]{ color:red; background:rgba(255,0,0,.2); } <select> <option disabled selected>1</option> <option>2</option>…
-
1
votes1
answer235
viewsA: Is it possible to use the same column name as a parameter name on a cursor?
It is not possible because according to oracle documentation for PL/SQL, when column e (parameters or variables) has the same name, column takes precedence. If a SQL statement References a name that…
-
0
votes1
answer37
viewsA: Remove image fade
To make the image not darker by hovering the mouse you can override the CSS rule by placing this code below in your file custom.css .thumb-info .thumb-info-wrapper:after { background: unset; }…
-
3
votes1
answer711
viewsA: Command to comment multiple lines in the Xcode?
command + /, will comment on the selected lines
-
2
votes1
answer29
viewsA: What would be the equivalent of Javascript’s "with" in Coffeescript
Coffeescript eliminated the use of with, if you try to use you will receive a message from syntax error. The very use of with javascript is not recommended, it is considered deprecated and should be…
-
4
votes3
answers4539
viewsA: Force client-side update after site update
Something I saw in that soeng’s response Taking the part that really matters: When these values are provided through the response headers of the requests, they take precedence over the tags…
-
7
votes6
answers28831
viewsA: How to limit an input of type Number to only 3 characters?
By definition of HTML the element input with type="number" the property maxlength is ignored. as you can see in MDN documentation maxlength If the value of the type attribute is text, email, search,…
-
2
votes1
answer933
viewsA: How to align text in responsive?
Alter the margin in his @media screen and (max-width: 768px) for a lower value. @media screen and (max-width: 768px) /* style.css:376 */ .bemvindo { margin: 10px 10px; flex-direction: row;…
-
2
votes1
answer1502
viewsA: How to create a rounded button in Xamarin.Forms
You can use the property BorderRadius to create a button with rounded corners: Following documentation of Xamarin: <Button Text="BlueButton" BorderColor="Blue" BorderRadius = "5" BorderWidth =…
-
5
votes1
answer584
viewsA: Error comparing two strings with float value
You are comparing 2 strings using the < operator because Voce is using the method .toFixed(2) after executing the parseFloat You would need to compare the two values directly as Number and not as…
-
1
votes1
answer944
viewsA: Show Alert on select
You can check whether in the string inside your option which has been selected has the word Devendo, it shows the Alert. Using jQuery is an option: $('select').on('change', function(){ if(…
-
2
votes1
answer523
viewsA: Insert data into a table with Foreign key in the ID
In fact Voce needs to pass the code of the client Voce wants to associate to the phone Voce is inserting, based on its code Voce needs to do this: Insert the field ID in your INSERT string.…
-
1
votes3
answers9803
viewsA: How to pick up values contained in a table?
The attribute id html should be unique, so it just brings the first. You could select your items and from that selection. you could go through with the method $.each(function(index, item){}) jQuery.…
-
0
votes1
answer79
viewsA: Doubt with Angularjs
Missing Voce put the ng-app="app" to start and render on your page. Where is <div data-ng-controller="clienteController"> Should stay <div ng-app="app"…
-
0
votes2
answers1042
viewsA: Breaking line array jQuery
rather than concatenate \n Voce must concatenate <br/> once the contents Voce is printing eh HTML. You must also call instead the method .text(descr) call the method .html(descr) var nomes =…
-
0
votes1
answer157
viewsA: Remove input requirement with anguljar
You can use the ng-required , that takes an expression and adds or not the required according to the result of its variable. <input type="number" data-ng-model="telefoneInput"…
-
1
votes2
answers551
viewsA: Background printing issues using bootstrap in Firefox
I ran some tests here at Chrome and saw that it prints without backgrounds when the option background graphics is disabled. It gets on the screen that you will confirm the printing, choose printer…
-
3
votes3
answers5508
viewsA: Html text box value to be received by javascript variable
You can do it this way, but using the document.write will make you rewrite your page, making your controls disappear. function writeItDown(btn){ var suaVariavel =…
-
2
votes1
answer201
viewsA: Open link in new window
as soon as you receive the reply you can call this method by passing the url: function openInNewTab(url){ window.open(url,'_newtab'); }
-
1
votes1
answer267
viewsA: Java programming for cards
Chama se Javacard Oracle Javacard According to wikipedia: Java Card is a technology that allows small applications (applets) based on Java platform run securely on smart cards and similar devices…
javaanswered andrepaulo 1,631 -
1
votes2
answers65
viewsA: Listing information with select
your error is within the function iniciar() in bairro.seleciona = bairro.opcoes[0]; must be bairro.selecionado = bairro.opcoes[0]; and also change ng-model="bairo.selecionado" for…
-
5
votes1
answer3305
viewsA: How do I uncheck the previous radio button after selecting another one?
If you define the content of the attribute name inputs in an identical way. Ex: name="myGroup", by default you will have the desired behavior. Goes below <fieldset>…
-
7
votes3
answers83000
viewsA: Format currency with mile separator
I use this polyfill in my projects. it creates a method that you can use on all your variables that are of type Number Receive as parameters: Number of decimals The symbol you wish to use The symbol…
javascriptanswered andrepaulo 1,631 -
3
votes1
answer69
viewsA: How to put favicon in xml page?
You need to put your file favicon.ico in the folder where your file is .xml. Don’t forget to always clear the cache for testing
faviconanswered andrepaulo 1,631 -
1
votes2
answers93
viewsA: Click event does not work
You need to assign the right function to the eventHandler: In just one of the div’s you put onclick="Evento(this)" when you should have put onclick="myFunction(this)" and you need to put in the…
-
0
votes1
answer107
viewsA: Javascript Sharepoint Compare Data Field with Date Today
I believe this will help you, you must take your date, turn it into an object Date javscript and then yes compare. As you want to disregard the hours, it was necessary to create a Date variable from…
-
0
votes1
answer278
viewsA: Problems with navbar
The problem is in your CSS you need to remove your text-indent: -999px; and the width: 10px; You can check by clicking here li{ display: inline-block; height: 10px; margin: 1px; border: 1px solid…
-
2
votes2
answers792
viewsA: SELECT by word in sql server without using Full Text Index
According to that reply from Stackoverflow Since you cannot use Full text, this should help SELECT * FROM table WHERE '.' + column + '.' LIKE '%[^a-z]parameters[^a-z]%' EDIT I did a little more…
-
9
votes1
answer5630
viewsA: Writing on Javascript screen
Following the example of the link posted by @Juniornunes. The Author left forgotten some parts how to declare the variables canvasWidth and canvasHeight referring to the size of the area that you…
-
1
votes1
answer177
viewsA: Doubt Scope of Javascript Variables
You must only execute the rest of the code, after receiving the asynchronous response from your ajax call, ai Voce can take the item into the Function and take the values directly. I couldn’t test…
-
4
votes1
answer83
viewsA: How and why does getElementById not perform on page loading?
change your code to document.getElementById("recebeProduto1") for the getElementById is an object method document <!DOCTYPE html> <html> <head> <title></title>…
-
2
votes3
answers135
viewsA: When we include a script or CSS file in the HTML document, does an HTTP request occur?
Yes, there’s an http request for every call. On the question of performance it may be that yes, if it is something small, and it may not, if it is a lot, because instead of making several small…
-
0
votes1
answer118
viewsA: Check whether the Column has an Empty or White value
How are you using the $.each to go through your input array, you need to check whether the current element is filled or not $(el).val() and do not use a new selector via id $("#tn_NEX").val().…
jqueryanswered andrepaulo 1,631 -
5
votes2
answers547
viewsA: Parse with quotation marks in the middle
You need to "escape" the quotes you have in your string using the backslash \ before the quotation marks. { "PT":"Descrição com \"aspas\" quebra o meu código", "ES":" ", "FR":"fr ", "EN":" en" }…