[ANSWERED]: Iframe help

Posted on
Tue Oct 08, 2013 4:12 pm
gbiski offline
Posts: 93
Joined: Dec 19, 2012

[ANSWERED]: Iframe help

I have created an html with an iframe containing my graphs at thinkspeak.
I want this html to be embedded on one of my control pages. In this way to be able to see it via my web browser or indigo touch.
I tried but with no success.
Which is the technique to achieve it?

Thanks

Posted on
Mon Oct 21, 2013 4:07 pm
gbiski offline
Posts: 93
Joined: Dec 19, 2012

Re: Iframe help

Any help on this issue?

Posted on
Mon Oct 21, 2013 4:26 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Iframe help

Control pages cannot contain iframes - and even if they could Indigo Touch couldn't show them because it doesn't render control pages via html. An alternative would be to do it the other way around: put the control page into an iframe.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon May 11, 2015 2:31 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Iframe help

jay (support) wrote:
An alternative would be to do it the other way around: put the control page into an iframe.


How can I do that?

Thanks

Posted on
Mon May 11, 2015 4:32 am
DaveL17 offline
User avatar
Posts: 6741
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Iframe help

MarcoGT wrote:
How can I do that?

Take a look at this post which shows some example code that places Indigo control pages into HTML iFrames. It requires a little HTML coding on your part, but it's pretty straightforward once you get the hang of it.

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon May 11, 2015 6:34 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Iframe help

Thanks,

so then in my CP as "Client Action" I have to select "Go to external URL"?
Or, how can I load that CP?

Thanks
Marco

Posted on
Mon May 11, 2015 7:28 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Iframe help

Now I have a test.html containing iframes with WUnderground charts + Thingspeak charts, it it just a test.
Now, I to use it inside Indigo?

Thanks

Posted on
Mon May 11, 2015 9:02 am
DaveL17 offline
User avatar
Posts: 6741
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Iframe help

MarcoGT wrote:
Thanks,

so then in my CP as "Client Action" I have to select "Go to external URL"?
Or, how can I load that CP?

Thanks
Marco

That's my preferred approach.

Put a static image on the CP and then link to external URL. I also like to have something on the page with iFrames to send the user back to Indigo CP (in case the browser back button isn't obvious...)

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat May 16, 2015 5:53 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Iframe help

Which address do you configure?
Something like file:///<path_to_file> or something like http://<ip_address>:<port>/<path>?

IP address is of course the IP address where Indigo Server is running, and what about port?
Shall I start a Web Server on the MacMini (running Indigo Server)?

Thanks

Posted on
Sat May 16, 2015 6:14 am
DaveL17 offline
User avatar
Posts: 6741
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Iframe help

I need to revise my prior statement. Now I'm not so sure that I ever did load an external URL from the Indigo server through a control page. I may have done it directly from a bookmark in the browser. Perhaps Matt or Jay could weigh in here on whether its possible to load a local HTML file through the IWS.

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon May 18, 2015 6:40 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Iframe help

Ok, thanks
I will wait for an answer from M&J :)

Posted on
Mon May 18, 2015 3:41 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Iframe help

I believe you will need to start Apache on your Mac to serve the file using an http:/// URL. The file:/// URL would only work if you accessed it from Safari on the Mac that hosted that file (likely your Indigo Mac).

That said, I think I have an easier way. The above approach is complicated since it requires Apache to run, and then you'll need to do router port forwarding/etc. to get access to that server when away from your house (reflectors only work for the Indigo web server, not Apache).

But if the file you want to server is straight HTML and not PHP/etc., then you can just drop it into this folder:

Code: Select all
/Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/static/

It will then be accessible from Indigo's web server directly. If you are using a reflector the format to access foo.html would be:

http://yourreflector.indigodomo.net/static/foo.html

Image

Posted on
Mon May 18, 2015 11:09 pm
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: [ANSWERED]: Iframe help

Thanks Matt, I will go for the easier way?
Is this the standard approach to have iframes in Indigo CP?

Thanks :)

Posted on
Tue May 19, 2015 8:50 am
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: [ANSWERED]: Iframe help

Control Pages themselves cannot have iframes, but you can embed a Control Page into an iframe of another HTML file (is that what you are doing?).

Image

Posted on
Tue May 19, 2015 9:07 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: [ANSWERED]: Iframe help

Yes, this is what I would like to do.

Who is online

Users browsing this forum: No registered users and 4 guests