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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -