rusking
09-24-2009, 05:05 PM
I have a camera systme that also runs a web server.(the files are local in reference) The camera system can run in IE but not in Firefox or Samba. So trying to get this thing to show on a Iphone my only idea is to ref a camera in the web servers java script to a sub web page so im only running one cam per page and not 6. below is the code.. anyone have experience in this? or ideas?
<html>
<head>
<title>Main</title>
<link href="/text.css" rel="stylesheet" type="text/css">
<script language=javascript>
function Admin()
{ window.open("/admin/aindex.htm","","width=750,height=518,status=yes,resizable"); }
function DualQuad() {
sure = confirm("The Web page you are viewing is trying to close the window.\n\nDo you want to close this window?")
if(sure) {
WinClose();
window.open("/download.htm","DualQuad","width=400,height=190,status=yes,resizable");
}
}
function WinClose() {
if (/MSIE/.test(navigator.userAgent)) {
if(navigator.appVersion.indexOf("MSIE 7.0")>=0) {
window.open('about:blank','_self').close();
}
else {
window.opener = self;
self.close();
}
}
else {
window.name = '__t__';
var w = window.open('about:blank');
w.document.open();
w.document.write('');
w.document.close();
w._();
}
}
</script>
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<map name="Admin">
<area alt="Downlod" coords="0,0,226,23" href="javascript:DualQuad();">
<area alt="Admin" coords="741,0,879,23" href="javascript:Admin();">
</map>
<td><img src="../img/top_back2.gif" alt="" width="929" height="25" hspace="0" border="0" usemap="#Admin"></td>
</tr>
<tr>
<td>
<textarea id=obj1 style="display:none;" rows="0" cols="0">
<!--kkh 070718 <OBJECT classid=CLSID:F1DCD2BE-304A-4DBE-A7AD-4F8F08CB6F07
codebase=http://www.flexwatch.com/app_link/download/s2nd/SDVRWEB.cab#Version=2,0,0,0
width=929 height=576 id=s2pq_viewer>
-->
<OBJECT classid=CLSID:C6AA4683-3D7B-4A55-8592-6FBAB37AD280
codebase=http://www.flexwatch.com/app_link/download/s2nd/SMT190DN.cab#Version=2,0,0,0
width=929 height=576 id=smt_viewer>
<param name="iFwModId" value="0">
<param name="strUserId" value=<% FwGetUser(); %>>
<param name="strUserPwd" value=<% FwGetPass(); %>>
</OBJECT>
</textarea>
<script language="javascript" src="/object.asp?objID=obj1"></script>
</td>
</tr>
</table>
</body>
</html>
Im new..sorry if i didn't do that right or messed something up....still learning
<html>
<head>
<title>Main</title>
<link href="/text.css" rel="stylesheet" type="text/css">
<script language=javascript>
function Admin()
{ window.open("/admin/aindex.htm","","width=750,height=518,status=yes,resizable"); }
function DualQuad() {
sure = confirm("The Web page you are viewing is trying to close the window.\n\nDo you want to close this window?")
if(sure) {
WinClose();
window.open("/download.htm","DualQuad","width=400,height=190,status=yes,resizable");
}
}
function WinClose() {
if (/MSIE/.test(navigator.userAgent)) {
if(navigator.appVersion.indexOf("MSIE 7.0")>=0) {
window.open('about:blank','_self').close();
}
else {
window.opener = self;
self.close();
}
}
else {
window.name = '__t__';
var w = window.open('about:blank');
w.document.open();
w.document.write('');
w.document.close();
w._();
}
}
</script>
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<map name="Admin">
<area alt="Downlod" coords="0,0,226,23" href="javascript:DualQuad();">
<area alt="Admin" coords="741,0,879,23" href="javascript:Admin();">
</map>
<td><img src="../img/top_back2.gif" alt="" width="929" height="25" hspace="0" border="0" usemap="#Admin"></td>
</tr>
<tr>
<td>
<textarea id=obj1 style="display:none;" rows="0" cols="0">
<!--kkh 070718 <OBJECT classid=CLSID:F1DCD2BE-304A-4DBE-A7AD-4F8F08CB6F07
codebase=http://www.flexwatch.com/app_link/download/s2nd/SDVRWEB.cab#Version=2,0,0,0
width=929 height=576 id=s2pq_viewer>
-->
<OBJECT classid=CLSID:C6AA4683-3D7B-4A55-8592-6FBAB37AD280
codebase=http://www.flexwatch.com/app_link/download/s2nd/SMT190DN.cab#Version=2,0,0,0
width=929 height=576 id=smt_viewer>
<param name="iFwModId" value="0">
<param name="strUserId" value=<% FwGetUser(); %>>
<param name="strUserPwd" value=<% FwGetPass(); %>>
</OBJECT>
</textarea>
<script language="javascript" src="/object.asp?objID=obj1"></script>
</td>
</tr>
</table>
</body>
</html>
Im new..sorry if i didn't do that right or messed something up....still learning