Programmers help!

Rahne

Active Member
Anyone know what language this is and if so, do you think you could help me decipher it and manipulate it?


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en" oncontextmenu="return false">
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="copyright" content="Copyright (C) 2006 Matsushita Electric Industrial Co., Ltd. All rights reserved.">
<title>WV-NS202 Network Camera</title>
<script type="text/javascript" src="/js/cmsg.js"></script>
<script type="text/javascript" src="/js/cmsgtab.js"></script>
<script type="text/javascript" src="/js/cactivex.js"></script>
<script language="JavaScript">
<!--
var mbReload = false;
var gbErrAlarm = false;
var gbEventActX = true;
var EvPort = "31005";

function InitThisPage()
{
if(0)
{
alert(cmsg_show("JE0924"));
}
try
{
SetEventProperty();
top.location.replace("/live/index.html");
}
catch( e )
{
gbEventActX = false;
var bRet = confirm(cmsg_show("JE0925"));
if (bRet)
{
M.location = "/cgi-bin/nwv_cnt";
top.location.replace("/live/index.html");
}
else
{
this.location.href = "/live/install2.html";
}
}
}

function SetEventProperty()
{
var WebAlarmReceiver = document.WebAlarmReceiver;
var InitAlarm = "";
if( EvPort != "")
{
WebAlarmReceiver.AlarmRcvPort = EvPort;
InitAlarm = WebAlarmReceiver.InitAlarmRcv(1,location.host,"/cgi-bin/getinfo?FILE=1");
}
}

function DetectErr( iCode,ObjID )
{
if( ObjID == "WebAlarm" )
{
if(( iCode == 1 ) && ( ! gbErrAlarm ))
{
gbErrAlarm = true;
}
}
}

function index2_StopEvent()
{
if( gbEventActX )
{
InitEventProperty();
}
}

function InitEventProperty()
{
var InitAlarm1 = "";
InitAlarm1 = document.WebAlarmReceiver.InitAlarmRcv(0,location.host,"/cgi-bin/getinfo?FILE=1");
}
//-->
</script>
</head>
<body topmargin="0" marginheight="0" background="/image/back.gif" tabindex="-1" onload="InitThisPage();" onunload="index2_StopEvent();">
<div>
<script type="text/javascript">
cactivex_CreateAlarmControl("disable");
</script>
<script for="WebAlarmReceiver" event="Err(ChID,code)" language="JavaScript">
DetectErr(code,"WebAlarm");
</script>
</div>
<iframe name="M" width="0" height="0"></iframe>
</body>
</html>
 
well that my friend is a web page running java script. What on earth are you looking to do or trying to achieve. I can sort of whork out what its doing but this sounds rather like sum1 has a homework and wants us to do it for them :p
 
Lol not really. I wish I was still in the homework phase. I'm trying to take an IP security camera and manipulate the layout. I'm basically stripping down the manufacturers crappy overhead and just displaying the imaging.

Here are some that I was succesful with.

www.capricam.com

(there is a file download to view the camera images, and 3 of them are offline...best viewed during the daytime, I'm EST :) )
 
Do you have the original code? If you give a more detailed explanation as to what you started with, what you have now, and what you actually want to do; I could probably help you out.
 
I have all the code provided with the SDK that the developer released. The problem is, I don't have the ability to upload any new software into the camera itself, so I have to manipulate the code to correctly display in HTML.

Good times.
(FYI, I work for an electrical contractor, can you tell?)
 
[quote1190031228=Rahne]
I have all the code provided with the SDK that the developer released. The problem is, I don't have the ability to upload any new software into the camera itself, so I have to manipulate the code to correctly display in HTML.

Good times.
(FYI, I work for an electrical contractor, can you tell?)
[/quote1190031228]

Were you planning on posting some of that, so that we could actually help you? You're not going to touch any of the javascript, only the stuff in the body section. If you're getting this from an SDK or an already released product, then you really shouldn't have to touch anything...
 
What's your email address? It's way to much to be carried on in these forums. I appreciate your time zero.
 
Back
Top