[jQuery] Re: scrollTo anchor or class in div

2008-09-11 Thread Ariel Flesler
It turned out to be pretty simple. You put $('#showsList') And ul class=showsList They obviously don't match :) -- Ariel Flesler http://flesler.blogspot.com/ On Sep 10, 8:51 pm, pedalpete [EMAIL PROTECTED] wrote: I've upgraded to 1.2.6, and added an alert to show that scrollToshow() is

[jQuery] Re: scrollTo anchor or class in div

2008-09-11 Thread pedalpete
And for todays lesson, this is how we hang our heads in shame... :( SSSO sorry about that Ariel - I checked that like 3 or 4 times after the function, but apparently didn't check before the function On Sep 11, 11:46 am, Ariel Flesler [EMAIL PROTECTED] wrote: It turned out to be pretty

[jQuery] Re: scrollTo anchor or class in div

2008-09-10 Thread Ariel Flesler
It makes sense, yes. I added some breakpoints, and it doesn't seem to be stepping into getShow(). That could be my crazy Firebug. Could you make sure the scrollToShow() function is actually being called ? The page reports one of those odd errores about Location.toString(). Also, note that

[jQuery] Re: scrollTo anchor or class in div

2008-09-10 Thread pedalpete
I've upgraded to 1.2.6, and added an alert to show that scrollToshow() is actually being called. The Location.toString() error is a flash cross-domain xml error, nothing to do with jquery. I've set-up a test site for this at http://zifimusic.com/scrollTo?showid=1388718 but just to confirm, the

[jQuery] Re: scrollTo anchor or class in div

2008-09-09 Thread pedalpete
Hey Ariel, I've kept playing with this, but just can't seem to get it to work. I've launched my site now, so if you have a chance, can I ask you to take a look? The site is www.HearWhere.com - and the scroll I'm trying to get to is after you select an artist, and the artists shows list appears

[jQuery] Re: scrollTo anchor or class in div

2008-09-09 Thread Ariel Flesler
I really can't find what you mention, I see the content that is loaded by ajax, but can't figure out what kind of scrolling you need. If you can reduce the situation/problem to something small and minimalistic, I'll check it out asap. Cheers -- Ariel Flesler http://flesler.blogspot.com/ On

[jQuery] Re: scrollTo anchor or class in div

2008-09-09 Thread pedalpete
Sorry Ariel, My bad, this might make it easier http://HearWhere.com?showid=1388718 if you follow that link, it will load coldplay and there shows. If you scroll down to the upcoming coldplay shows, there is a section with a small map on the left and a scrollable list on the right. From that

[jQuery] Re: scrollTo anchor or class in div

2008-09-07 Thread Ariel Flesler
ScrollTo doesn't bind, just scrolls, so no need to use LiveQuery to call it. Also, id's can't start with a number. Example: function scrollToID( id ) { $('#hold').scrollTo( '#'+id, 1000 ); } $('#hold').load('someData.php', function(){ scrollToID( 'foo' ); }); -- Ariel Flesler

[jQuery] Re: scrollTo anchor or class in div

2008-09-06 Thread Karl Rudd
Use something like id=number1 rather than name=number1. (Just a note, technically an id needs to start with a none numeric character). Then use target: '#'number' + trackid The name attribute is really only for form input elements. Karl Rudd On Sat, Sep 6, 2008 at 12:17 PM, pedalpete [EMAIL

[jQuery] Re: scrollTo anchor or class in div

2008-09-06 Thread pedalpete
Thanks Karl, I didn't realize I shouldn't start an id with numeric characters, I've been doing it for a long time without issue. I've tried the changes you recommended, but still no scrolling. I added an 'a' to the beginning of the id, and now my code is [code] function

[jQuery] Re: scrollTo anchor or class in div

2008-09-06 Thread pedalpete
I've also tried using a class instead of id, but no joy :( On Sep 6, 3:59 pm, pedalpete [EMAIL PROTECTED] wrote: Thanks Karl, I didn't realize I shouldn't start an id with numeric characters, I've been doing it for a long time without issue. I've tried the changes you recommended, but still

[jQuery] Re: scrollTo anchor or class in div

2008-09-06 Thread Ariel Flesler
That function is meant to start a scrolling animation ? LocalScroll is meant to be called to prepare the field, that is, bound events that will eventually trigger scrolling. ScrollTo is the one to call for an instant scroll. You either call LocalScroll at start, or ScrollTo manually if you want

[jQuery] Re: scrollTo anchor or class in div

2008-09-06 Thread pedalpete
Thanks Ariel, I guess I should be using scrollTo rather than LocalScroll. Unfortunately I won't have a demo up for a few days. I started to wonder if part of the problem was that the scrollable list is returned via ajax, so I have tried using livequery, but still no scrolling. Here's the code