Posts by Tiago Silveira • 665 points
48 posts
-
0
votes1
answer77
viewsQ: Context of the this property in Typescript + Node
I have an XPTO class with the methods below, in the login method I try to call the answer treatment method, however, the this is Undefined in the context of the function, as far as I could…
-
0
votes0
answers319
viewsQ: Daughter Routes in Angular
I have a daughter route that opens a component, the component is not loaded, but the url yes what can be? App Routes.ts import { Routes } from '@angular/router' import { HomeComponent } from…
-
0
votes0
answers226
viewsQ: Save a JSON to the database or create an intermediate table?
Good night! I am in a small Dilemma, I am building an application to control events,in this application I have an event that can have several guests in the Front end I am thinking of using a…
-
0
votes2
answers175
viewsQ: Validate all inputs in SUBMIT
I have a function that validates my fields in the event focusout, however, now I need to go through all the fields in the submit of form, I know I should wear one for, but I don’t know how.…
-
0
votes1
answer56
viewsQ: View monetary values simply
good morning! What would be the way plus simple to display monetary values with Javascript? I was able to limit the decimals using .toFixed(2). Only the whole part goes something like this 10510.20…
-
0
votes3
answers608
viewsQ: Value of an input of type number
I’m trying to do an ICMS calculation and I’m having an apparently silly problem that is to take the value of inputs from my HTML, I thought the problem was in function, but when I try to give a…
-
0
votes3
answers403
viewsQ: Loop for inside a function
I have a Nav with 5 buttons, and a footer with the same amount, when clicking on the footer buttons they serve anchor to the page, but I need to compare with the Nav items to add the class "Active…
-
2
votes1
answer113
viewsQ: Overflow on off canvas menu?
I’m making a menu off canvas, in fact it is always on the screen, and when I click the button, what moves is mine main, the problem is the overflow, when I open the menu it should not let me give…
-
4
votes2
answers1687
viewsQ: How to know if the scroll position is on top of a Section?
I don’t know if it was clear, but I’ll illustrate, I have several sections on my site, and when I give scroll I wanted to perform some effects with Javascript, how do I know to know when exactly the…
-
0
votes1
answer1145
viewsQ: Fatal error: Call to a Member Function prepare() on a non-object
I am creating a class to perform querys in the bank, but am having the following error when I have use Prepared statements: Fatal error: Call to a Member Function prepare() on a non-object in C:…
-
0
votes1
answer88
viewsQ: Undefined Variable using this
I’m creating a basic class for database operations, but apache gives me two errors on line 12. Because the connection is an attribute I refer to the this. Why at the first reference when connecting…
-
1
votes1
answer177
viewsQ: Animation during ajax request
Personal I have an ajax request, Only it is taking a little while, she only gives me the return when it is successful or not, but during the request I do not show the user how the procedure is. How…
-
1
votes2
answers1661
viewsQ: Alignment of Bootstrap grid
I have 3 images, they are aligned neatly, but from the resolution of the print below they begin to be displayed one below the other even having space to be displayed, at most, one next to the other…
-
0
votes1
answer412
viewsQ: Element exceeding the size of the div
I have a col-md-4 that has a figure and a figcaption, when hovering the mouse above should be displayed to figcaption with two little buttons the effect works, the problem is that the figcaption is…
-
0
votes2
answers180
viewsQ: Ajax request in ES6 constructor
How I make a request in my constructor Ajax and assign the values of that request to my attributes? So far it’s like this and it’s not working, I’m returning 2 jsons... in the console.log attributes…
-
-1
votes1
answer444
viewsQ: Exists "Require Once" in Javascript/Jquery
I made a class in JS (Model ES6), ta working beauty, but how do I put it in an external file and give, a Require Once how in PHP? Can you do this? Thanks ;)
-
0
votes1
answer150
viewsQ: Error 405 - Cross Domain Request
Guys, I’m making a request for my page on github (tiagosilveiaa.gihub.io) for my test server, just to run the script of the same form, but I was presented a message that the protocols were different…
-
0
votes1
answer91
viewsQ: Javascript Class Implementation
Guys, I recently developed a game of raisin or repassa procedural (the code is ridiculous). I’m trying to improve it to put in my portfolio. I’m trying to implement with object orientation, would it…
-
1
votes2
answers1211
viewsA: Caption with CSS mouseover
I managed to sort it out like this: .thumbnail{ position: relative!important; border: none !important; } .hover{ margin: 0px; padding: 0px; display: block; color: white; overflow: hidden; height:…
-
2
votes2
answers1211
viewsQ: Caption with CSS mouseover
Guys, I got a thumbnail of bootstrap, I implemented within it a div caption, which should appear with the mouse on top. Only it is bursting the size of the div father, who in this case is the…
-
0
votes1
answer1011
viewsQ: Progress Bar in Jquery
Guys, I have a bar that works as follows, when my scroll is on top of the div of the bars they will start to fill. I made the css, but I’m not able to do Jquery, some hint? HTML: <label…
-
2
votes1
answer353
viewsQ: css is not a Function
I have an array of items that I want to change the css in the scroll of my Document, when I give a console.log(), the items are there, but in the loop to change their style, give me the message:…
-
1
votes1
answer87
viewsQ: Problem due to queuing
I’m trying to create a queue with structs, but it’s not working the assignment section on lines 17/18, I can’t find the error. The logic I’m using is correct? error: request for member 'nome' in…
c++asked Tiago Silveira 665 -
0
votes2
answers44
viewsQ: Functions in Javascript
Guys, my code is working, only it’s messy, if I try to organize in functions it stops working: That’s how it works: var navbar = document.getElementById('nav'); document.addEventListener("scroll",…
javascriptasked Tiago Silveira 665 -
2
votes2
answers835
viewsQ: Scroll event
I’m trying to change the color of my navbar according to the page scroll, ex: It starts as transparent, but when I give it a scroll it turns white, if I scroll up again, it turns transparent, only…
-
1
votes1
answer119
viewsQ: Bug Menu OFF Canvas
I made a menu that’s just off canvas when the screen is smaller than 768px, otherwise it appears by default on the page that works perfectly. The problem is that if I activate the menu and then der…
-
1
votes1
answer1518
viewsQ: List (static) operations c++
Good afternoon guys, I’m having a hard time understanding the operations in Statist lists, I know create and display, but how do I remove and search within the list, the sorting algorithms I’ve…
-
0
votes1
answer352
viewsQ: problem using regular expression to validate e-mail
Hi, I’m using the following regular expression to validate an email field: var filtro =…
-
0
votes1
answer182
viewsQ: Transparent Navbar Bootstrap
Good afternoon, How do I make my page start with the transparent navbar and when I give the Scroll down it stay as "inverse"? I’ve tried to give a background-color: transparent !important, but it…
-
0
votes1
answer1076
viewsQ: Manipulate the Scroll event in Jquery
Good afternoon, I have a Navbar that starts transparently i Seto this via query: $( "nav" ).css('border', 'none', 'important'); $("#hamburguer").css('background-color', 'transparent', 'important');…
-
0
votes2
answers83
viewsQ: How to instantiate an object according to a Front End event?
Good afternoon, Folks. I don’t know if my question makes much sense, but here goes. For example, I have a class that has several functions, and I have my Index.php Here we go, when I load the index…
-
0
votes1
answer95
viewsQ: Select a badge as a Jquery child element
I got a badge that’s attribute son of a button, that way: <button id="equipeum" class="btn btn-primary" type="button"><span id ="pontoum"class="badge"></span></button> In…
-
1
votes1
answer575
viewsQ: How to use an ajax return in any part of the script?
I have a Json that is returned via ajax, I wish I could manipulate this return throughout my script, outside the scope of Ajax, so I don’t have to do a function that does everything within this…
-
3
votes2
answers4034
viewsQ: dynamic url in ajax
How do I get Ajax to get the current URL? Here are the values that go to php. If I do so it works jQuery.ajax({ url: "http://localhost/jogoteocratico/consulta.php?dificuldade=1&rodada=1", type:…
-
0
votes1
answer603
viewsQ: Catch a PHP JSON Via Jquery
I have 3 pages, 1-Index, where I pass some settings; 2- data_game.php, where you query and return a json with the dice; 3- game.php, The page where the json data is displayed are displayed. My…
-
0
votes1
answer835
viewsQ: PHP Array for Json
I have this query, I need to display each column in an HTML div. Well, I need to return the data in a PHP array, pass this php array to a JS array to be able to manipulate and display them in their…
-
3
votes1
answer7439
viewsQ: Return a PDO query in an array
How do I perform a query with PDO and return the results in a array. Ex: I need to make a query that returns me 10 rows, each row has 3 columns <?php $equipe1 = $_POST['equipe1'];//Pega o Nome da…
-
0
votes1
answer948
viewsQ: Save data from a query to an array and display via Jquery
I am making a game of questions and answers, I need to make a query on the bench and I will pick 4 columns (id, question, answer and challenge) and it will return me 10, 15 or 20 lines, depending on…
-
5
votes2
answers626
viewsQ: How to hide an element after a certain time?
So, I have a div who shows up every time I submit a form, wanted to know how I make this div disappear after a while.
-
1
votes1
answer1287
viewsQ: Pull php echo into a div, no refresh
I have a div in html, it has None display, I fill in the form and the data goes to a file. php and the same gives me an echo saying that the data was entered into the database, only that I wanted…
-
0
votes1
answer1414
viewsQ: Return PHP outputs on the same page
I have a form which is validated via Javascript. It is working perfectly, it validates, sends pro .php and he gives me a echo saying it was successful. However I wanted this echo be given on the…
-
1
votes1
answer700
viewsQ: Javascript validation does not work
Person, all right? So, I have an alert div (that of bootstrap) with the None display and Hidden visibility I’m getting it by id, both in css and javascript, only it doesn’t work. It changes the…
-
3
votes2
answers457
viewsQ: How to work with PHP authorization levels?
I’m putting together a school bulletin system to train my skills in php. And I’m struggling in one part. Here’s the thing: I have 3 types of users: teacher, admin and student. The teacher can put…
-
3
votes2
answers3580
viewsQ: How to sync github?
I made some changes to a project of mine that was on Github, now I want to synchronize it with my local repository and continue editing, how do I do this?
-
2
votes3
answers267
viewsA: Meaning of the term "Fluid Layout"
Roughly speaking, in the fluid it is adjusted only to "%" of the elements, but they continue with the same structure, already in the responsive the elements can be widely reorganized to adapt to the…
-
4
votes3
answers2052
viewsQ: How to avoid repeating html code?
Good night, you guys. The thing is, I’m using the bootstrap and I would like to know how I avoid repeating the same codes on all pages, because the header and footer are the same, it would make the…
-
3
votes1
answer653
viewsQ: Query is executed, but the data does not go to the database
Good afternoon, Guys, I’m studying the PDO and with the following difficulty, the query runs (or rather, does not return me any error), only when I go to the bank has nothing, what I do? pdo = new…
-
1
votes1
answer1023
viewsQ: Call to Undefined method PDO::bindParam(), how do I fix it?
I’m starting OO studies and decided to take a look at the PDO, only it’s not working. Help me, please: <?php class Cliente { private $nome; private $email; private $telefone; protected $cpf;…