Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | NTLHell problems

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion
Register FAQ Community Calendar

Objects in HTML?
Reply
 
Thread Tools
Old 29-10-2006, 09:11   #1
altis
cf.mega poster
 
altis's Avatar
 
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 4,499
altis has a nice shiny staraltis has a nice shiny star
altis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny star
Objects in HTML?

I have bought a number of cheap webcams to use to spy around the place at work. They function okay enough but the user interface is dire. So I'd like to integrate the images into our internal web pages. Simple, I thought - just copy the source from the camera and paste the apropriate bits into our pages. Well it doesn't work and I can't see why. For a start IE complains about "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?" I click yes and then all I get is a blank picture.

Here's the original from the camera:
Code:
<HTML><HEAD><TITLE>IP Cam</TITLE>
</HEAD>
<BODY  bgColor=#99CCFF>

    <table border=0 bgcolor=#66CCFF cellspacing=0 width=1076 style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" height="80">
    <tr>
     <td bgcolor=#99CCFF align=center height=36 width="1074">
     <b><center><font size="5" color="#FFFFFF" face="Times New Roman">Live Video</font></center></b>  
     </td>
    </tr>

    <tr>
     <td bgcolor=#0066CC width="1074" height="24">
     <center><font face="Times New Roman"><img border="0" src="../Comm/Menu.gif"><font class=org-news><b><font color="#FFFFFF">
     </font></b><a href="startpage.htm" TARGET="_top">
     <font color="#FFFFFF">IP Camera Demo</font></a></font></font></center>                           
     </td>
    </tr>
    </table>
    <FONT face=Arial>

<form name=CF method=post action=/ConfigIpcam onsubmit='return SubmitRequest();'>
<CENTER>
<HR>
<script language=JavaScript>
  	var va_width = '640';
  	var va_height = '480';
</script>
<SCRIPT language=JavaScript>

//if(va_width==320)
// window.resizeTo(900,620)
//else if(va_width==640)
//  window.resizeTo(900,730)
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform != "Mac68k"))
 { 
 	document.write("<OBJECT ID=CamImage WIDTH=")
 	document.write(va_width)
 	document.write(" HEIGHT=")
 	document.write(va_height) 	 
 	document.write(" CLASSID=CLSID:AA0FB75C-C50E-47B6-B7E0-3B9C3FAA8AC4 ")
	document.write(" CODEBASE=\"/Comm/IPCamControl.cab#Version=1,0,0,0 \">")
 	document.write("<PARAM NAME=\"URL\" VALUE=\"/video.cgi\">")
 	document.write("<PARAM NAME=\"User\" VALUE=\"\">")
 	document.write("<PARAM NAME=\"Password\" VALUE=\"\">")
 	document.write("</OBJECT>")
} 
else 
{

 	document.write('<IMG SRC=/video.cgi WIDTH='+va_width+' HEIGHT='+va_height+'>')
	
}
</SCRIPT>
<HR>

</CENTER>
    </font>
<p>
	<center>
      <font face="Times New Roman">
      <input class=But type=submit value="Snapshot E-mail" style="background-color: #0066CC; color: #FFFFFF; border-style: ridge; border-color: #FFFFFF">
       <input class=But type=reset value="ActiveX Help" onclick=window.open('Help.htm','_blank') style="background-color: #0066CC; color: #FFFFFF; border-style: ridge; border-color: #FFFFFF;"> 
       <input class=But type=reset value="Add To Favorites" onclick=window.external.AddFavorite(window.location,'IPCamera') style="background-color: #0066CC; color: #FFFFFF; border-style: ridge; border-color: #FFFFFF;"> 
      
      </font>
      
     </center>
    </form>

</BODY></HTML>
And here's my efforts:
Code:
<html>
  <head>
    <title>A Company - Foyer camera</title>
      <script type="text/javascript" langauge="javascript" src="script.js"></script>
      <link type="text/css" rel="stylesheet" href="style.css">
  </head>
  <body BGCOLOR=#FFFFFF background="bkgd.gif" text="#FFFFFF" link="#CCCC66" vlink="#CCCC66" alink="#66CCFF" leftmargin="10" topmargin="12" marginwidth="10" marginheight="12">

    <table class="alt0">

      <tr>
        <td class="alt1"><a href="index.htm">A Company</a></td>
        <td class="alt4"><i>Foyer camera</i></td>
      </tr>

      <tr><td colspan=2><hr></td></tr>

      <tr>
        <td colspan=2>
          <OBJECT ID=CamImage WIDTH="640" HEIGHT="480" CLASSID=CLSID:AA0FB75C-C50E-47B6-B7E0-3B9C3FAA8AC4 CODEBASE="IPCamControl.cab#Version=1,0,0,0">
 	        <PARAM NAME="URL" VALUE="192.168.0.200/video.cgi">
 	        <PARAM NAME="User" VALUE="">
 	        <PARAM NAME="Password" VALUE="">
 	      </OBJECT>
        </td>
      </tr>

      <tr><td colspan=2><hr></td></tr>

    </table>

  </body>
</html>
Note that I've copied IPCamControl.cab from the camera to the same folder as my HTML code.
altis is offline   Reply With Quote
Advertisement
Old 29-10-2006, 09:14   #2
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: Objects in HTML?

Remember that 192.168.0.200 will not be available away from home
Graham M is offline   Reply With Quote
Old 29-10-2006, 09:27   #3
altis
cf.mega poster
 
altis's Avatar
 
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 4,499
altis has a nice shiny staraltis has a nice shiny star
altis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny star
Re: Objects in HTML?

Ah, but it is over VPN
altis is offline   Reply With Quote
Old 29-10-2006, 09:46   #4
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: Objects in HTML?

In which case it SHOULD work
Graham M is offline   Reply With Quote
Old 29-10-2006, 09:57   #5
r1ch
Inactive
 
Join Date: Mar 2004
Posts: 311
r1ch has entered a golden reputation erar1ch has entered a golden reputation erar1ch has entered a golden reputation erar1ch has entered a golden reputation erar1ch has entered a golden reputation erar1ch has entered a golden reputation erar1ch has entered a golden reputation erar1ch has entered a golden reputation erar1ch has entered a golden reputation erar1ch has entered a golden reputation erar1ch has entered a golden reputation era
Re: Objects in HTML?

I'd guess that it might be something to do with the missing form in your version - looking at the action on the form (/ConfigIpcam) the ActiveX control may well be submitting the form to configure the camera to get it to start streaming.
r1ch is offline   Reply With Quote
Old 29-10-2006, 11:32   #6
The Jackal
Inactive
 
Join Date: Oct 2006
Posts: 1,604
The Jackal has a bronzed appealThe Jackal has a bronzed appeal
The Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appealThe Jackal has a bronzed appeal
Re: Objects in HTML?

Change

<PARAM NAME="URL" VALUE="192.168.0.200/video.cgi">

to

<PARAM NAME="URL" VALUE="http://192.168.0.200/video.cgi">

maybe ?

N stop spying on the gimps unless the cam is located in the ladies locker room of course heh just kidding
The Jackal is offline   Reply With Quote
Old 29-10-2006, 12:58   #7
altis
cf.mega poster
 
altis's Avatar
 
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 4,499
altis has a nice shiny staraltis has a nice shiny star
altis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny star
Re: Objects in HTML?

Brilliant!

Well done CRC, that was just the trick. I don't understand why the in-camera version works, but there you go. Problem solved.

And no, there isn't one in the ladies!
altis is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:42.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum