Javascript / jQuery

jQuery is a library of javascript commands that speed up and simplify client-side javascript.

I started off with javascript as the first scripting language I used. Getting the basics of programming in a client-side scripting language helped learn server-side languages such as ASP and PHP, and things like Flash’s ActionScript and other compiled languages. I’d not really done much javascript for a long time other than some AJAX and other form elements, and implementations of the rollover script I used.

Javascript code examples: Selectable text on GitHub and javascript calendar.

Recently though, I’ve started to dabble with jQuery. I have done a course in it and am starting to use it with HTML/CSS in things like this scalable website demo. The jQuery toggles the mobile menu on and off and changes the direction of the arrow next to “Mobile Menu” between up and down. There is also a part that check if neither menu or toggle are visible, in that case it makes sure the menu is visible – this is mainly just going to be the case in testing or if someone is making their window smaller then bigger, but it’s good to fix.

jQuery works well with HTML5 and CSS3, making it easier to access different element than in pure javascript. You can get your scripts working once the document has loaded, with a click of the mouse, when the window is resized, or on various events. With these events there are various actions you can apply and the nice thing about jQuery is that it has some nice transition effects built in. Plus, there are many more additions to the jQuery library that can be used with various plugin libraries.

There is also a newer technology that is similar to AJAX called websockets which uses javascript to make calls to the server even after the page headers are sent.