My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 9: Patch: customizable observers attached to the glide event
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by kigster, May 09, 2008
Not so sure if this is useful generally, but attached is a patched version
of glider.js which supports observers that can perform whatever action they
are configured, whenever the sections slide.

Example observer updates page counts for the items within each section (eg,
"Showing items 1-5" to "Showing items 6-10" when someone slides from
section1 to section2, etc.

Pass observers to the constructor:

var myGlider = new Glider('myGlider', {
      duration:0.9,
      changeObservers: [ new PageRangeUpdater($('page-range'), 5,  17) ],
      initialSection: 'section1'});

glider.js
5.9 KB   Download
Sign in to add a comment

Hosted by Google Code