Posts by cpurificacao • 311 points
11 posts
-
1
votes1
answer692
viewsA: Page with Nodejs with Mysql database
Hello, all right? If I understand what you want, is to create a way of when the user access the http://localhost:3010/usuarios direct paging automatically to page 1. Right? Conceptualization: For…
-
1
votes1
answer321
viewsA: compose a POST type request using a PROMISE function
Hello, good night. All right? So, let’s go to a brief conceptualization before moving on to the hard coded: Conceptualization: Javascript is single thread And that means he reads and executes one…
-
1
votes1
answer50
viewsA: Show database data on page
Well, according to the error returned it tells us that the function you tried to call DOES NOT EXIST or IS NOT DEFINED. In fact from PHP 5 the calls of the Mysql functions are no longer written as…
-
0
votes1
answer148
viewsA: Pass data without Parsing to handlebars
Well, it seems the prop "all" encompasses all the data and you want to render them at once, for this you should use an iterator, handlebars offers some auxiliary props, see: First you must pass the…
-
1
votes2
answers201
viewsA: Conditionally add elements into the Javascript Array
then let’s explain: First let’s understand the ternary and logical conditionals: Well, the condition you tried to implement in your code is logic, that is, it checks if a certain condition is met…
-
1
votes1
answer49
viewsA: dlclick on Transformer give me a stack error: Maximum call stack size exceed
You see, when you use a structure that demands a Boolean conditional control and you set the control to 100% of the time be true (which is the case with your if (true) { // ... }) you are not…
javascriptanswered cpurificacao 311 -
1
votes1
answer73
viewsA: Rounded up the values obtained
In Javascript to round values you have 3 functions: Math.round, Math.Ceil and Math.floor... But if its value assumes some string character, the value returned by these functions will be an Nan(Not a…
-
0
votes1
answer50
viewsA: How to use a multi-time javascript function for different Ivs and inputs with different classes?
Define a custom class or attribute for each action Dispatch(action trigger) within your product information container and then select all elements that have this defined feature, scroll over them…
-
1
votes2
answers268
viewsA: Return data via Ajax
Modify your Success function, before the conditionals put this: console.warn('retorno:', data); Then open the browser console on the "console" tab and post a print of the result here...…
-
2
votes2
answers416
viewsA: Resize a child element according to the width of the parent element
Hello, good... You will have to use Javascript for this type of manipulation, you can optionally use one of its frameworks, but I will illustrate with pure Javascript (Vanillajs). To do this type of…
-
3
votes1
answer262
viewsA: how to make js hope to resolve and start another
then... Its code has no running order problem, the "map" function only maps (with a looping) an array and returns a new one according to the manipulation made in the return callback. So there is no…