John Callahan wrote:
> I've run across two situations so far...
>
> 1) In the Thumbnail View, I would like to use Lightbox.  For that, I 
> would need to add a particular class to each image anchor that is 
> specific to lightbox functionality.
>
>
> 2) I'd like to have classes specific to my facet selections.  Maybe for 
> one of the facet selections, the background color of the images would 
> change, or the font in a tabular view would change.  Just another cue to 
> help users filter through the results.
>
>
> Adding a specific css class is just one reason I would like to run a 
> function against all items (or selected items) in the database after 
> each filter/facet is applied.  I just sent a post to the list with 
> specific questions.  I could then add/change HTML content (text, links, 
> images, etc...)  to various parts of the page based on user selections.  
> I guess that's the larger question I'm after.
>   
I guess you'd need to override those _reconstruct functions for the 
views that you have. So, if you use a Tabular view, you'd need something 
like this

    <script>
        var oldTabularViewReconstruct = 
Exhibit.TabularView.prototype._reconstruct;
        Exhibit.TabularView.prototype._reconstruct = function() {
           oldTabularViewReconstruct.call(this);
           // now do your jQuery stuff
        };
    </script>

David

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to