> because I'm only finding docs for a load function with a single func
> argument ... what is this.href doing?


I believe the online docs are accurate, but load is a flexible
function that you can pass one, two or three args.  And href is an
important one - that's what you're loading!

$('#target').load('myFile.html');

$('#target').load('myFile.html', function() {
    alert('in callback');
});

$('#target').load('myFile.html', { name: someData}, function() {
    alert('in callback');
});


> does this mean that addClickHandlers gets called EACH time #target loads?

It means that  addClickHandlers gets called each time that
$(...).load() line executes and receives a response from the server.

Mike

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to