[jQuery] Re: How to bind to a dynamically created object

2008-02-04 Thread wyo
On Feb 3, 5:39 pm, Brandon Aaron <[EMAIL PROTECTED]> wrote: > Ugh ... large tables always needs lots of optimizations. First ... > you'll want to minimize the number of .append()s. Concat all your HTML > into an array and then append. Something like this: > > var html = []; > ... > Thanks. > caus

[jQuery] Re: How to bind to a dynamically created object

2008-02-03 Thread Brandon Aaron
Ugh ... large tables always needs lots of optimizations. First ... you'll want to minimize the number of .append()s. Concat all your HTML into an array and then append. Something like this: var html = []; for (var i in data) { // generate your html like this html.push('blah'); } // once

[jQuery] Re: How to bind to a dynamically created object

2008-02-02 Thread wyo
> maybe cutting that 'id=' ? > simply: > $('.expanding, #'+i+). Unfortunately not since I've done this before. IMO the only solution would be to use the onclick clause in HTML but I haven't figured out to access jQuery from outside. E.g. yet this doesn't work so far. O. Wyss

[jQuery] Re: How to bind to a dynamically created object

2008-02-02 Thread andrea varnier
On 2 Feb, 18:06, wyo <[EMAIL PROTECTED]> wrote: >$('.expanding, id=#'+i+). > Is this because of my code or livequery? any idea how to solve it? maybe cutting that 'id=' ? simply: $('.expanding, #'+i+).

[jQuery] Re: How to bind to a dynamically created object

2008-02-02 Thread wyo
On Feb 2, 5:06 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > http://brandonaaron.net/docs/livequery/ > This will do the trick. > Perfect. Yet if I rework the sample to bind each image separate, the script takes for ages and the browser complains about stopping the script. for (var i in data

[jQuery] Re: How to bind to a dynamically created object

2008-02-02 Thread Glen Lipka
http://brandonaaron.net/docs/livequery/ This will do the trick. Glen On Sat, Feb 2, 2008 at 7:38 AM, wyo <[EMAIL PROTECTED]> wrote: > > Isn't it possible to bind to a previous created object? I've the > following code > >for (var i in data) { > $('#eintragsliste').append( >