Tip
1   |   2      »      

Guid0: JavaScript GUIDs

Our own Michael Mahemoff is at it again, creating a simple little GUID generator called Guid0:
Guid0 is a GUID library for Javascript. Okay, it doesn't yet do official, bona fide, 128-bit, GUIDs ye ....... read more
8 days ago
Maintaining Browser Specific CSS

Nick Cairns saw our post on conditional CSS for browsers and followed up discussing how he handles maintaining IE specific CSS selectors:
We keep our IE related styling right below the common (stan ....... read more
Fri,
26 Sep 2008
Tip: Using a background image on an image

Pascal Opitz answered the question "Can you set an image background on an image element?" in simple fashion. All you have to do is make sure that the image is display: block and has a padding. He put ....... read more
Mon,
15 Sep 2008
addSizes.js: automatic link file-size generation

Nathalie Downe has taken Simon Willison's json-head App Engine mini-service and used it to create addSizes.js, a little script that looks for large files linked from a page, and automatically adds the ....... read more
Tue,
02 Sep 2008
Using CSS to do the print watermark technique

Andy Pemberton has put together a simple solution to get the watermark technique to work nicely with print CSS. Check out the sample and pull up a print preview. He details the good, bad, and ugly:
read more
Wed,
27 Aug 2008
A simple solution to the ?other? problem with select boxes

Jeffrey Olchovy has posted a simple tutorial on using jQuery to solve a "select-to-input toggle" that shows and hides a text field when you select "Other". It overloads the same form name, so the ser ....... read more
Mon,
18 Aug 2008
Getting a JavaScript stracktrace in any browser

Eric Wendelin has posted on getting a JavaScript stack trace no matter that the browser. With Firebug you can call console.trace() but what about the rest? Luke Smith took Eric's work and added to it, ....... read more
Mon,
18 Aug 2008
Introducing HTML into an iframe and getting it back

Michael Mahemof is working a lot with TiddlyWiki and posted on how the project injects HTML into an iframe, and then get them out later. This enables you to use the browser parser to do its thing: PLA ....... read more
Wed,
06 Aug 2008
Semantic Constructors

PLAIN TEXT JAVASCRIPT:
 
Class.create = (function(original) {
var fn = function() {
var result = original.apply(null, arguments)
result.toStri ....... read more
Fri,
18 Jul 2008
A safety fence for your property lookups

Michal Till posted a little JavaScript Tip that he uses to create a safety fence for accessing properties:
As we all know, null not only does not have any properties, but their existence also can n ....... read more
Fri,
11 Jul 2008
CSS General Sibling Combinator in action

PLAIN TEXT CSS:
 
#indirect-example1 h4 + p,
#indirect-example2 h4 ~ p {
background-color: #CCC; color: #F00
}
 
Eric Wendelin has taken a look at the general ....... read more
Fri,
27 Jun 2008
Remove Nested Patterns with One Line of JavaScript

Steven Levithan has been flagrant by creating a simple way to remove nested patterns with a while loop and a replace: PLAIN TEXT JAVASCRIPT:
 
var str = "abc<1<2<>3>4>def"
 
while ....... read more
Fri,
30 May 2008
Polling for loaded content instead of simple setTimeout

Have you ever found yourself doing little setTimeout calls as you wait for content to be loaded asynchronously? It seems to happen pretty frequently, and Paul Irish has created a simple utility to hel ....... read more
Wed,
14 May 2008
Are you sure your unload handler is firing in IE?

Johan Sörlin found that sometimes his unload event never fired in IE: We recently found a serious bug in IE where the unload event wouldn?t fire on a specific page we had on a site. After some bug tr ....... read more
Thu,
17 Apr 2008
Every keystroke is a prisoner - a neat commenting trick

My favourite kind of tutorial or trick are the ones that are very easy to do but make a lot of sense - you know the ones that make you slap your forehead and say "why didn't I do that before?". Dirk ....... read more
Thu,
28 Feb 2008
Cursing with JavaScript: Three Random Tips

I ran across a few posts in a row in my news reader that were each mini Tips that involved Prototype, Firefox, and IE. Prototype Custom Events Howard Lewis Ship is making sure that Tapestry 5 will hav ....... read more
Tue,
19 Feb 2008
Self Printing JavaScript Literals

Are you ever sick of seeing Object get printed out when you try to output a variable to your console. Oliver Steele talks about Self Printing JavaScript Literals where you can clean that up with a toS ....... read more
Mon,
18 Feb 2008
The parseInt gotcha

Guyon Morée has posted the old chesnut parseInt gotcha, so I thought I should put it up here as a quick Tip: I was working on some stuff in javascript which involved some date/string parsing when one ....... read more
Tue,
12 Feb 2008
Crazy way to change third party scripts

Paul Irish posted a crazy method for tweaking third party scripts. His problem was that he was using MultiMap (online Mapping API) and wanted to internationalize the information, but it was hard coded ....... read more
Wed,
13 Feb 2008
Safari CSS Reference

Do you want to have one place that tells you about all of the Safari properties? Now we have it. The reference shows not only the standard properties and how Safari handles them, but also all of the - ....... read more
Wed,
28 Nov 2007
1   |   2      »