Embedding twitter timeline widget

Aug 10, 2013 at 9:33 AM
I add the twitter code described here to a content div on a page:

When I use nova.application.gotoPage() to go to this page for the first time, it shows the twitter widget as expected. When I go to another page and then back to the twitter page, it will no longer show the twitter widget. It seems I need to somehow re-execute the script. Can anyone help me with this? Thanks in advance.
Aug 10, 2013 at 11:09 AM
It may be because the twitter widget only executes when it's firstly loaded. When you use .gotoPage(), the window object doesn't change.

You may need to put the twitter script reference in index.html, and manually call twitter script on that page.
Aug 10, 2013 at 6:50 PM
I got it to work. I used nova.application.currentPage.onLoaded() on the twitter page to call the twitter script. Thanks!