CA Gen calendar control for Web Generation fails to load in Internet Explorer 11
search cancel

CA Gen calendar control for Web Generation fails to load in Internet Explorer 11

book

Article ID: 102321

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed

Issue/Introduction

An HTML Control containing JavaScript to display a Gen Date field as a Calendar control loads the control successfully for Chrome & FireFox browsers but fails with a JavaScript 'type' error under Internet Explorer 11 (the officially supported browser for Gen 8.6).
For example the Procedure Step/Window TEST_SCREEN has a Date field with name GEN_DATE and the HTML Control HTMLControl1 contains : 
<script> 
window.onload = function(){ 
document.getElementById('GEN_DATE').type = 'DATE'; 

</script> 


The IE11 JavaScript error is:
Line: 3 
Error: Unable to set property 'type' of undefined or null reference

Environment

Gen 8.x Web Generation

Cause

Internet Explorer 11 (IE11) and earlier versions of IE do not support a JavaScript type of 'date'. However the latest Microsoft Edge browser does support the 'date' type.

Resolution

Use Chrome, Firefox or Edge browsers.