Posts Tagged ‘mootools’

MooTools Events Calendar - Web Embeddable Javascript Calendar

Friday, October 3rd, 2008

Month ViewThis is the official release of the unofficial MooTools Events Calendar. It is an embeddable web calendar that was built using the MooTools JavaScript framework. Currently, it is still under development, but may be sufficient for your needs. Check out the project page here: MooTools Events Calendar

v0.1.0

  • month, week, and day views
  • tool tips for month view events (using Tips)
  • scrolling day events for month view (using Scroller)
  • events loaded manually or possibly through a JSON feed

Stop A Page From Loading

Friday, July 4th, 2008

I’ve recently put together a page that included over 550 thumbnails that were set to load dynamically. They were grouped together to be viewed throughout several “pages”. Originally, if you went to the second page without waiting for the first to finish loading, you’d be unimpressed with the presentation. The second page would begin to load only after the first was finished and so on. I needed to come up with a way to stop the thumbs from loading when you went to the next page and here’s what I came up with. It works with Firefox, Safari, and the troublemaker…Internet Explorer.

Using Mootools:

function stopLoad()
{
   $try(
      function(){window.stop()},
      function(){document.execCommand('Stop')}
   )
}

Using Prototype:

function stopLoad()
{
   Try.these(
      function(){window.stop()},
      function(){document.execCommand('Stop')}
   )
}