Webcam with button - best way to go? |
Webcam with button - best way to go? |
icepick |
Oct 14 2011, 11:47 PM
Post
#1
|
Group: Members Posts: 2 Joined: 14-October 11 Member No.: 15,627 |
Hi everyone,
I have a simple HTML page showing a live webcam feed. Underneath the webcam image I have a couple of links the user can push (stuff like "turn the light on" and "turn the light off" ). When the user clicks the link I want him to stay on the same page, and in the background it should call a small light-on.php script. I don't want him to leave the webpage.. all he should keep on seeing is the webcam feed. What I do right now is I use frames.. so when he clicks the link it opens up a black page in a very small 1% frame (so the user doesn't notice it does that).. but is there a nicer way to do this? Regards, Alex |
pandy |
Oct 14 2011, 11:57 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
What's the purpose of it if the user doesn't see it? Sorry, but I'm sort of thick.
|
Christian J |
Oct 15 2011, 01:26 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,630 Joined: 10-August 06 Member No.: 7 |
|
Christian J |
Oct 15 2011, 01:27 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,630 Joined: 10-August 06 Member No.: 7 |
|
pandy |
Oct 15 2011, 01:35 PM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Oh. "Black page" (blank page?) made me think the background color of the invisible iframe changed depending on if the user want to turn the light on or off.
|
icepick |
Oct 16 2011, 02:31 AM
Post
#6
|
Group: Members Posts: 2 Joined: 14-October 11 Member No.: 15,627 |
Thanks guys.. guess I will stick with the frame then..
|
Lo-Fi Version | Time is now: 28th March 2024 - 11:10 AM |