Problems using the ActiveX JT2Go in Apex
670770Nov 17 2008 — edited Nov 18 2008Hello,
I have installed the JT2Go Application on my PC. Part of this installation is a ActiveX, that enable me to view JT-Files directly in the browser.
When I run a simple HTML-Page, everything works well.
Simple HTML-Page:
<html>
<head>
<title>JT2Go</title>
<script language="JavaScript1.1" type="text/javascript">
<!--
function DoOpen(urltoload)
{
viewer3dCtl.Open(urltoload);
}
//-->
</script>
</head>
<body>
<OBJECT
ID="viewer3dCtl"
CLASSID="clsid:AD0DEF5C-DEC1-4950-AC57-1533F90C6BAD"
ALIGN="CENTER" BORDER=0 WIDTH=650 HEIGHT=420
TYPE="application/oleobject">
</OBJECT>
<br/>
<a href="javascript:DoOpen('http://www.jtopen.com/jt_files/bnc.jt');">embedded bnc.jt</a>
</body>
</html>
When I run the same code in an APEX-Region, I get an JavaScript-Error in the status-bar of
the browser. Apex already call the JavaScript function "DoOpen", but it fails to call the function "viewer3dCtl.Open(urltoload);"
I get the error message that "viewer3dCtl is undefined". The id-attribut of the <object>-Tag has the same name "viewer3dCtl", so it should work. When i rename the id-attribut in the simple HTML-Page, running without APEX, i get the same error-message using the correct code under APEX. APEX has problems identifying the <object>-tag. Has anyone an idea what i make wrong?
Can someone help me and knows the reason why it doesn´t work?
Thanks
Michael
Edited by: user6044915 on 17.11.2008 23:20