Chrome doesn't cache hidden form field values for use in browser history

前端 未结 3 2197
天涯浪人
天涯浪人 2021-01-01 19:33

I have a ASP.Net web form that contains both text box fields and hidden fields. The hidden field values are modified dynamically using client side JavaScript. Posting the fo

3条回答
  •  臣服心动
    2021-01-01 20:33

    I can't seem to comment, maybe my rep too low but felt this is important to mention.

    I just ran into this problem myself in Opera so borrowed Sanesh Fernando's solution which worked around the hidden fields not being reinstated (Thanks Sanesh). However what caused a problem for me was that Javascript fires before the form fields are updated so if you check values with javascript as I was doing then I had to add a setTimeout to ensure Opera updated before I checked the values.

    Cookies are as stated another way but what with the ridiculous EU directive on requiring cookie usage agreement from the visitor it's not a solution for me.

提交回复
热议问题