What is a "Data Object" or a "Data Element" - I'm unfamiliar with those terms.
You can register events on regular JavaScript objects, with jQuery:
$(someObject).bind("someEvent", someFn);
and trigger them:
$(someObject).trigger("someEvent");
You can also bind data to objects:
$(someObject).data("someData", "someValue");
and track when they get changed using events:
$(someObject).bind("setData", function(e, key, value){
... do some setting ...
}).bind("getData", function(e, key){
return ... some value ... ;
});
--John
On Fri, Nov 14, 2008 at 1:23 PM, Rainaer <[EMAIL PROTECTED]> wrote:
>
> Are there currently, or are there plans to impliment, event handling
> on Data Objects like in Prototype such that you can register an
> observe event on a data element to fire a trigger when the data is
> changed?
>
> Or is this something that I'll have to look to Prototype to impliment?
>
> Thank you
>
> Robert Zumwalt
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" 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/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---