The optional callback function is ideal for this:
>From the examples at http://docs.jquery.com/Ajax/load
$("#feeds").load("feeds.php", {limit: 25}, function(){
alert("The last 25 entries in the feed have been loaded");
});
Here the callback is the third parameter, a function you call once the
load is complete.
**--** Steve
On Feb 15, 11:44 pm, jhm <[email protected]> wrote:
> New to jquery, but it's totally awesome so far. I've run into a snag
> that you all probably know how to deal with.
>
> I'm using .load() to load a snippet of HTML in response to a click. I
> need to modify some of the HTML depending on what the source of the
> click. Even though I load the snippet first, the modification I'm
> trying to perform doesn't seem to see the freshly loaded HTML, and
> instead operates on the original HTML.
>
> Seems like a timing issue, but I sure believe there must be a way to
> do this. Any suggestions?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" 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-ui?hl=en
-~----------~----~----~----~------~----~------~--~---