Why not just retrieve the id/name ?

onAfter:function( anchor ){
//...
$('#detailsContainer
.description').load('/index/description/id/' + anchor.id );
//...
}

Cheers
--
Ariel Flesler
http://flesler.blogspot.com

On 14 jun, 20:23, "Michael Ray" <[EMAIL PROTECTED]> wrote:
> Hi, I am using the example code written on the localScroll page
>
> I am trying to figure out how to pass the anchor value of the inline link to
> the load() function.
>
> $('#detailsContainer .description').load('/index/description/id/' +
> ?????????);
>
> The full code is below:
>
> <script type="text/javascript">
>     jQuery(function( $ ){
>
>         $("#albumResult .description").css("display","none");
>
>         /**
>          * Most jQuery.localScroll's settings, actually belong to
> jQuery.ScrollTo, check it's demo for an example of each option.
>          * @seehttp://flesler.webs.com/jQuery.ScrollTo/
>          * You can use EVERY single setting of jQuery.ScrollTo, in the
> settings hash you send to jQuery.LocalScroll.
>          */
>
>         var target = $('#albumResult').get(0);//the scrolled div
>
>         /**
>          * restart the scroll position to ( 0, 0 ) (Firefox doesn't reset
> it)
>          * could use $(target).scrollTo( 0, {axis:'xy'));
>          * but this needs to be quick(synchronous), to reset before
> $.localScroll.hash() begins
>          */
>         target.scrollLeft = target.scrollTop = 0;
>
>         //scroll initially if there's a hash (#something) in the url
>         $.localScroll.hash({
>             target: target, //could be a selector or a jQuery object too.
>             axis:'xy',//the default is 'y'
>             queue:true,
>             duration:1500
>         });
>
>         var $last = $([]);//save the last link
>
>         /**
>          * NOTE: In the former version of the demo, I called
> $('#navigation').localScroll()
>          * Now I want to also affect the >> and << links, so I'll use
> $.localScroll() instead
>          */
>         $.localScroll({
>             target: target, //could be a selector or a jQuery object too.
>             axis:'xy', //the default is 'y'
>             queue:true,
>             duration:1000,
>             hash:true,
>             onBefore:function( e, anchor, $target ){//'this' is the clicked
> link
>                 $('#detailsContainer .description').slideUp();
>
>                 $last.removeClass('scrolling');
>                 $last = $(this).addClass('scrolling');
>                 if( this.blur )
>                     this.blur();//remove the awful outline
>             },
>             onAfter:function( anchor ){
>                 $last.removeClass('scrolling');
>                 $('#detailsContainer
> .description').load('/index/description/id/' + ?????????);
>                 $('#detailsContainer .description').slideDown();
>             }
>         });
>     });
> </script>

Reply via email to