The problem is that when I call
$('<div id="artist_'+id+'"></div>').appendTo("#data").load(newid, null,
function() {
The callback isn't being... called back.
tmcw wrote:
>
> I'm trying to get some sort of blocking scenario going on here, because it
> had race conditions...
>
> if(block == false)
> {
> block = true;
> var newid = "/artists/id/"+id;
> $('<div
> id="artist_'+id+'"></div>').appendTo("#data").load(newid,
> null, function() {
> $('#'+id).ScrollTo(800);
> block = false;
> prepare_links();
> });
> }
> else {
> alert("blocked");
> }
>
>
>
> tmcw wrote:
>>
>> Scratch that for the moment, something's awry here...
>>
>>
>> tmcw wrote:
>>>
>>> Thanks, I've got it fixed now, for the most part. Ha, except I think
>>> it's encountering race conditions and my CS major-in-progress might
>>> actually come into use, but probably not. You can check it out here -
>>> http://rockpolka.workingidea.com/
>>>
>>> Jörn Zaefferer wrote:
>>>>
>>>> tmcw schrieb:
>>>>> Does jQuery automatically update the DOM after new content is loaded
>>>>> via the
>>>>> .load() function? It seems like it's working in some cases and failing
>>>>> on
>>>>> others right now. If not, is there a way to manually update it? I'm
>>>>> binding
>>>>> a function to links with a certain class on document.ready, but when
>>>>> new
>>>>> links are loaded in, they don't trigger the function.
>>>>>
>>>> You have to reapply the event bindings to elements that you add later
>>>> to
>>>> the DOM, like the ones loaded via load().
>>>>
>>>> See also http://www.learningjquery.com/2006/09/sacrificial-lambda
>>>>
>>>> --
>>>> Jörn Zaefferer
>>>>
>>>> http://bassistance.de
>>>>
>>>>
>>>> _______________________________________________
>>>> jQuery mailing list
>>>> [email protected]
>>>> http://jquery.com/discuss/
>>>>
>>>>
>>>
>>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Dom-Updates--tf3036986.html#a8444057
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/