Better HN
topnewbestaskshowjobs
Log inSign up

awschmitz

2 karma · joined Jun 8, 2012 (14y ago) · 4 submissions

Submissions

1.

We Aren't As Insignificant As We May Think(lame0.svbtle.com ↗)

2 points · by awschmitz · 12y ago · discuss

2.

Audio collaboration startup(clwdlab.com ↗)

1 points · by awschmitz · 13y ago · discuss

comment 14y ago · link · parent

Or you could use the built-in setInterval() function to poll for the DOM element and not have to worry about attaching an event handler to a deprecated event. It's expensive, but will only happen in between the time that this code is interpreted and the DOM element loads. And you could easily write something to check for timeout in case is takes too long.

var intID = setInterval(function() { if($("myDOMElement").length || checkForTimeOut()) { clearInterval(intID); doSomething(); } }, 100);

...if it starts lagging just increase the interval time (that last integer).

4.

How to thumb your nose at read-only properties in .NET(codeproject.com ↗)

1 points · by awschmitz · 14y ago · discuss