Gimme Examples

Aug 10, 2009 at 12:19 PM

Please provide online examples of how to use Gimme library. If there are examples already available please put a link somewhere.

Thanks.

Coordinator
Sep 18, 2009 at 7:12 AM

Zyura:

 

I'd be happy to post some examples.  Is there something specific you would like to know how to do?

Generally speaking, it's got a lot of similarities to jQuery, though the internal workings are quite different.

// find something

Gimme('#someElem')

 

// find lots of things

Gimme('.cat')

 

// find all "cats" and make them have a black border and orange background

Gimme('.cat').set_style({ border: '5px solid black', background: 'orange' });

 

// wire up events

Gimme('.cat').add_event('click', function(e) { alert('you clicked the cat'); });

 

// fade them out

Gimme('.cat').fade_out();

 

There's tons more of course.  If there is something specific you'd like to see, please let me know.

Note also, that these examples are syntax'd from Digory (the current in development version of Gimme, due for release sometimes in late November)