What's been happening?

June 18th, 2008

Posted at 7:14am by Stan

I'm very happy to announce the immediate release of jGrowl 1.1.0. jGrowl can be downloaded here

This latest release features the ability to create multiple container instances for jGrowl, allowing a developer to raise and create various notifications in various location on the user's screen. This functionality is accessible via jGrowl() on any normal jQuery selector, note that the selector should belong to the container which holds notifications. Additionally the core method in previous releases, $.jGrowl() has been altered to create a default container. This should maintain backwards compatibility for users of previous releases and additionally provides a quick setup route for using jGrowl.

The demo file has been extensively updated to demonstrate the multi-container aspect of jGrowl, as well as to introduce several minor new features. It is highly recommend that you consult this demo file for further usage information. This release is still fully compatible with Internet Explorer 6.

June 13th, 2008

Posted at 5:01pm by Stan

I seem to be on a roll as of late with jGrowl... Today I spent some time working on supporting multiple instances. Hypothetically, someone may want to add more then one jGrowl container to their page, perhaps one in the top left corner and also one in bottom right. With version 1.0.4 this was not possible, jGrowl created a singular instance of itself and it could be docked in only one location. Not so anymore... In what will likely be the 1.1.0 release, slated sometime this weekend - you can have as many jGrowl containers and instances as you want and position them anywhere on the screen. The API has changed quite a bit due to this, but don't worry the old API is maintained through a wrapper method. I've expanded the demo file to demonstrate some of the new possibilities, and I'll update the projects and plugin page as soon as I have finalized testing. Stay tuned...

June 13th, 2008

Posted at 12:34am by Stan

I've just release jGrowl 1.0.4, this is a maintenance release that introduces full support for Internet Explorer 6 and thus making jGrowl compatible with all major web browsers. The download is available off of my projects page or at the jQuery Plugin page. If you're a user of jGrowl I strongly recommend upgrading to this release.

June 12th, 2008

Posted at 3:16pm by Stan

jGrowl support for IE6 right now stinks. It stems from two issues, the first is IE6's lack of support for "element > element" selectors in stylesheets. The jGrowl stylesheet uses this quite extensively for aligning styles to the nodes that it generates. The second is IE6's lack of support for the fixed position style. I've included some sketchy CSS hacks for IE6 in the past, but I also confess I haven't paid much attention to IE6 since my earliest release.

Today I spent some time chewing away at the IE6 issues, and I'm happy to say that I believe I'll have a new release (1.0.4) to roll out tomorrow that fully supports IE6. I continue to use CSS hacks, but this time ones that are a little more friendly and don't require Quirks Mode. I've also separated other browser's styles out using the > in selectors. Style rules that need to be applied to IE and everything else no longer have > in them. Finally, there's an IE6 class that is added to the jGrowl container by the actual plugin when the user is viewing the page in IE6. Additionally I've added the zoom fix for the deault opacity styles since jGrowl, as far as IE is concerned, has no layout.

This release should roll out tomorrow, I'll post an update here and the jQuery plugin page will have the new release as well. For serious users of jGrowl, I highly recommend this release since it opens up compatibility to a wider range of web users.

June 11th, 2008

Posted at 2:32pm by Stan

Growl

I rolled out a new version of my jGrowl plugin today. For those who aren't familiar with it, it's a jQuery plugin that generates unobtrusive user-land messages. I first created it for PageSite and it has since worked its way into just about everything I do these days. This latest release focuses on customization and also includes several bug fixes for the previous release.

[ read more ]

April 15th, 2008

Posted at 12:00am by Stan

The Higher Things website uses a really cool jQuery plugin called Superfish for it's black navigational bar. I first stumbled across this plugin while dealing with an animation problem for a home-grown implementation when we were redesigning the site. Rather then re-invent the wheel I decided to just use Superfish. One of the things that I was never really keen on was the lack of an animation to close the menu when, it just disappears as opposed to when it appears it slides in to view.

As a result I've modified superfish for HT's website and thought I would share the hack here for anyone else interesting in getting superfish to animate when a menu item closes.

First, we need to change some options around, we're going to remove the "defaults" for "animation" and replace it with the following (this should be at line 20):

animationOpen : {opacity:'show'}, animationClose : {opacity:'hide'},

Second, around line 78 we need to change how the method responsible for hiding a superfish menu functions, replace the "hideSuperfishUl" and "showSuperfishUl" method with this one:

