82 lines
2.9 KiB
HTML
82 lines
2.9 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<!--
|
|
#
|
|
# (c) Copyright 2014, Blue J Software - www.bluejs.com
|
|
#
|
|
# MIT License (http://www.opensource.org/licenses/mit-license.php)
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person
|
|
# obtaining a copy of this software and associated documentation
|
|
# files (the "Software"), to deal in the Software without restriction,
|
|
# including without limitation the rights to use, copy, modify, merge,
|
|
# publish, distribute, sublicense, and/or sell copies of the Software,
|
|
# and to permit persons to whom the Software is furnished to do so,
|
|
# subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be
|
|
# included in all copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
# THE SOFTWARE.
|
|
-->
|
|
|
|
<html>
|
|
<head>
|
|
<meta Http-Equiv="Cache-Control" content="no-cache"/>
|
|
<meta Http-Equiv="Pragma" content="no-cache"/>
|
|
<meta Http-Equiv="Expires" content="0"/>
|
|
<script language="JavaScript">
|
|
// This function will be called when the user taps within
|
|
// the web component. Call by onclick method attached to element
|
|
execAction = function(action,val) {
|
|
// Raise an action
|
|
gICAPI.SetFocus();
|
|
gICAPI.SetData(val);
|
|
gICAPI.Action(action);
|
|
}
|
|
|
|
// This function is called by the Genero Client Container
|
|
// so the web component can initialize itself and initialize
|
|
// the gICAPI handlers
|
|
onICHostReady = function(version) {
|
|
var toolong;
|
|
if ( version != 1.0 )
|
|
alert('Invalid API version');
|
|
|
|
// Called by webcompnent frontcall to alter the HTML of the
|
|
// document
|
|
setById = function(id, value) {
|
|
document.getElementById(id).innerHTML=value;
|
|
}
|
|
|
|
// Initialize the focus handler called by the Genero Client
|
|
// Container when the DVM set/remove the focus to/from the
|
|
// component
|
|
gICAPI.onFocus = function(polarity) {
|
|
}
|
|
|
|
// When the user click on the document we ask the DVM to
|
|
// get the focus
|
|
askFocus = function() {
|
|
gICAPI.SetFocus();
|
|
}
|
|
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
|
|
<body height="100%" width="100%">
|
|
|
|
<div id="root" />
|
|
</body>
|
|
</html>
|
|
|
|
|