AbelCam Forum
Download AbelCam buy Pro
 
 
 
Welcome Anonymous User
11/23/2024 - 03:16 AM
Quick Search:
Quick Jump:
 
Announcements
Latest Topics
 
Total cam webserver include
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 08/09/2009 - 12:50 AM

I made a automated ASP file for storing one image from each cam, and then merging them all into one image, but right now i still have to define how many cams i got added to AbelCam, so my wish is something like <!--#currentcam --> but maybe just instead <!--#totalcam -->, that will show how many cams there are added.
By: MelvinG
Rank: Magna Cum Laude
Topics: 661
From: Los Angeles, USA
Added: 08/09/2009 - 10:23 AM

This is Javascript not ASP but it shows you how to get what you want.

camArray = new Array();
<!--#camarray -->
myTotalCams = camArray.length;


Note: the <!--#camarray --> include returns what amounts to "code", so it is necessary to call your array "camArray". Here's what the <!--#camarray --> output looks like:

camArray[0] = "0";
camArray[1] = "1";
camArray[2] = "2";

and so on...

It's intended to be Javascript but it's generic enough to work in PHP and (probably?) ASP.