I've been trying to test my web application using Internet Explorer 8 (release candidate 1) and have been experiencing some major problems. I'm hoping you can help me with this one.
I have a JavaScript Object that tracks the horizontal scroll position of a <div> element on the page. It sets a hidden field so that when the page is submitted to the server, the server code is able to retrieve the current scroll position. When the page is sent back to the browser, the server side code initializes the JavaScript Object with the scroll position retained.
This has all been working for quite some time now....but with the new IE8 RC1 I'm getting a Data Execution Prevention error message. It's displayed in a prompt informing me that:
When I hit the "close message" button in this prompt IE8 proceeds to crash.
This message appears when I am storing the scroll position of the <div> in the hidden field used to relay the scroll position to the server:
Does anyone know how to get around this problem?
Thanks for your time,
-Frinny
I have a JavaScript Object that tracks the horizontal scroll position of a <div> element on the page. It sets a hidden field so that when the page is submitted to the server, the server code is able to retrieve the current scroll position. When the page is sent back to the browser, the server side code initializes the JavaScript Object with the scroll position retained.
This has all been working for quite some time now....but with the new IE8 RC1 I'm getting a Data Execution Prevention error message. It's displayed in a prompt informing me that:
Data Execution Prevention helps protect against damage from viruses and other security threats.
This message appears when I am storing the scroll position of the <div> in the hidden field used to relay the scroll position to the server:
Code:
_onScroll: function() {
//this.get_element retrieves the <div> element
if (this.get_element()) {
this._LeftScrollPosition = this.get_element().scrollLeft;
//scrollPositionMessenger is the hidden field that relays the scroll position to the server
var scrollPositionMessenger = document.getElementById(this._ScrollPositionMessengerName);
if(scrollPositionMessenger != null)
{
//Error thrown here
scrollPositionMessenger.value=this._LeftScrollPosition;
}
}
Thanks for your time,
-Frinny
Comment