Browser back button and dynamic elements

前端 未结 2 973
孤独总比滥情好
孤独总比滥情好 2020-12-30 12:42

I have a page that uses jQuery to create a number of DOM elements dynamically based on what user picks from a

相关标签:
2条回答
  • 2020-12-30 13:38

    You need to manage history yourself if you want things to work in this way. You need Really Simple History.

    0 讨论(0)
  • 2020-12-30 13:43

    legenden - there are a number of possible solutions to this, I would check out these history plugins for one:

    • History Remote
    • jQuery History plugin
    • Deep Linking plugin

    They are a little fidgety, but you should be able to hack up something positive. I will also add, that this can probably be done by storing the dynamically elements in a cookie(s) and somehow repopulating. Check out the jQuery Cookie plugin. Hope that helped you get started.

    0 讨论(0)
提交回复
热议问题