[jQuery] Re: Cycle: Direct link from another page

2008-10-23 Thread Mike Alsup
Alright, This is really messy, but it works. If anyone's got any tips on cleaning it up, have at it.    if ($('body').is('#page-photography')) { //I only want it to fire on one page. Guessing I save some miniscule amount of overhead on the other pages.                 var loc =

[jQuery] Re: Cycle: Direct link from another page

2008-10-23 Thread isaacn
Thanks--that definitely got it a lot cleaner. I ended up needing to do: var $slide = $(window.location.hash); if ($slide.length) { // found a match on hash id var $slideshow = $slide.parent().parent(); var

[jQuery] Re: Cycle: Direct link from another page

2008-10-22 Thread Jonathan Sharp, Out West Media
Hi Isaac, Do you have a link you could post? It's unclear to me exactly what the question is. Cheers, -Jonathan On Oct 22, 2008, at 6:59 PM, isaacn wrote: Is there a way to do a direct link to an arbitrary slide, from another page? I saw the demo where the link was on the same page, but

[jQuery] Re: Cycle: Direct link from another page

2008-10-22 Thread Mike Alsup
Well, Cycle won't do that for you, but it lets you tell it which slide you want it to start on. So when your pages loads you can interrogate the current window.location.href value and determine from that which slide needs to be the first one displayed. Then call cycle with the 'startingSlide'

[jQuery] Re: Cycle: Direct link from another page

2008-10-22 Thread isaacn
I don't yet. Basically, there are 10 slides on Page A. On Page B, I want to have a link to Slide 3, Slide 6, and Slide X. There was a demo that showed how to do it if everything was on Page A, but nothing for if the links were on separate pages. I think I can follow Mike's lead below and get

[jQuery] Re: Cycle: Direct link from another page

2008-10-22 Thread isaacn
Thanks. I'll give it a shot. Isaac On Oct 22, 7:08 pm, Mike Alsup [EMAIL PROTECTED] wrote: Well, Cycle won't do that for you, but it lets you tell it which slide you want it to start on.  So when your pages loads you can interrogate the current window.location.href value and determine from

[jQuery] Re: Cycle: Direct link from another page

2008-10-22 Thread isaacn
Alright, This is really messy, but it works. If anyone's got any tips on cleaning it up, have at it. if ($('body').is('#page-photography')) { //I only want it to fire on one page. Guessing I save some miniscule amount of overhead on the other pages. var loc =