JavaScript: Alternative method for HTML 5 Data Attribute in Old Browsers

The HTML5 datalist property is not available in older browsers (it can be polyfilled easily enough though). The standard getAttribute method can be used instead of course, and data-xxx attributes on HTML elements are accepted by all browsers, IE also has supported this method from IE4. Sample HTML

JavaScript

Continue reading


JavaScript Infinite Scroll with Cross-Browser

Here meant to explain how to create cross-browser compatible infinite scroll solution with JavaScript. Infinite Scroll is also called autopagerize, unpaginate, endless pages. Essentially it detects when user reaches end of an HTML element or the bottom of page. i.e., finished reading and then loading new data asynchronous using AJAX and displaying it. Therefore the […]

Continue reading