Posts by LeAndrade • 8,475 points
404 posts
-
1
votes1
answer258
viewsQ: How to setTimeout in form Submit? If there is such a thing
I have the following code and would like to know how to após o click no button enviar display the message Login performed successfully! and after 3 seconds the form is sent: function…
javascriptasked LeAndrade 8,475 -
1
votes4
answers3804
viewsA: How to align image of Carousel Bootstrap?
This is what you want? $('.carousel').carousel() .navbar { background-color: yellow; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script…
-
0
votes1
answer55
viewsA: Open new page only the top of the main page
Can you do it using the method load jQuery. In your HTML: Let’s assume that you already have a page with the menu and the slide and here is another page where will be loaded this page with its menu…
-
1
votes2
answers500
viewsA: How to add invalid status in html input fields?
I made an example to check if what the user has already typed is equal to the bank value. $.getJSON('emailbdvalue.php', function (data) { email = data.dado.email; // aqui tráz o email cadastrado no…
-
2
votes3
answers159
views -
1
votes2
answers1783
viewsA: Centralize input within a div using materialize
Try putting this in your html: form class="col S6 offset-S3" Note: Sent by cell phone
-
0
votes1
answer104
viewsA: href with target Blank on jQuery
Your question face brought up something you didn’t know, the Html tag target was discontinued by w3c learn more here. So now it is indicated to use the tag rel with the value External thus:…
-
0
votes3
answers48
viewsA: Spans block not that fit the size!
Use breakpoints to adjust to each screen resolution. $(document).ready(function(){ function animaTextos(){ var interval; var contador = 1; var funcao = function() { var corrente = $('div.slider…
-
0
votes3
answers3126
viewsA: How do I customize the color of Bootstrap’s Navbar?
This pq the class in HTML is navbar and in the CSS is navbar-default, so does not apply colors. Remove the default of the navbar classes in the right-working CSS. .navbar { background-color:…
-
1
votes2
answers42
viewsA: Input value of a form
Dude I’ll give you a basic example here and hope it helps you. Page you take the value to transfer to another page: <input type="text" id="texto"> <a href="mostraDados.html"><button…
-
0
votes2
answers34
viewsA: Javascript/Jquery effects not working when creating table in HTML
$(document).ready(function(){ var teste = $("#teste").hide(); $("#hide").click(function(){ $("p").delay(200).hide("slow"); }) $("#show").click(function(){ $("p").delay(200).show("slow"); })…
-
0
votes2
answers8310
viewsA: floating div accompany page scroll
Dude I made an example well even basic, I think more basic than this impossible. scroll the slider to see the result. I only used the property display with the value Fixed. div { height:900px; }…
-
2
votes3
answers121
viewsA: List value of checkbox items
Guy made an example here looking like what you want, showing and hiding the choices made by the user: $(document).ready(function() { $('input[type="checkbox"]').click(function() { var inputs =…
-
0
votes1
answer119
viewsA: And in what context can the use of JSON be advantageous compared to the use of XML (in web applications)?
JSON The JSON object is sometimes used as a "communication bridge" because it is light and fast, unlike the XML that has a sharper structure. The way the JSON object is manipulated is also one of…
-
0
votes1
answer27
viewsA: Doubt regarding reporting version in Bower
Next thing I know: ^ means that Bower may update packages only for versions that change the third position of the version (i.e., patch updates that maintain compatibility, bug fixes, etc...).…
-
1
votes1
answer41
viewsQ: Doubt with jQuery function
How this function jQuery finds the tag em to execute the method prependum() ? var em; $("#btn").click(function() { if (em) { em.prependTo("pre"); em = null; } else { em = $("em").detach(); } }); em…
-
1
votes2
answers2296
viewsA: Bootstrap - container with two columns and two rows of the same size
I don’t know which Bootstrap is using, if it is the one before the 4, to do so. Click Run and Whole Page, to view as on desktop screen. video { margin-top: 20px; background-color: #ccc; width:100%;…
-
5
votes2
answers166
viewsQ: Real difference between Call and Apply methods
What is the difference between the methods call and apply? I could not identify the difference where one separates the arguments and the other generates a vector for the arguments: function scope()…
javascriptasked LeAndrade 8,475 -
0
votes2
answers861
viewsA: What is the difference between :Nth-Child and :Nth-of-type?
The selector: Nth-Child, means to select an element if: É um elemento de parágrafo. É o segundo filho de um pai The:Nth-of-type selector means to select an element if: Selecione o segundo parágrafo…
-
0
votes1
answer57
viewsA: How to place a value of a var inside an array item?
Guy just pass the variable number inside the vector as Roberto de Campos said, what you have to see is what google.visualization.arrayToDataTable() can receive as parameter. Type pq has a bracket…
-
0
votes1
answer42
viewsQ: Objects with javascript
How do I access data from this Json file. For example return the name: { "potions": { "1": { "id": 1, "name": "Aging Potion", "image": "aging-potion.png", "price": 29.99, "effect": "Causes the…
-
0
votes3
answers4107
viewsQ: How to implement Bootstrap 4 in Angular CLI
I’m having trouble using Bootstrap with the Angular CLI. I am using ng-bootstrap and I am following all the recommendations of the site, but without success, someone knows how to use? installation…
-
1
votes2
answers3232
viewsA: How to implement an Alert in the angular HTML page?
The most indicated guy in Angular applications is vc put all code javascript (typescript) in the midia-cadastrar.component.ts That’s what it’s for, HTML is for presentation only: HTML <button…
-
0
votes1
answer40
viewsA: Fix Bug of a simple Jquery function
It is so pq you put to show the larger image when scrolling the page here $(window). on('scroll', Function() and not when the page is loaded in a width greater than 1024. Try to put like this: if…
-
0
votes1
answer48
viewsA: Error opening the bootstrap datapicker
If you want something simple, but it works, use the plugin jQuery, has how to style it too. see more here $( function() { $( "#datepicker" ).datepicker(); } ); <script…
-
0
votes2
answers1216
viewsA: Header and html footer with css and jquery for all pages divided into sub-folders
Try calling the function in Html itself: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet"…
-
0
votes1
answer638
viewsA: Javascript - Opening new window with new tab
<a href="javascript:novaJanela('https://www.google.com')">Clique aqui para abrir</a> <script> function novaJanela (URL){ window.open(URL,"janela1","width=800, height=600,…
-
0
votes3
answers1976
viewsA: how to center a <H2> tag vertically inside the div
In case you wanted this result: h2{ text-align: center; } <div class="col-md-2 buttom-area"> <div class="text-center button-disciplina button-border"> <h2>Realizar…
-
0
votes1
answer44
viewsA: How do I manipulate team values in my JS?
$('#btnSoma').click(function(){ var inicio = $('#inicio').val(); var iniSplit = inicio.split(':'); var inic1 = iniSplit[0]; var inic2 = iniSplit[1]; var fim = $('#fim').val(); var fimSplit =…
-
1
votes2
answers123
viewsA: Hide checkbox and display other
Have you tried using the method toggle jQuery? See more here $( "button" ).click(function() { $( "p" ).toggle(); }); <script…
-
0
votes2
answers60
viewsA: Add data from an html table
Dude I’m a little out of time on the job so I did kind of fast, it’s a way to do, there are others, even more elegant, I used jQuery, see if this code meets you //var elements =…
-
1
votes1
answer523
viewsA: validate forms as a function of select
There are many ways to do it, I used jQuery and jQueryMask which is a plugin that formats inputs according to the rule that we defined, tbm could be done with regular Expression.…
-
0
votes3
answers108
viewsA: Problem in centering images
One of the many ways for you to center an image is to use margins and percentages that unlike pixels, does not depend on the screen resolution. .img { margin-left: 35%; } <img…
-
3
votes1
answer129
viewsQ: Error pushing on gitbash
Is showing the following error in the git bash: $ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access…
-
1
votes1
answer87
viewsA: click on jquery text field
Arthur if you can use css frameworks for the application of to use thus with Materiallize: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>…
-
0
votes2
answers357
viewsA: I want an image to close and start a five-second countdown
Utilize setTimeout javascript: jQuery(document).ready(function($) { if ($.cookie('popup_facebook_box') != 'yes') { $('#fbox-background').delay(5000).fadeIn('medium'); $('#fbox-button,…
-
1
votes1
answer34
viewsQ: How do I get the id of an input created by jsonform?
Personal how do I get the id of an input created from a Json with the Jsonforms documentation plugin here. It uses Schemas and Forms to dynamically assemble html, but I’m not able to work with input…
-
3
votes3
answers430
viewsQ: Return method in Java
I don’t know anything about Java. I would like to know how to get the return value of the variable dv that is within the method Base10() and use it on main. Could someone help me? public class…
-
0
votes2
answers57
viewsQ: NAN as a result of a function
I have the following very simple javascript code, however, I would like to know pq the return result is being NAN? HTML: <label for="pretensaoMes">Pretensão ao Mês</label> <input…
javascriptasked LeAndrade 8,475 -
0
votes3
answers2664
viewsQ: How to use sessionStorage?
I am trying to pass the value of an input from one page to fill another input on another page using HTML5 sessionStorage, I would like to know why this code is not working. //função que captura o…
javascriptasked LeAndrade 8,475 -
0
votes1
answer156
viewsQ: Autocomplete with two types of data
How do I load two types of data in the same input that is receiving an autocomplete (Eayautocomplete plugin). I would like to appear the options by cnpj number and company social reason. No regular…
-
0
votes3
answers1008
viewsA: How to list objects in Javascript
Try it like this: function (data) { var keys = Object.keys(data); for (var i = 0; i < keys.length; i++) { } }
-
-1
votes3
answers455
viewsQ: javascript onclick event with three functions
Pq is only working the last function of the addeventlistener method in my script. I’m developing filters in a Datatable that when I click the search button it filters the information in the table.…
javascriptasked LeAndrade 8,475 -
1
votes2
answers884
viewsQ: Popular inputs with Json file in jQuery
I would like to know how to fill in some inputs through data from a json file with jQuery. Follow the data in Json: {"data":[…
-
0
votes3
answers527
viewsA: Problem with URL in Angularjs
You have to put the base href="/" tag on index or home.html and put the $locationProvider parameter inside the config function on the route and call the parameter like this:…
-
0
votes1
answer161
viewsQ: Url loads characters ! #%2F and does not load the correct view in Angular
I am at my root index.html and loads normal, but when I type the # more the / and a view for example the view tests the url: index.html#! #%2Fview-test. I would like to know the pq! Follow the code…
-
1
votes1
answer1278
viewsQ: Angular application does not load in browser
I am having trouble loading my application in the browser. The url works but the screen does not show any content, does not show the view html. Follow the index.html: <!DOCTYPE html> <html…
-
1
votes1
answer520
viewsQ: How to run an Angular application with Node.JS and Express
How do I link an angled login application with the Node.JS and Express server. How do I test (pull) the application to the server. The server is running normally on port 3000: var express =…
-
0
votes1
answer103
viewsQ: How to repeat Json data in a list
How to list all students(name), series(degreeId) and classes(classId) in this Json file. [ { "id":1, "ra":12346, "name":"Pedro Santos Neves", "degreeId":1, "classId":1 }, { "id":2, "ra":456798,…
-
1
votes1
answer595
viewsQ: Load Json file with Ajax
How to upload a Json file to my html. The console does not show any error, but no field is filled with data from the Json file. <h3 class="center">Tela de alunos</h3> <div…