Posts by Julio Hintze • 188 points
16 posts
-
2
votes3
answers274
viewsA: Placing two functions within one
These are separate operations and, with what Javascript offers, you can’t (directly) perform both operations in one line. However, there is a jQuery flame library that can help you decrease the size…
-
3
votes2
answers196
viewsA: How can I test if a Nodejs Response is still alive
Lauro’s answer is correct, but his code will not work precisely by while (true). To create an asynchronous loop, you can use recursion with setTimeout: let app = require('express')(); let responses…
-
0
votes2
answers620
viewsA: localStorage save some fields
var nome = "João"; // insere o valor da variável "nome" no localStorage localStorage.setItem("nome", nome); // printa o valor da varável "nome" direto do…
-
0
votes1
answer32
viewsA: Problem : Dynamic array x index value
I believe your loop execution condition is incorrect. If you write for (var i = 0; $ws_array_row.length; i++), you’re talking to JS running your loop while $ws_array_row.length for Truthy (which…
-
0
votes2
answers324
viewsA: How to access parameters received from a class in an external javascript function?
I hope I have understood your question. There goes: After instantiating the Helper class, just use .user to access the property. class Helper { constructor(user) { this.user = user; } } var helper =…
-
1
votes2
answers2537
viewsA: Page with Smooth Scroll
There is a method in HTML elements called .scrollIntoView(scrollIntoViewOptions). With it, it is possible to make the browser scroll the page to the element. The scrollIntoViewOptions is an object…
-
0
votes2
answers90
viewsA: Changing title of div
In the Success function, see if the this is really the object you want to change the title. If it is not, you can declare a variable just above the $.ajax, as var $el = $(this);, and within the…
jqueryanswered Julio Hintze 188 -
4
votes1
answer1083
viewsA: Angular 7 Router appears the page I want but does not remove the previous page and is both at the same time
As Victor Henrique said, the only page you have set to be triggered by a route is the signup page. All other components are fixed on the main page. To fix this, you have to create routes to the…
-
1
votes1
answer456
viewsA: Viewchild / Viewchildren in a Directive
I managed to do what I wanted using only Directives. I created two Directives: A List and the Listitem. At first, I used the exportAs as an option in the decorator, so I could create a reference to…
angularanswered Julio Hintze 188 -
1
votes1
answer456
viewsQ: Viewchild / Viewchildren in a Directive
I’m using Angular 7. My goal is to create a Directive to control the focus of some elements with the arrow keys (in this example, a side menu). Let’s assume I have the following html: <ul…
angularasked Julio Hintze 188 -
0
votes1
answer33
viewsQ: Creating/changing entities in batch
I’m reading a book from Angular 5 + Asp.NET Core 2.0 (although I’m using Angular 7 and Asp.NET Core 2.1), and I’m trying to do the system that this book teaches me to do. It is a quiz system, where…
-
0
votes2
answers55
viewsA: How to make multiple Ivs that alternate between visible and invisible?
I found a solution to the problem. I will have to create a single controller for this type of div, and for each div.toggle-box that I create, I will have to insert the attribute ng-controller…
-
0
votes2
answers55
viewsQ: How to make multiple Ivs that alternate between visible and invisible?
I’m a beginner in Angularjs, and I don’t know how to proceed in this case. I know how to create a panel that can appear and disappear as a variable in the controller, like this: <div…
-
1
votes2
answers103
viewsA: String for date and day subtraction javascript
Strange even how it happens. It must be something time zone related. Anyway, I’d have a lot of trouble if instead of "2018-07-03" you put "2018-07-03 00:00"? That way came out right (at least here)…
javascriptanswered Julio Hintze 188 -
0
votes2
answers1475
viewsA: How to access a value that was placed via Javascript from a site via VBA?
I couldn’t open the page here. Anyway, from what I saw in your example, the variable is public, right? If so, by the method InternetExplorer.Document.parentWindow.execScript, you can create an HTML…
-
4
votes1
answer125
viewsQ: HTTP request within a company that uses proxy
I’m sorry if that question is repeated. I always try to get the answer before asking here, and this time I didn’t (I suddenly didn’t use the right keywords, perhaps for lack of knowledge, but…