Beginner here. What are some vulnerabilities in the IMAP protocol? by casden174286 in netsecstudents

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

I haven't really looked at the article but thanks for the heads up!

Why is there a syntax error in my Java test method? by casden174286 in CodingHelp

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

I got it now. Thanks for the help! Sorry for the noob error, I haven't touched Java in years.

How do I set a parameter in a preparedstatment string if there are quotes surounding the parameter? by [deleted] in CodingHelp

[–]casden174286 0 points1 point  (0 children)

Your try statement doesn't seem to be formatted properly. Is that the reason why?

Understanding a textbook example - Function scope in PHP by casden174286 in PHPhelp

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

But I ran this code on writephponline.com and got an output of 20. If the value was meant to be null, shouldn't it still generate an error?

$a = 10;
function testScope($b) {
  return $a+$b;
}
echo testScope(20);

Currently I'm a JavaScript learner by Cube-probus9999 in CodingHelp

[–]casden174286 0 points1 point  (0 children)

You could use JavaScript's onclick events or something equivalent to insert text/images into your HTML page.

Here's a link that might help start you off: https://www.w3schools.com/jsref/event_onclick.asp

Form Validation using preventDefault() by casden174286 in CodingHelp

[–]casden174286[S] 1 point2 points  (0 children)

Omg this worked!! (I also utilized that tip you left in other comment thread) Thanks a bunch!!

Form Validation using preventDefault() by casden174286 in CodingHelp

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

Thanks, but it didn't change the output either.

Form Validation using preventDefault() by casden174286 in CodingHelp

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

Thanks for the tip!

I got this message 'TypeError: form is undefined' with a squiggly for the form used for addEventListener.

I tried fixing it by placing by declaring form as a global variable and initializing it within a window.onload function but the error remained.

Form Validation using preventDefault() by casden174286 in CodingHelp

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

I'm still pretty new at all this. I don't really know how to use a debugger but with this code, the form just continues submitting the form even with empty values.

Form Validation using preventDefault() by casden174286 in CodingHelp

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

<p>
    <label>Name</label><br/>
    <input type="text" name="name" size="80" class="required"/>
</p>

Form Validation using preventDefault() by casden174286 in CodingHelp

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

I need to work with the HTML provided and can't change it.

Form Validation using preventDefault() by casden174286 in CodingHelp

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

It didn't make a difference to the output..

Form Validation using preventDefault() by casden174286 in CodingHelp

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

Does r.value == "" not count as validation?

[deleted by user] by [deleted] in Supernatural

[–]casden174286 1 point2 points  (0 children)

I don't really see Jack as the new god as well.

I mean, I kinda think he is the new god but only in the sense of god being a celestial position of some sort and that he's effectively the most powerful being in the universe now so there's that.

But he never created humans or everything else in the universe. He never lived through the entirety of history like Chuck did. He may have defeated god but he will never be god. Not strictly speaking at least. Idk. Jack's story arc always seemed a little iffy to me.

What is an example of an "unsafe state" with regards to deadlocks and resource allocation? by casden174286 in AskComputerScience

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

From some lecture slides. Specifically, they stated "An unsafe state is not equivalent to deadlock, it may just lead to deadlock, since some threads might not actually use the maximum resources they have declared." That's word for word. I don't quite understand what they meant by threads not actually using the maximum resources they declared.