Better HN
topnewbestaskshowjobs
Log inSign up

npongracic

1 karma · joined Oct 17, 2012 (14y ago) · 3 submissions

Submissions

comment 12y ago · link · parent

Cool idea but i've read about something similar on Scott Hanselman's blog, it's called LogParser: http://www.hanselman.com/blog/AnalyzeYourWebServerDataAndBeE...

comment 12y ago · link · parent

I think this is great, i was also thinking of replacing jquery functionality in some of my scripts with native methods and this helps me alot.

One question though, what is the pure javascript equivalent of $(document).on('click', '.selector', function() { // do something });

This is the new jquery .live() replacement and i need it because normal events stop working after async postbacks (eg. from an asp.net UpdatePanel).

Will this code do the trick if i attach it to the document element? Also i need IE8+ support :)

function addEventListener(el, eventName, handler) { if (el.addEventListener) el.addEventListener(eventName, handler) else el.attachEvent('on' + eventName, handler) }

addEventListener(el, eventName, handler)

comment 14y ago · link · parent

This is great... except it looks like an empty domain page. The design is horrible.