Detect when scroll is reached end of scroll

Using jQuery, determine that user has been scrolled until the end of element. Reference: http://stackoverflow.com/questions/6271237/detecting-when-user-scrolls-to-bottom-of-div-with-jquery $('.scrollable').bind('scroll', function(){ if($(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight) { alert('end reached'); }...

Bootstrap Modal Remote Example

Reference: http://twitter.github.com/bootstrap/javascript.html#modals Reference: http://jsfiddle.net/mmfansler/cp67J/   <a data-target="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a> <div class="modal fade hide" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-remote="/mmfansler/aQ3Ge/show/"> <div class="modal-header"> <button type="button"...

Prototype Ajax.Request modifying header

new Ajax.Request({ajax-url}, { method:'get', requestHeaders: { "Accept": 'application/json' , "User-Agent": {custom-user-agent} }, onCreate: function(){}, onComplete: function(){}, onSuccess: function(data){}, onFailure: function(){} });   Point: "User-Agent": {custom-user-agent}...