[jQuery] Re: timed events

2007-09-13 Thread Duncan
I am missing the # thanks On 9/14/07, Michael Geary <[EMAIL PROTECTED]> wrote: > > > From: Duncan > > > > But the following doesnt seem to work, how can I sort this out? > > > > for(var i = 0; i < r.length; i++){ > > //alert(r[i][0]) > > $(r[i][0] + ' > img').attr("sr

[jQuery] Re: timed events

2007-09-13 Thread Michael Geary
> From: Duncan > > But the following doesnt seem to work, how can I sort this out? > > for(var i = 0; i < r.length; i++){ > //alert(r[i][0]) > $(r[i][0] + ' > img').attr("src",r[i][1]); } > > r[i][0] has the id in it, r[i][1] has the image URL. So you are passing a

[jQuery] Re: timed events

2007-09-13 Thread Duncan
beauty - I will go with the second example. I am now returning an array with each item containing an array with 4 elements. Looping over this is cool, but see the following HTML: I need to change the src of the image within the ID'd div. But the following doesnt seem to w

[jQuery] Re: timed events

2007-09-13 Thread Erik Beeson
I don't get how mouseover relates to your timed intervals, but I'd say more like option A. You could do something like this (untested): $(window).load(function() { // don't start refreshing until the whole page has loaded setInterval(function() { $('.myItemsToUpdate').each(function() {