[jQuery] Re: Attach Event to Class Instantiation

2008-03-26 Thread jmar777
Thanks Chris - that actually looks fairly close to what I'm looking for. If I could add an advice to the constructor method using before(), then I think that would solve my problem. Thanks again!

[jQuery] Re: Attach Event to Class Instantiation

2008-03-26 Thread jmar777
Thanks Ariel, Your example (b) is more or less what I wanted. I was hoping to find an approach that didn't require firing an event from within the constructor, but that doesn't seem to be possible. BTW, I've enjoyed your blog on numerous occasions - keep it up!

[jQuery] User Interface: How to query the dropped element?

2008-02-18 Thread jmar777
When using draggables and droppables, I'm having difficulty understanding how to query the dropped element. For example, right now I can do something like the following: $('.droppable').droppable({ accept: '.draggable', tolerance: 'pointer',