[jquery-dev] Re: binding JSON to DOM

2009-10-01 Thread Andrea Giammarchi
On Fri, Oct 2, 2009 at 12:10 AM, Michael Geary wrote: > Don't take offense. I looked at your page and searched for Object.prototype > and found several references to it. I guess I should have investigated > further to figure out if you were actually modifying it or not. But you must > know that t

[jquery-dev] Re: binding JSON to DOM

2009-10-01 Thread Michael Geary
Don't take offense. I looked at your page and searched for Object.prototype and found several references to it. I guess I should have investigated further to figure out if you were actually modifying it or not. But you must know that the mere mention of Object.prototype will cause people to freak o

[jquery-dev] Re: binding JSON to DOM

2009-10-01 Thread Andrea Giammarchi
That's how much you pay attention over links, right? Now please tell me where exactly my solution extends Object.prototype the watch method is the simulated one, nobody there extended anything, there is a function, createWatcher. Regards On Thu, Oct 1, 2009 at 10:55 PM, Michael Geary wrote:

[jquery-dev] Re: binding JSON to DOM

2009-10-01 Thread Michael Geary
Your JSON data doesn't just "get modified" out of the blue. Somewhere, some JavaScript code modifies it. That's where you need to do your updating. You don't need magic, you just need a function call. Regarding the HTML generation, there are a number of ways to do that. What you pick may depend o

[jquery-dev] Re: binding JSON to DOM

2009-10-01 Thread Michael Geary
Extending Object.prototype will break jQuery. On Thu, Oct 1, 2009 at 2:10 PM, Andrea Giammarchi < [email protected]> wrote: > You could use Object.prototype.watch, compatible with IE with my > createWatcher strategy ... this is not strictly jQuery related, but it > worked for me, hope i

[jquery-dev] Re: binding JSON to DOM

2009-10-01 Thread Andrea Giammarchi
You could use Object.prototype.watch, compatible with IE with my createWatcher strategy ... this is not strictly jQuery related, but it worked for me, hope it will help: http://webreflection.blogspot.com/2009/01/internet-explorer-object-watch.html Regards On Tue, Sep 29, 2009 at 3:50 PM, Nathan B

[jquery-dev] Re: binding JSON to DOM

2009-09-29 Thread Nathan Bubna
The only thing i can think of offhand is to set up an interval that checks for modifications and fires an event when it detects one. Seems like a pretty heavy solution though. As for the JSON-DOM binding, the Values plugin does that and can handle complex (nested, arrays, etc) objects too. http:/

[jquery-dev] Re: binding JSON to DOM

2009-09-29 Thread Rick Waldron
Can you post your Observer/Observable pattern? On Tue, Sep 29, 2009 at 2:49 AM, Cory wrote: > > Hi All, > > I'm new to the discussion boards so my apologies if this question has > been answered, (I searched but maybe I wasn't calling it the right > thing.) > > I'd like to create a JSON backing d