Is this the best way to accomplish this? If use one other the other for all browser, one browser works and then the other stops working.
Right now, for this to work in each browser I have to do the following...
For Chrome/FireFox/Safari... I have to call add_init
For IE... I have to call add_load
<script language="javascript" type="text/javascript"> |
function OnLoad() { |
var appVersion = navigator.appVersion; |
if (appVersion.indexOf('MSIE') > 1) { |
Sys.Application.add_load( |
function() { |
var zoneDetails = $find('radZone1'); |
var zoneStatus = $find('RadDockZone1'); |
RestoreDocksInZone(zoneDetails); |
RestoreDocksInZone(zoneStatus); |
} |
); |
} |
else { |
Sys.Application.add_init( |
function() { |
var zoneDetails = $find('radZone1'); |
var zoneStatus = $find('RadDockZone1'); |
RestoreDocksInZone(zoneDetails); |
RestoreDocksInZone(zoneStatus); |
} |
); |
} |
} |
</script> |
</head> |
<body onload="OnLoad();"> |
... |
</body> |
Thanks,
Stephen