Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset tg1 without reloading the page #62

Open
kwoxer opened this issue Mar 6, 2015 · 0 comments
Open

Reset tg1 without reloading the page #62

kwoxer opened this issue Mar 6, 2015 · 0 comments

Comments

@kwoxer
Copy link

kwoxer commented Mar 6, 2015

So everything works well. I load my json with tg1 = $("#timelinearea").timeline({... all is fine.

But I would like to load another json file without reloading the page. So I was thinking about tg1 = {}

But that does not work properly. I don't get any error. But in the console I see that he is adding layer after layer. So at the second loadage instead of one Array [ "titlebar:", "hiddenBar" ] I have 2 of them and so on.

I can also see in the presentation that there are many layers because the text is getting bold because of the different text layers.

So the timeline is not correctly resetted in that way. So my question is how can I properly reset the timeline. I know I could save all data to one json, but I don't like it that way.

I would like to load another timeline from another json file without reloading the page. That's it =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant