JavaScript Learning Resources
I've come to notice that we do not currently have any learning resources for JavaScript, so I've taken it upon myself to list some good resources for some good learning!
Tizag,
AJAX (JavaScript on steroids),
JavaScript, - Great for Beginners.
WebTeacher,
javaScript – Beginners resource; explains almost everything.
A few notes on JavaScript.
JavaScript's purpose is to enhance the users experience, you should not on it for everything especially when it comes down to security.
A common example of when not to use JavaScript is in a log-in form. Some expecting coders who script log in forms rely on javascript validations to check whether or not a user has entered the correct information into a form.
Typing certain
queries into a password box, can lead to anyone getting access to any account they want. To counter this, some silly people may use javascript to check whether or not these malicious queries have been typed in. If the user were to save the page but remove the javaScript that checks for the malicious code they would be able to perform these acts. That's why this security checks should be left to the
server side scripts (or
backend scripts), as the user has no control over what checks are done server side. If that wasn't clear enough here is a live example:
youtube.
Okay so when should you use javascript? There are many great ways to use javascript to enhance a users experience, such as a chatbox, or saving preferences in cookies. You have to notice that the user cannot use these if they have javaScript disabled, so do not rely on it for everything. So Javascript should only be used to make things better!
Want to add anything? PM me.