Alright, I got it working now: http://jsfiddle.net/aqmZa/

I used onScrolledTo instead of onComplete and on page load I pad each 
smoothScroll link and accordion header with the corresponding number. If 
anyone has ideas for a more elegant solution let me know.

On Friday, May 11, 2012 12:24:28 PM UTC-4, Corbin wrote:
>
> Thanks for the response, I just moved to a new city and finally got 
> internet service had a chance to take a look at this again. I had changed 
> the code but hadn't adjusted that part. I think I was overthinking things 
> (or underthinking). Here is what I have now and it almost works: 
> http://jsfiddle.net/HSGmP/ I'm using the onComplete function of 
> SmoothScroll but I'm not sure how to get the appropriate Accordion number 
> to display. I suppose I could add the numbers into the a names and extract 
> them, but there must be a more dynamic solution.
>
> On Thursday, May 3, 2012 4:45:55 PM UTC-4, philthathril wrote:
>>
>>         if (window.location.hash == "#" + link.id) {
>>
>> Where is "link" defined. This is throwing an error because it doesn't 
>> exist.
>>
>> Cheers,
>> ~Philip
>>
>>
>> On Thu, May 3, 2012 at 11:38 AM, Corbin <iamcor...@gmail.com> wrote:
>>
>>> I am trying to get Fx.SmoothScroll to scroll to a header item that is 
>>> also a trigger of an Fx.Accordion section. I am having trouble trying to 
>>> get it working. Here is the code in a jsFiddle: 
>>> http://jsfiddle.net/xqM5T/6/
>>>
>>> I would really appreciate some assistance, I'm really close to getting 
>>> it working but not quite putting everything together right.
>>>
>>
>> -- 
>> http://lonestarlightandsound.com/
>>  
>

Reply via email to