javascript - Programmatically load a url using Ratchet push.js -
the ratchet single-page application framework uses push.js load new pages view. example:
<a href="link.html">link<a>
this use push replace in .content div .content of link.html. update .bar-title , .bar-tab if have them on both pages.
i use same mechanism javascript function call. before start patching ratchet, there elegant way that?
thanks!
user2078515's answer didn't work me. options
isn't defined correctly , defining function way doesn't put on global scope. push on global scope anyway, can this:
push({ url: 'file:///android_asset/www/userlist.html' });
i can't transition
work reason might separate issue...
Comments
Post a Comment