Sony SNC-RZ30 Snowshoes User Manual


 
3. Providing sample codes
3.1 The sample codes for calling the ActiveX viewe
r
The ActiveX viewer is the program which can work in the environment of Internet Explorer (ver 5.5
sp2 or higher or ver 6) on Windows 98 / 98SE / NT4.0 / 2000 / Me / XP Operating System.This is
named as the archive "SncRz30View.cab" and is located in /home/ directory in the SNC-RZ30 we
b
server. This chapter provides the sample codes to load the ActiveX viewer.
The sample codes are listed below and its brief introduction goes on as follows.
The script for the inquiry of parameters
The ActiveX viewer the SNC-RZ30 provides with needs to get some parameters to start up, so
that there need to be some scripts as the sample codes shown in (a). By the scripts shown in
the sample codes the following parameters can be obtained.
"URL information"
This is information about the host name or IP address of the host for ActiveX to connect to.
"Mount information"
This is information how the SNC-RZ30 installs with the mount type. By this information the
ActiveX program can select its display of Motion JPEG images with the mount type as
desktop or as ceiling.
"Default frame rate information"
This is information about the frame rate of the ActiveX viewer to get Motion JPEG images.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML LANG="EN">
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<TITLE>ActiveX Viewer</TITLE>
<SCRIPT LANGUAGE="JavaScript1.2" SRC=”<IP>/command/inquiry.cgi?inqjs=sysinfo” TYPE="text/javascript">
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" SRC=”<IP>/command/inquiry.cgi?inqjs=tcpip” TYPE="text/javascript">
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function AViewer(){
document.open();
document.write("<OBJECT ID='Camera1'");
document.write("CLASSID='CLSID:63DF43C2-469A-41F3-B119-17B1ACE8BB34'");
document.write("CODEBASE='<IP>/home/SonySncRz30View.cab' NAME='viewer'>");
document.write("<PARAM NAME='URL' ");
document.write("VALUE="+Ip+">");
document.write("<PARAM NAME='MOUNT' ");
document.write("VALUE="+Mount+">");
document.write("<PARAM NAME='RATE' ");
document.write("VALUE="+DefFrameRate+">");
document.write("<\/OBJECT>");
document.close();
}
//-->
</SCRIPT>
</HEAD>
<BODY TEXT="#FFFFFF" BGCOLOR="#000000" ONLOAD="JavaScript:document.viewer.Start();">
<SCRIPT TYPE="text/javascript">
<!--
AViewer();
//-->
</SCRIPT>
</BODY>
</HTML>
a)
The script for the
inquiry of parameters
b)
The function
declaration
c)
The scirpt for loading
the ActiveX program