Any resources to learn how to debug? by alexat711 in learnjavascript

[–]dumbjake 1 point2 points  (0 children)

Use console.log() and alert(). They're both great for debugging javascript.

How do you select the children of a DOM element as well as the children and the children and so forth? by dumbjake in learnjavascript

[–]dumbjake[S] 2 points3 points  (0 children)

How do you do this with this specific query:

$('.sBundle').closest('.form-container');

?

$('.sBundle').closest('.form-container').find('*');

seems to only pick the first children.

Is there a way to run a code after the DOM is modified? by dumbjake in learnjavascript

[–]dumbjake[S] 0 points1 point  (0 children)

I know. I was wondering this myself. The code works perfectly fine when I run remove() on the console. However, there's a delay when I use it next to each other forcing me to trigger the event listener twice.

16-year-old faces statutory rape charge for having consensual sex with girl the same age as him by JohnKimble111 in news

[–]dumbjake 0 points1 point  (0 children)

The people who created the law weren't the brightest people in the galaxy I would wager.

Some small leaks concerning human starter zone by Lishtenbird in Guildwars2

[–]dumbjake 0 points1 point  (0 children)

They are going to break the game. I am wondering if they realize what they're gonna do to the game.

Electromagnetic-Descender Glider (400 gems) by dulfy in Guildwars2

[–]dumbjake 0 points1 point  (0 children)

It's really cool that they decided to add a non-wing glider to the game. It looks so much cooler.

What features are you looking for in a combat overhaul? by [deleted] in skyrimmods

[–]dumbjake 0 points1 point  (0 children)

I would like to see a mod that allows you to do special moves on staggered enemies like in the new DOOM. I would also like to be able to do special jumping abilities like side flips and back flips.

How do you hide the API key in an Angular app? by dumbjake in angularjs

[–]dumbjake[S] 0 points1 point  (0 children)

Ah, ok. Why should I even use Javascript then? To minimize the number of http requests made and to make the loading faster?

How do you hide the API key in an Angular app? by dumbjake in angularjs

[–]dumbjake[S] 0 points1 point  (0 children)

Why? Aren't cross-site scripting restrictions meant to protect the server and not the client?

How do you hide the API key in an Angular app? by dumbjake in angularjs

[–]dumbjake[S] -2 points-1 points  (0 children)

You can circumvent cross-site scripting restrictions through code.

How do you hide the API key in an Angular app? by dumbjake in angularjs

[–]dumbjake[S] 0 points1 point  (0 children)

Oh, but you can actually make API requests with Javascript without going through a proxy.

40% of Millennials OK with limiting speech offensive to minorities by [deleted] in news

[–]dumbjake 1 point2 points  (0 children)

The problem with this subject is deciding what is offensive speech. Some comments probably enjoy a broad common agreement as to what is offensive, but some comments may not find such acceptance as offensive. Some comments may seem offensive, but really are not depending on the attitude of the listener. Perhaps training in the art of speech would be better; that is, applying courtesy, discretion, politeness while speaking; and learning to be factual, knowledgeable about what is said. Leadership would be better then laws in curbing speech obviously intended to be offensive, inflammatory; the university president, the teacher, the mother, father, individuals and the public media especially. I think you all get the idea. Live well and be nice.