+ Start a Discussion
JitendraJitendra 

IE9 issue with AJAX inside inline Visualforce page

Hi everyone,

 

I have inline visualforce page with some AJAX operations. However it was not working with IE9, so i used "ShowHeader=True" in <apex:page>. This solved the AJAX problem with IE9. But this created a new issue.

 

In my Inline VF i have few input fields. So whenever the page is loaded it autoscroll'sto middle of the page where inline VF is present and auto focus to first input field. 

 

Please help me to resolve this issue.

 

Thanks in advance.

 

SamuelDeRyckeSamuelDeRycke

There are some cases where I block autofocus on the first input element (for instance when that's a datetime field),  maybe the code I use in those cases can help you out here

 

<span id="focusDistraction"></span>

<script type="text/javascript">
	    /* prevent autopup of the date inputfield by the default focus behavoir */
	    window.onload=function() {
	        document.getElementById('focusDistraction').focus();   
	        
	    }	    
</script>

 

JitendraJitendra

Thanks for your reply.

 

I tried this and still page auto scroll to inline visualforce page. 

 

Any other trick ?

Ankit AroraAnkit Arora
JitendraJitendra

Thanks Ankit.

 

I tried this solution also but didnt worked.