View unanswered posts | View active topics It is currently Thu May 23, 2013 11:21 am



Reply to topic  [ 6 posts ] 
 Control Page Frames 
Author Message

Joined: Aug 22, 2004
Posts: 13
Location: Los Angeles
Post Control Page Frames
After looking at some posts on the topic I attempted to put a frame in my control pages to view my securityspy cameras.

As I understood it, I needed to modify the:

IndigoWebServer/templates/controlpage.html

I found that folder in two places,

root/library/Application Support/Perceptive Automation/Indigo2/
and
User/Documents/Indigo2

So, I changed 'em both.

I also tried changing the controlpage_index.html file with no success...

Any thoughts on what I'm missing, I mean if it had thrown an error at least I knew I was screwing up the right file.
: )


Fri May 25, 2007 5:12 pm
Profile WWW
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11692
Location: Texas
Post Re: Control Page Frames
That is odd you found that file in 2 places. The first path you gave (inside Application Support) is the correct one. I'm not sure where the other one is coming from?

Did you stop the Indigo Server and restart it? Those templates are cached at run time, so you have to reboot the Indigo Server to get the changes pulled in.

Regards,
Matt


Sat May 26, 2007 10:04 am
Profile WWW

Joined: Aug 22, 2004
Posts: 13
Location: Los Angeles
Post 
Ok, I found a few minutes to work on this some more...

I think I just copied all of the data to the other location as a back up and forgot that I had... is it obvious that I only spend an hour or so a month on my HA system, but also obvious that I take advice when someone tells me to back up?

:D

Here's where I've landed:

I successfully replaced the "controlpage.html" with a frameset. One frame contains my security spy cameras (accessible with the prism reflector, Woo Hoo!) but I can't seem to get the source right for the control page, which I'm trying to get into the other frame.

It seems that the server throws an error of "undefined page requested" when I try to access html in the templates folder. I was working with the assumption that the "IndigoWebServer" folder was the root of the server and tried accessing any html relative to the "controlpage.html" document.

I've got this so far:


<HTML>
<HEAD>
<TITLE>Control Page</TITLE>
</HEAD>
<FRAMESET cols="20%, 80%">
<FRAMESET rows="100, 200">
<FRAME src="http://172.16.1.4:9000/++video?cameraNum=0&34596" width=320 height=240 alt="Garage">
<FRAME src="http://172.16.1.4:9000/++video?cameraNum=1&14528" width=320 height=240 alt="iSight">
</FRAMESET>
<FRAME src="control.html">
<NOFRAMES>
<P>This frameset document contains:
<UL>
<LI><http://172.16.1.4:9000/++video?cameraNum=0&34596>
<LI><http://172.16.1.4:9000/++video?cameraNum=1&14528>
<LI><../templates/control.html>
</UL>
</NOFRAMES>
</FRAMESET>

I renamed the original "controlpage.html" as "control.html" and tried accessing it in a frame. Am I barking up the wrong tree?
This might be more than my basic html skillz can handle...


Tue Jun 05, 2007 1:12 am
Profile WWW

Joined: Aug 22, 2004
Posts: 13
Location: Los Angeles
Post 
Oh, and I had been quitting and restarting the Indigo application... not the server.

Good note.

Did I mention that these forums are fantastic and really make Indigo the most exciting piece of software I own?


Tue Jun 05, 2007 1:29 am
Profile WWW
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11692
Location: Texas
Post 
Those template files aren't 100% HTML. They are run through a preprocessing template engine called Cheetah. So this line:

<FRAME src="control.html">

won't really work because the original file (now called control.html) won't be run through the template engine like it needs to.

Let's take a different approach. Rename your frame file from controlpage.html to myframe.html. Then rename the control.html file back to controlpage.html (restore the file back to what it was before).

Edit myframe.html to use controlpage.html as the frame source instead of control.html. Now the trick is to serve up myframe.html from the IndigoWebServer. To do this, move the file to the static folder inside IndigoWebServer. Then try to access the page myframe.html from your browser. Let me know how it goes...

Regards,
Matt


Tue Jun 05, 2007 6:35 pm
Profile WWW

Joined: Aug 22, 2004
Posts: 13
Location: Los Angeles
Post 
Oh, I am so excited to try this when I get home!!!!

The static folder... A whole new frontier!

Thank you Matt.


Wed Jun 06, 2007 12:02 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.