Quantcast
Channel: ShinyLight Development » JavaScript
Browsing latest articles
Browse All 11 View Live

Image may be NSFW.
Clik here to view.

Assigning Handlers on Load

Rather than assigning event handlers to elements inline from within HTML, like so: <a id="site" href="http://www.shinylight.com" onmouseover="Show()">Go to my site!</a> You can assign the...

View Article



Image may be NSFW.
Clik here to view.

Asynchronous Upload to Amazon S3 (S3)

Requirements Make sure you have an Amazon S3 Account (get it from tech). JavaScript is mandatory for this to work (to be able to POST to two different domains) upon user submission. Summary of Problem...

View Article

Image may be NSFW.
Clik here to view.

High Performance Websites

This was a great read. Certainly learned a lot of useful lessons on front-end optimizations. Written by Steve Souders (previously lead Optimization efforts at Yahoo!), who also developed YSlow! – a...

View Article

Image may be NSFW.
Clik here to view.

Quick Simple Way to Show/Hide with a Checkbox using jQuery

Here’s a quick and simple way to do this. I often have to show and hide set of panels based on whether something is checked or not. jQuery code is pretty straightforward and it comes in handy. $(...

View Article

Image may be NSFW.
Clik here to view.

Using CKEditor in ASP.NET MVC

If you’re using ASP.NET MVC, setting up CKEditor is pretty straightforward from NuGet, especially if you’re using jQuery as well. 1. First, install it from NuGet: 2. By default, it will put the files...

View Article


Image may be NSFW.
Clik here to view.

Event Delegation/Propagation (Bubbling) via jQuery

I was going through the book JavaScript Programmer’s Reference by Alexei White and noticed two diagrams that explain the event delegation and event propagation: So rather than binding an event handler...

View Article

Image may be NSFW.
Clik here to view.

MongoDB Console Tip: Better Display of Object on Console

Quick tip. This is just a neat way to better display the JSON from the console. For example, if I did this in one of my dbs: db.client.find() I would get: { "_id" :...

View Article

Image may be NSFW.
Clik here to view.

View Bound Events from an Element in jQuery

The .data() method is a neat way to find out what data is associated with an element. For example, let’s say we have the following HTML: <a href="http://www.google.com" id="google-link">Click me...

View Article


Image may be NSFW.
Clik here to view.

Testing JavaScript Code in Sublime Text with Node.js

Testing JavaScript code can easily be done now with today’s browser in console mode. If you want to this within an IDE like Sublime Text from the press of a button, read on. The first thing you’ll need...

View Article


Image may be NSFW.
Clik here to view.

Getting Intellisense from JavaScript File

Let’s say you have main.js and you want intellisense from objects defined in BankAccount.js. You would have to do the following in main.js: /// <reference path="BankAccount.js" />   function...

View Article
Browsing latest articles
Browse All 11 View Live




Latest Images