Posts by Victor Alencar Santos • 476 points
16 posts
-
1
votes0
answers266
viewsQ: Load header and footer with . load() and make it visible to Google
I’m setting up a pure HTML site, which has the following structure Whereas I don’t have a Master Page like in ASP.NET, I need to replicate the header and footer to other pages using the function…
-
1
votes1
answer274
viewsA: Hide element after it is loaded on page
I managed to solve! I hadn’t stopped to think that adding a css display: none with the selectors body > img:last-child and body > img:nth-last-child(2) would cause only these images to apply…
-
1
votes1
answer274
viewsQ: Hide element after it is loaded on page
I have on my page the following google script: <body> <!-- Google Tag Manager --> <noscript> <iframe src="//www.googletagmanager.com/ns.html?id=GTM-abcdef" height="0" width="0"…
-
1
votes1
answer262
viewsQ: jquery inputmask does not accept quantifier in "Validator" function
I am trying to make a customAlias to use with jQuery Inputmask, but I am facing the following problem: My input: <input id="input-field-nome" data-inputmask="'alias':'customAlias'" type="text"…
-
1
votes2
answers1679
viewsA: Calculate Body Mass Index in C
You’re making imc = height / (weight * height); i.e., height / (weight * height). It should be imc = height / (weight * weight);
canswered Victor Alencar Santos 476 -
4
votes1
answer84
viewsA: Site with horizontal navigation
Metroui is a front-end framework that has an interface similar to Windows 8. For your occasion, the Tiles section fits perfectly. An example of a page using Metroui…
-
1
votes4
answers447
viewsA: How to change the link in the mobile version?
I know three ways to do that: 1 - Using a regular Expression to verify which browser, as Gabriel Rodrigues said, but I find a code not understandable due to the size of the regex. window.mobile =…
-
7
votes1
answer1164
viewsQ: Dropdown containing image on the right
I am using Bootstrap to make a bar at the top of the page, and I have a problem: What I need is to open the dropdown, have a list of options, and an image next to it that always has the same size of…
-
2
votes2
answers22863
viewsQ: Div’s with input and label on the same line
My situation: I have a form in which the fields are arranged vertically, and with the label aligned to the right and left, as shown in the image below: I wish to leave at least 2 fields per line for…
-
4
votes3
answers2946
viewsQ: Doubt with Javascript Replace
My situation: I have an input masked that way: 0,0000 %. However, to be able to validate as desired, I need to use a replace, changing the comma by a point, removing the % and then treating the…
javascriptasked Victor Alencar Santos 476 -
2
votes2
answers879
viewsA: major/minor in vectors
For this, I believe that the most efficient way would be to create a third vector with size 10, insert the values of the previous 2 vectors in this third, and then perform the ordering. For that…
canswered Victor Alencar Santos 476 -
2
votes1
answer448
viewsQ: Problem with CSS button placement
Good morning! I am facing problems with the placement of a CSS button. When the form has not yet applied any validation, it remains in the correct position, but when validations are applied (the…
-
3
votes2
answers691
viewsQ: Change phone mask
Hello! I’m trying to alter a mask from a field of my form. Below in the field highlighted in blue, is as it is currently, and in the second field is as wish it remains (without the space between the…
-
0
votes1
answer604
viewsQ: Problem updating database data using LINQ to SQL
I am developing a C# ASP.NET application in which I search for certain database data, play them in a form, and by clicking 'Save', I want the bank to save the changes I made. I am using Linq to SQL.…
-
0
votes1
answer2527
viewsQ: How to show database data in Textboxes?
Hello! My scenario is as follows: I am developing a web application in C# ASP.NET, and I am having some difficulties to bring the database data (via LINQ to SQL) to the page controls. Below one of…
-
1
votes2
answers624
viewsQ: How to apply jQuery Validate rules to multiple fields at once?
I have an ASP.NET form and am using jQuery Validate to apply validation rules in the fields. All my fields have a common rule (required: true) but I couldn’t find a way to apply it all at once.…