hideSuperfishUl : function(){ var o = $.superfish.op, $ul = $('li.'+o.hoverClass,this).add(this); $ul.find('>ul').animate(o.animationClose, o.speed, function() { $(this).css('visibility','hidden'); $ul.removeClass(o.hoverClass); o.onBeforeShow.call($ul); }); return this; }, showSuperfishUl : function(){ var o = $.superfish.op, $ul = this.addClass(o.hoverClass) .find('>ul:hidden').css('visibility','visible'); o.onBeforeShow.call($ul); $ul.animate(o.animationOpen,o.speed,function(){ o.onShow.call(this); }); return this; }

That's it! I set the above defaults following the release to use opacity for animating, however on HT's we use { height: 'show' } and { height: 'hide' } respectively for the animations. You'll note in the hide method we added an animation and then after that animation has finished executing, in a call back we remove the hover class and call the closing callback. In the show method all we did was change the name of the animation property to be used, since we now have two.

March 29th, 2008

Posted at 12:00am by Stan

Earlier today I release jGrowl 1.0.2 on the jQuery plugin page, and I also uploaded the release locally as well. This release is bundled into a zip file and contained within it is a demo page and an accompanying stylesheet. There are some pretty substantial changes in this release, including...

  • Styling is now done externally, not inline.
  • Messages can have an optional "theme" passed in, which defines secondary classes to be applied to messages. This allows for messages to be themed on a per-message basis.
  • Animation speed can be customized.
  • The global closer can be disabled.
  • Added an optional callback to the global closer.
  • Added an optional open and close callback to the individual notifications.
  • Customize the life of a message on a per-message basis.
  • jGrowl automatically starts itself up with the first message.
  • When there are no messages jGrowl will automatically shut itself down.
  • ...fixed various bugs in 1.0.1.

Overall this release is quite a bit better then the previous one. If you have any ideas for future features, or if you discover any bugs please feel free to contact me.

The new release can be downloaded at: http://stanlemon.net/files/jgrowl-1.0.2.zip

March 22nd, 2008

Posted at 12:03am by Stan

I just setup jQuery Templates and jGrowl in the jQuery plugin repository, and then I added them on my own projects page. I'll try and keep the plugin page's release piece up to date as I make modifications, and I also promise to do my best in following up on any bugs reported.

March 21st, 2008

Posted at 10:59pm by Stan

I just uploaded a new copy of jQuery templates with a fix for $.fn.text() and $.fn.html(), I was not passing the options object in correctly (silly mistake) and thanks to Chris Jaure, if you were using either of these methods to simply return a value they now work correctly as well.

jQuery Templates available at: http://stanlemon.net/files/jquery.template.js

March 20th, 2008

Posted at 11:36pm by Stan

Growl

Back in November I wanted a mechanism to communicate messages after an ajax request to my PageSite users. I experimented with a number of things and initially had a terribly ugly manipulation of the green and red message boxes you'll see on this type from time to time. There were a couple of big problems though, first the code was originally written for Prototype so it sucked, and second it was not very portable. Ultimately I wanted something that looked good, was well written and could be reused in a number of different ways.

When PageSite was converted to using jQuery for all of its javascript I rehashed a lot of stuff. There was some old javascript code that had been floating around since 2004 when I first prototyped out PageSite 4.0's admin panel. To cut to the chase... I stumbled across Humanized Messages, which was close to what I wanted to do, but not yet there. This plugin got me to thinking, though, what I'd really like is something that looked like Growl. For those not on OS X, take a look at the website and you'll see that Growl is a system-wide notification system.

As a result, while Erich was out here visiting I fleshed out an initial concept. I called it jGrowl, spinning off of the OS X solution. It's pretty simple to use out of the box:

// Normal notification $.jGrowl("Here is my message!"); // Sticky notification $.jGrowl("This message is stuck!", { sticky: true });

Today I sat down and cleaned up some of the plugin, namely I removed a dependency on the metadata plugin in favor of $.fn.data() and I also namespaced all of the events, which should allow you to attach other events to the jGrowl nodes and deal with them without jGrowl unbinding them on you.

The plugin still needs some work, I'm not sure how much I like styling it with javascript - at the same rate, I like the idea of styling different notifications differently as well. I'd also like to see some callback options, the animations customizable and I'd like to potentially add some internal sorting using the "header" option. These things, though, will come in time - for now I just want to get the plugin out so I can get some feedback.

Updated 03/24/08: The plugin is available at: http://stanlemon.net/files/jgrowl-1.0.2.zip, please let me know what you think!

1    |    2    »    [2]
Powered by BlogSCL3 0.3.0alpha