Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MaintainScrollPositionOnPostback Does Not Work In Firefox 4.0 [duplicate]

I am using VS 2008. I like the feature maintainscrollpositiononpostback. It works fine with IE 8. But it does not work consistently with Firefox. Sometimes, instead the line I click on goes to the bottom of the page. The field I am trying to refresh is with a div tag with overflow set to auto. Also I have several update panels with updatemode set to conditional. This means only the panel affected should be refreshed. This is also not working in the case on Firefox.

I have searched the web for possible solutions but none of them work for me.

Most of my users use Firefox so this is a problem for me.

Thanks in advance,

Bob

like image 746
Bob Avallone Avatar asked Nov 25 '25 11:11

Bob Avallone


2 Answers

scrollsaver to the rescue? http://en.hasheminezhad.com/scrollsaver

I found this little js file a few weeks ago after implementing Post/Redirect/Get on a few of my pages. It may enable you to turn off maintain on your pages if you throw it in the master. I haven't fully tested it with ff4/5 or chrome...

like image 63
abend Avatar answered Nov 28 '25 03:11

abend


Edit the Browser Capabilities file, and explicitly set it so that MaintainScrollPositionOnPostback is supported on Safari Browsers.

like image 31
Som Avatar answered Nov 28 '25 03:11

Som



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!