Question:
As part of a BSP application I have created many views which include javascript. This all works fine given some browser limitations.
Along comes Internet Explorer 7 beta and the release candidate 1. Out of the many thousands of registered users of this application, more and more are trying to access using IE7. The result is that the application is useless to this ever growing group.
Where IE6 succeeds, IE7 does not.
Here is the rub:
When an IE7 user hits the site they hit the login.htm page and recieve a javascript error message, "Object expected" Line 256 Char 1
view source at this line brings me to a suprise. SAP inserts a <div> and <script> blocks at the bottom of my coded HTML!
I then notice that is common practice on all my pages, but the content varies by page. The pages that fail for the IE7 users all fail at the same point. See below:
<div onMouseOut="checkCalPosition()" id="sapDate" style="position:absolute; width:140px; height:140px; left:-150; top:-150; z-index:400;"></div><!--080419 -->
<script language="JavaScript">
function sapArrErase(){
if(typeof(sapUrMapi_PcTabSeq_Registry)=='undefined')
return;
sapUrMapi_PcTabSeq_Registry1=sapUrMapi_PcTabSeq_Registry;
sapUrMapi_PcTabSeq_Registry=new Array();
for(var p in sapUrMapi_PcTabSeq_Registry1){
if(document.getElementById(p)!=null)
sapUrMapi_PcTabSeq_Registry[p]=true;
}
}
function sapOnResize(){
sapArrErase();;
}
window.onresize=sapOnResize;
window.attachEvent ('onload', sapOnResize);
bindLabels( );
</script>
<!--080844 -->
</body>
</html>
The point of failure is at the line begining 'bindLabels( );'
The solution must include understanding why IE6 either never reaches this line, or IE6 does reach the function call and 'finds' the function.
Without a solution, this application will fall into a death spiral as users 'upgrade' to IE7.
Any help is apprieciated.
Answer:
IE7 is not supported by SAP.