News for hackers. Stuff that matters.

npongracic

Cool idea but i've read about something similar on Scott Hanselman's blog, it's called LogParser: http://www.hanselman.com/blog/AnalyzeYourWebServerDataAndBeE...
Re:You might not need jQuery on Thursday January 30, 2014 @03:17PM (#7153077)
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)

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