简体   繁体   中英

Grails formRemote update browser url

I am building a single page grails application which uses formRemote and submitToRemote tag to load new .gsp pages into a div in my current page.

On each of these updates, I want to change the browser url and allow back button on the browser window to get back to previous state of my .gsp (the state before page is updated).

Is it possible to change the browser url on div update in my grails application?

Html5 provides a history api which will allow you to achieve your single page application browsers back button issue try this link ' http://html5demos.com/history '. I will suggest you to check some single page application framework like 'angularjs' which might help you a lot with your application

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM