Andrew,
It is simple to create the Timeline in response to whatever event you want - 
page load or button click.
Changing the initialization from onload to onclick is very easy. If the 
timeline flashes on screen and then disappears, perhaps there is some other 
javascript error ocurring. Do you see any error messages in the console? 
Firefox with Firebug, Chrome and Safari all have excellent Javascript debuggers 
that can help identify what's going on.

Is there a website where we might see an example of your timeline code?

As to your second comment about what you really want - are the timelines on the 
list available to the user all structured similarly? I mean, do they all share 
common band layouts and labeling? If so, then it is relatively simple to 
*create* the Timeline once, and simply change out the *data* in response to the 
user picking a timeline from the list. 

This gives a much nicer user experience, as you don't have to dispose and then 
re-create the entire timeline.

Hope we can help you out.

--Mike


On Mar 11, 2012, at 6:03 PM, ZermattMan wrote:

> I want to show a timeline on a button click, rather than on page load.
> I put the onload() function on a button, like this -
> 
> <asp:Button ID="Button5" runat="server"   OnClientClick="showTL();"
> Text="Show Timeline" />
> 
> and changed the function name to showTL().
> 
> When I click the button, the timeline flashes on then disappears.
> 
> Any help please!
> 
> What I actually want to do is allow the user to select any timeline
> from a list and view it.
> 
> I have been looking at this from every angle, but I don't quit know
> enough about HTML, JavaScript, VB etc. Frustrating...
> 
> TIA
> 
> Andrew McGurk

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to