Probably a stupid question... I'm using forms to call functions on an ASP page. Is there a way to control a device without using forms?
Announcement
Collapse
No announcement yet.
Control a device without recalling web page
Collapse
X
-
User Input. I have a video stream embedded in the page and the reload plays havoc with it.
I'm not sure how to use JSON w/a button.
Originally posted by mrhappy View PostAre you trying to control the devices on the back of some sort of user input (button or such) or do you just want the device controlled on page load?Don
Comment
-
Just saw this. You should be able to use something like this.
PHP Code:<html>
<body>
<iframe id="mainFrame" name="mainFrame" width="200" height="200" src="" style="visibility:visible;"></iframe>
<input type="button" value="Click" onclick="mainFrame.location.href = 'http://yourIpAddress:81/JSON?request=runevent&group=Speaking&name=SpeakTheTime'" />
</body>
</html>
Comment
-
No. Still ended up with the page refreshing. Just saw Rupp's example, and will try that.
EDIT:
That works.
Thanks Greg.Last edited by donstephens; October 18, 2015, 10:56 PM.Don
Comment
Comment