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
Browser history #17
Comments
This would be awesome! Do you have any plans on how to implement it? After I did my prototype for lift I found out there is also a HTML5 history api on most current browsers |
On Thu, Aug 11, 2011 at 9:14 PM, fmpwizard <
Who do you think gave me the idea? ;)
Not too specific.
|
I hope to have some time in the coming weeks to look over at the demo I did using Lift and I'll try to reduce the manual JavaScript I wrote and see what comes out. |
I finally had a need to do some history integration. It's actually not too bad, especially with the (recently merged) JsInterpolator: for(state <- signal.change) {
val newUrl = constructUrl(state)
page.queue(js"""history.pushState($state, "", $newUrl)""")
}
def popState(state: State) = signal ()= state
page.queue(js"""window.onpopstate = function(event) { ${popState _}(event.state)""") @fmpwizard better late than never :) I think this sort of obviates the need for a built-in feature, but I'm open to input. |
(I'm using reactive-routing for associating a " |
No description provided.
The text was updated successfully, but these errors were encountered: