views:

1405

answers:

3

Hi, I have been searching around for a way to create a multi step form such as: http://planner.builtbybuffalo.com/step-1/

I couldnt find any resources, just other examples, the one I am trying to create will be a 3 part process. I am going to be building this in jQuery.

I can understand the way to go from step to step, fadein/out, etc. But having a marker change and say what step.

Thoughts?

Ryan

+2  A: 

Try this blog post from Janko

"Turn any webform into a powerful wizard with jQuery (FormToWizard plugin)"

Here is his demo .

I haven't used this plugin from him but I know that he has very good posts that I have used in the past.

I hope this helps. Oran

orandov
Looks great! I am going to go try this out.
Coughlin
+1  A: 

Looks like the steps on the timeline are evenly spaced. It might be as simple as multiplying the step number by the width and divide by the number of steps to get the distance the marker has to travel. Then use jQuery.animate to animate the position of the marker.

Sandro

Sandro
thank you! I will try that, i like how that animates to the next marker.
Coughlin
if each form "step" is in a <div>, then you could take it as far as to build the step indicator dynamically by breaking apart the horizontal bar, each numbered circle, and (obviously) the marker into their own images, use jQuery to find out how many steps (<div>s) are in the form and loop that many times to build the indicator using the math explained above. The marker gets placed at the current step.
Justin Lee
A: 

The link you provided is making use of MooTools instead of jQuery. Take a look at how they do it (their implementation is a good approach I think).

Their JS file

You could implement nearly the exact same functionality and though your methods and syntax will vary, the idea could reproduced easily.

The neatest thing in here... in my opinion is the use of MooTools' Fx.Morph which takes an element and animates the properties from one class to another. That is a neat idea.

sberry2A