Sequence Timer

The Sequence Timer Play/Pause button will start/pause the sequence while it is running but it will not reset the sequence so it can be repeated.

Current code for the button is

onclick="fwPlaySeqTimer=!fwPlaySeqTimer; FWSeqTimer();">

How can this or the action be modified to restart the sequence without reloading the page.

David


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Can you post a link to the page? I’m pretty sure it’s not possible, because all that this effect does is store a reference to the current item, and then look ahead to see if there’s a “next” item. But there may be a way to force the current item to be the last item on the page, which would cause it to roll over to the beginning again.

Walter

On May 17, 2011, at 7:38 PM, DeltaDave wrote:

The Sequence Timer Play/Pause button will start/pause the sequence while it is running but it will not reset the sequence so it can be repeated.

Current code for the button is

onclick="fwPlaySeqTimer=!fwPlaySeqTimer; FWSeqTimer();">

How can this or the action be modified to restart the sequence without reloading the page.

David


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter

How goes RailsConf?

The page is at http://www.deltadesign.co/examples/sequencetimer.html

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’ll look at this when I’m out of the pub and back in the conference center. Tonight, after the evening keynote, we’re having a jam session, and I get to show off my amazing guitar chops.

The conference has been great. Met some heroes, got the author of Nokogiri to add a feature I need for my ePub builder project, I’m pretty pleased with having made the trip.

Walter

On May 18, 2011, at 4:06 PM, “DeltaDave” email@hidden wrote:

Hi Walter

How goes RailsConf?

The page is at http://www.deltadesign.co/examples/sequencetimer.html

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sounds very worthwhile but way over the heads of us mere mortals.

Appreciate your time. Enjoy!

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This will get you back to the start, but it won’t stop the animation:

<p><a href="javascript:void()" onclick="fwCurrSeq = 0;">back to start</a></p> 

Walter

On May 18, 2011, at 4:06 PM, DeltaDave wrote:

Hi Walter

How goes RailsConf?

The page is at http://www.deltadesign.co/examples/sequencetimer.html

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On my example page at http://www.deltadesign.co/examples/sequencetimer.html I have 3 buttons. (Play, Pause, Replay)

The Play Button works fine - standard play/pause sequence timer action.

As does the Pause Button (standard play/pause sequence timer action).

The Replay button has the following - slight variation on the code you posted -

<p class="style26 f-lp"><a href="javascript:void()" onclick="fwCurrSeq = 0; fwPlaySeqTimer; FWSeqTimer();"><span class="style88">Replay</span></a></p> 

And will restart the sequence timer if it is allowed to play through once after clicking the Play Button.

If the Pause Button is used during a sequence then the Replay Button wont work to Replay the sequence.

I do get a SyntaxError: Parse error from the Replay button when viewed with Safari Developer so there is something wrong? But I can’t see what.

I was also wondering if the code from the Replay Button could be used to convert the Play/Pause action to make a Replay action.

This is the section in Play/Pause which I think is relevant.

			theImg[fwParameters.trigger] = '"fwPlaySeqTimer=!fwPlaySeqTimer; FWSeqTimer();"';
			SetCSSAttribute(theImg, "cursor", "pointer");

Any thoughts.

David


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter

Now that you are back from Rails I was wondering if you had any more insight into this.

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This is a tough one. First of all, you have three layers of P tags
around your trigger for the re-play button. It looks like you used an
inline Markup Item to insert the link, and the link code I posted
already had a P tag around it. Still doesn’t account for the other
layer of P, maybe it was because there was an IMG tag, and Freeway
always wraps those with a P. Once I cleared that up, I found that
there was a syntax error, as you noted, unless I made the
fwPlaySeqTimer; into fwPlaySeqTimer=true; or fwPlaySeqTimer=false;
Neither one cleared up the original problem, where a click on the
button would stop the animation and none of the other buttons would
ever work again. I still haven’t cracked the code on this one.

Walter

On May 19, 2011, at 5:55 PM, DeltaDave wrote:

On my example page at http://www.deltadesign.co/examples/sequencetimer.html
I have 3 buttons. (Play, Pause, Replay)


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have revised it slightly to http://www.deltadesign.co/examples/sequence2.html

Using this method to hide the Play button would it not matter if the Replay button only did fwPlaySeqTimer=True ?

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What’s happening here is that if you keep clicking the Replay button,
you start “stacking” loops on top of one another. The issue here is
that you need to tear down the effect before you start over again.
Otherwise the first one keeps playing, and the second, third, whatever
also play, so the thing starts blurring through the changes. After a
while, all of the loops get to the end and the effect stops.

Walter

On May 21, 2011, at 2:29 PM, DeltaDave wrote:

I have revised it slightly to http://www.deltadesign.co/examples/sequence2.html

Using this method to hide the Play button would it not matter if the
Replay button only did fwPlaySeqTimer=True ?

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This Action is crying out to be re-written in a modern, unobtrusive
style. Then you could extend it with callback functions and everything
could be as fancy as you need it to be.

Walter

On May 21, 2011, at 2:29 PM, DeltaDave wrote:

I have revised it slightly to http://www.deltadesign.co/examples/sequence2.html

Using this method to hide the Play button would it not matter if the
Replay button only did fwPlaySeqTimer=True ?

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This Action is crying out to be re-written…

Tweaking an action I can do - rewriting is a different story that will have to wait.

Thanks for your help and I will have a look at implementing fwPlaySeqTimer=true;

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options