×

First time here?

You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting!

Last week I was wanting to do something on my site sort of a ‘breaking news’ style banner that would span the entire site width but only when I wanted it too – based on a cookie or something else.  And I didn’t want to do something server side, because I was sick of doing stuff like that.

Not having played with jQuery, I thought I’d take a dive.  Prior to MIX09, I’d been testing something that the MIXOnline team had been toying with, which has just been released: Glimmer.  Glimmer is described as a jQuery Interactive Design Tool.  A helper for those like me who know nothing about it.  Sure, jQuery has a ton of resources, and my Twitter peeps came through helping me navigate some of the things that aren’t glaringly obvious for noobs like me :-).

But Glimmer got me started, and I think that’s the point.  I had an overall HTML structure already and had the div element that I wanted to work with in jQuery – my goal was to animate it in a ‘breaking news’ sort of manner (or at least what’s in my head when I think of that concept).  I opened up my HTML in Glimmer and went to work.  I simply added the action (the function I wanted to trigger), then pointed it to the element to target.  Here’s what my simple Glimmer UI action setup looked like:

Glimmer UI

I clicked save and it created a JavaScript file for me with the completed code:

   1: jQuery(function($) {
   2:  
   3: function loadBreakingNews(event)
   4: {
   5:      $("#info").css("top","-50px");
   6:     $("#info").animate({"top":0}, 894, "easeOutBounce", null);
   7: }
   8:  
   9: loadBreakingNews();
  10:  
  11: });

Sure, to you jQuery pros, this looks simple, but this tool helped me quickly use a design-time tool to generate this without previous knowledge of jQuery.  Now, I’ve learned a few things about jQuery since my first incarnation – all of which took 2 seconds with Glimmer.  I decided I wanted to use the built-in “slideDown” feature in jQuery.  Some things like this aren’t supported in Glimmer yet, but simple things are…and quite frankly, the combination of Y position animation and an easing function accomplished the same goal.

I made a few hand-modifications to fit my needs (checking for cookies to trigger the banner, etc), but Glimmer got me started right away figuring things out quickly…it was awesome.  I think it comes with a free ShamWow as well, I’m not sure, but I swear Karsten told me that. :-)  Check out Glimmer today if you are new (or even seasoned) to jQuery.  There is a plugin model I haven’t explored, but check out the Glimmer project site for more information.

Next maybe I should explore working with jQuery and Silverlight as I know there is more to jQuery than animations and I think it would make a helpful library for the HTML interop layer.


This work is licensed under a Creative Commons Attribution By license.


4/29/2009 10:43 AM | # re: Adding jQuery to your site with Glimmer
Thanks for checking it out, Tim. Yeah, there is a plug-in model where folks can add jQuery effects and syntax that we didn't get to in V1. The place to find plug-ins is at code.msdn.microsoft.com/.../View.aspx

The way you ended up using Glimmer -- as a tool to bootstrap your project and get you started -- is definitely a use case.

ShamWow? Heck yeah! Glimmer does it all! ;) And even better, it's free, as in both speech and beer...
4/29/2009 11:40 AM | # re: Adding jQuery to your site with Glimmer
All I can say is Wow and Thank you!
4/30/2009 1:09 AM | # re: Adding jQuery to your site with Glimmer
Wow! Is there any sample project available where Glimmer is used on a .aspx webpage
10/29/2009 3:17 PM | # re: Adding jQuery to your site with Glimmer
Hi -
Im a site admin and i really need this feat. on my site. Please email me with some help.
7/21/2011 6:32 AM | # re: Adding jQuery to your site with Glimmer
I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well!Entrümpelung
7/22/2011 3:23 AM | # re: Adding jQuery to your site with Glimmer
Hi.I really like your post.You have all you need for a writer,I mean writing skills and a lot of experience.I love your post,you are very good ,please don't stop writing.Thanks a lot.Tarif Vergleich
7/22/2011 3:30 AM | # re: Adding jQuery to your site with Glimmer
It turns out that the plug is being pulled on my blog, at least for a little while. Since I began my blog I went through a year of library school, a series of jobs and became a much better writer over all. I hope I contributed something to your day at some point.Nanoversiegelung
7/22/2011 5:05 AM | # re: Adding jQuery to your site with Glimmer
I found the perfect place for my needs. Contains wonderful and useful messages. I have read most of them and has a lot of them. Door Lintels To me, he's doing the great work.series 56 exam

 
Please add 4 and 7 and type the answer here:

All postings/content on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or sponsors. The content on this site is licensed under a Creative Commons Attribution By license.