Ahhh, thanks to all of you, I got it working:
$('.paginate li > a').livequery('click', function(event) {
what = this.rel;
which = '#' + what;
where = this.href;
$(which).fadeOut('slow', function() {
$(which).load(where, {targ:what}, function() {
Hi Wizzud, thanks for the comprehensive reply... The information you
provided should be very helpful to me... I am at work now, but plan on
fix'n up my code later tonight. :)
I will work on things a bit further and report back with my findings.
Again, many thanks! I really appreciate your time a
Hi Dave, thanks for the feedback, I really appreciate your help. :)
Here is my code again:
$('.paginate li > a').livequery('click', function(event) {
what = this.rel;
$('#' + what).fadeOut('slow', function() {
$(this).load(this.href, {'targ': what}, function() {
There's a difference in the origin of your href between the initial
code that 'worked' and the first posted re-try that didn't.
In the first one - the working code, as was -
// 'this' must be referring to some element, say X
$('#' + this.rel) // select some other element, say Y
.fadeOut('slow'
Your original code looked okay to me
BTW, this is the docs on ajax load, the other is the load event
binding.
http://docs.jquery.com/Ajax/load
What error are you getting? The diff with the working version seems to
point to a problem with the fadeOut callback...
Hi Jake, thanks for the reply, I really appreciate your help. :)
Here is a version of my code that works:
$('#' + this.rel).fadeOut('slow').load(this.href, {'targ': this.rel},
function() {
$(this).fadeIn('slow');
});
Where 'targ' is a post variable.
Basically, I would like to wait for
What are you trying to accomplish with load()? From the documentation:
http://docs.jquery.com/Events/load
I don't see any reference to the usage you're attempting.
- jake
On Dec 6, 2007 8:34 PM, Micky Hulse <[EMAIL PROTECTED]> wrote:
>
> Hi all, I hope my question is not too silly... I just wa
7 matches
Mail list logo