This is

as days pass by, by Stuart Langridge

. Here I write about many things. In the past I wrote about other things but the past is past. I write code for people to play with, I write about my life on Twitter, and I write here.

On I wrote setTimeout, objects, and anonymous functions, on the subject of Uncategorized.

In conversation with Dunstan last night, I was advised of the facility in JavaScript’s setTimeout to pass a function, rather than a string, and have that function executed after the timeout. Did everyone else already know about this? I’ve been fighting the “how do I get my object into a string? oh, I guess I’ll make it a damned global variable” thing for years! Why didn’t anyone tell me this? JavaScript FAQTS has more.

-----
mirc

thanks best regards

mirc

thanks best regards

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.