background preloader

75 (Really) Useful JavaScript Techniques

75 (Really) Useful JavaScript Techniques
Advertisement Developers and designers are using more and more JavaScript in modern designs. Sometimes this can be a hindrance to the user and take away from the simplicity of the design, and other times it can add greatly to the user’s experience. The key is a) adding the right amount of JavaScript, and b) using the right JavaScript techniques. We have already1 collected2 various3 JavaScript4 techniques5 in the past – now it’s time for a new portion of JavaScript. Thanks to the Web’s widespread adoption of JavaScript, JavaScript libraries have sprung up to help make design and development easier. However, sometimes we need JavaScript solutions that are a little more involved or specific. You may want to take a look at the following related articles: 75 Useful JavaScript Techniques Hyphenation in Web11This project collects working solutions for automatic hyphenation in (X)HTML pages. SocialHistory.js13SocialHistory.js enables you to detect which social bookmarking sites your visitors use.

http://www.smashingmagazine.com/2008/09/11/75-really-useful-javascript-techniques/

The best way to load external JavaScript Posted at July 28, 2009 09:00 am by Nicholas C. Zakas Tags: Blocking, JavaScript, Performance Not too long ago, I wrote about loading JavaScript without blocking by creating a dynamic <script> tag. When <script> tags are in the flow of an HTML document, the browser must stop rendering and wait for the script file to download and execute before continuing (example).

20 Firefox Add-ons to Enhance your Web Development Sep 09 2008 There are lots of free extensions and add-ons available on the internet for Firefox, but which are the best add-ons that can Really help you as a web developer or designer in terms of time and effort? Many of our readers suggested some great add-ons in our previous post, Designer´s Toolbox : 15+ Time Saving Tools- What´s your Secret? 17 Hours of JavaScript from the Masters - Nettuts+ Douglas Crockford. John Resig. Peter-Paul Koch. Nicolas C. Zakas. If you recognize these names, you probably know what they all have in common: they're amazingly talented JavaScript Developers.

Why You Haven't Learned How to Code Yet Over the past year there’s been unprecedented enthusiasm for learning to code. From NY Mayor Mike Bloomberg’s pledge to the White House’s national summer effort, programming has never been such a valuable career move and somehow it has even managed become a bit trendy, too (depending on your geographical location). With all this new energy comes initiatives like Code Year, which lets anyone pledge to learn to code with weekly tutorials via Codecademy. So maybe you signed up, or perhaps you did some research on your own, but here we are and you still can’t code… If this situation applies to you, know that you’re not alone. Learning any language is hard to do, and programming requires countless hours of practice before you can really start making something impressive.

Jcrop - Deep Liquid Jcrop Home • Download • Manual • Examples Jcrop is the quick and easy way to add image cropping functionality to your web application. It combines the ease-of-use of a typical jQuery plugin with a powerful cross-platform DHTML cropping engine that is faithful to familiar desktop graphics applications. Feature Overview Attaches unobtrusively to images or block objects Supports aspect ratio locking Supports minSize/maxSize setting Callbacks for selection done, or while moving Keyboard support for nudging selection API features to create interactivity, including animation Support for CSS styling, now uses LESS Touch support for iOS, Android, etc Cross-platform Compatibility

DOM DocumentFragments I was playing around with DOM DocumentFragments recently, in JavaScript, seeing what I could make with them. Roughly speaking, a DocumentFragment is a lightweight container that can hold DOM nodes. It’s part of the DOM 1 specification and is supported in all modern browsers (it was added to Internet Explorer in version 6). In reading up on them I came across an interesting point, from the specification: Furthermore, various operations — such as inserting nodes as children of another Node — may take DocumentFragment objects as arguments; this results in all the child nodes of the DocumentFragment being moved to the child list of this node. This means that if you take a bunch of DOM nodes and append them to a fragment then you can simply append the fragment to the document, instead (and achieve the same result – as if you had appended each node individually).

How To Start Being A Web Developer (Quickly) Big questions that’s often asked on a variety of forums. “What can I do to become a developer?” The question has puzzled many and often yields a list of books (that no one other than the poster has/will read), list of websites (that are WAY too advanced), and a battle over languages and definitions. Very pointless. 20 Free Page Analysis Tools Get the FlatPix UI Kit for only $7 - Learn More or Buy Now When developing and maintaining websites, analysis plays a significant role in maximizing the effectiveness of the site. There are a number of resources and tools for analyzing web pages, and this post looks at 20 of the best free tools for this purpose.

Green Felt News » How we hash our Javascript for better caching One of the problems we use to see frequently on Green Felt happened when we’d update a Javascript API: We’d add some parameters to some library function and then update some other files so that they called the function with the new parameters. But when we’d push the changes to the site we’d end up with few users that somehow had the old version of one of the files stuck in their cache. Now their browser is causing old code to call new code or new code to call old code and the site doesn’t work for them. We’d then have to explain how to reset their cache (and of course every browser has different instructions) and hope that if they didn’t write back that everything went OK.

Triggering CSS3 Transitions With JavaScript At the beginning of this month I wrote a post accompanied by five demo pages that showed that CSS3 transitions could be triggered with a number of different events/states in CSS. That alone should help you see how these types of simple animations work. But let’s take this a bit further. CSS pseudo-classes and media queries (which I used in that other post to trigger the transitions) represent certain states for certain elements.

7 Ways to Learn to Code Right Now for Free Learning to code is one of the most powerful and satisfying things you can ever do. If you’re a designer, learning to code can help you understand what you’re creating for, and if you’re looking to build a startup from scratch, being a technical founder can make things exponentially easier for you. No matter why you want learn, the only thing you really need is curiosity. But if you’re just starting out as a novice and don’t know where to begin, here’s a list of 7 ways to start learning how to code right now for free: 1.

10 Websites with huge list of resources for web designers and developers Learn how to earn $125 or more per hour as a freelancer - Click Here Looking for hosting?. We recommend MediaTemple for web hosting. How to create a timeline slider with JQuery Many website has a long company history and they want to show their history. I will show you how to create a timeline slider with JQuery. You can follow me by reading the comments in the codes. First, start by loading in the necessary libraries and external files in the head. I have chosen Google API and JQuery UI for this slider. We will create external stylesheet and JavaScript and named it stylesheet.css / slider.js. Top 15 Open Source/Free Security/Hacking Tools 1. Nmap Nmap (“Network Mapper”) is a free and open source (license) utility for network discovery and security auditing. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. Nmap homepage.

Related: