Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > page auto scrolling after post in IE View modes: 
User avatar
Member
Member
chris.pocock-bmf.com - 7/23/2012 11:56:32 PM
   
page auto scrolling after post in IE
Hi,

After a bizform post on a particular page I need to scroll to the top and after my code makes that happen something else is scrolling the page back to the bottom (only in IE). I believe it's this code (which only appears in IE) but I can't find where it is in the CMS.

<script type="text/javascript">
//<![CDATA[

theForm.oldSubmit = theForm.submit;
theForm.submit = WebForm_SaveScrollPositionSubmit;

theForm.oldOnSubmit = theForm.onsubmit;
theForm.onsubmit = WebForm_SaveScrollPositionOnSubmit;
Sys.Application.initialize();
//]]>
</script>
</form>
</body>
</html>


Is there a way to disable it for just one page?

Thanks,
Chris

v5.5.3789

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 7/25/2012 12:48:57 AM
   
RE:page auto scrolling after post in IE
Hello,


for other visitors:

It helped to add this code:

<browsers>
<browser refID="Default">
<controlAdapters>
<adapter controlType="System.Web.UI.HtmlControls.HtmlForm" adapterType="CMS.OutputFilter.HtmlFormAdapter" />
</controlAdapters>
</browser>
<browser refID="IE6to9">
<capabilities>
<capability name="supportsMaintainScrollPositionOnPostback"
value="false" />
</capabilities>
</browser>

</browsers>

to the default outputfilter.browser file (in the App_Browsers folder).


Best regards,
Helena Grulichova