Hi,
I am developing a Web Portal application. I am testing the UI and it works flawlesly in FF, but does not work in IE. The problem (I think) is with the $addHandler and $removeHandler methods. When I am initializing the drag behavior of my widgets, I call the following method to add the mousedownhandler:
this.set_handle = function(value) {
if (_handle != null) {
$removeHandler(_handle, 'mousedown', this._mouseDownHandler);
}
_handle = value;
$addHandler(_handle, 'mousedown', this._mouseDownHandler);
}
In IE this breaks, with the error:
Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: element
It also breaks when I refresh the page, this time in $removeHandler. See below:
var $addHandler = Sys.UI.DomEvent.addHandler = function Sys$UI$DomEvent$addHandler(element, eventName, handler) {
/// <param name="element" domElement="true"></param>
/// <param name="eventName" type="String"></param>
/// <param name="handler" type="Function"></param>
var e = Function._validateParams(arguments, [
{name: "element", domElement: true},
{name: "eventName", type: String},
{name: "handler", type: Function}
]);
if (e) throw e; /// <------------------------- Error occurs here!!!!!
var $removeHandler = Sys.UI.DomEvent.removeHandler = function Sys$UI$DomEvent$removeHandler(element, eventName, handler) {
/// <param name="element" domElement="true"></param>
/// <param name="eventName" type="String"></param>
/// <param name="handler" type="Function"></param>
var e = Function._validateParams(arguments, [
{name: "element", domElement: true},
{name: "eventName", type: String},
{name: "handler", type: Function}
]);
if (e) throw e; ///<------------------------------ Same here - arghhh!
So, element is undefined. But why??? (I have set the ScriptManager's LoadScriptsBeforeUI property to false, to no avail.)
Thanks,
kreid