Going the other way looks like it will be daunting...Perhaps a redirect to another page and back...
PHP Code:
<%
volume = CStr(hs.DeviceString("v8"))
%>
<script type="text/javascript">
var s = new Slider(document.getElementById("slider-1"), document.getElementById("slider-input-1"));
var s2 = new Slider(document.getElementById("slider-2"), document.getElementById("slider-input-2"), "vertical");
s.onchange = function () {
document.getElementById("h-value").value = s.getValue();
document.getElementById("h-min").value = s.getMinimum();
document.getElementById("h-max").value = s.getMaximum();
s2.setValue(s.getValue());
s2.setMinimum(s.getMinimum());
s2.setMaximum(s.getMaximum());
};
//Get Value from HomeSeer and insert it into javascript
s.setValue(<%= volume %>);
window.onresize = function () {
s.recalculate();
};
//window.location ="/ir.asp";
</script>
Leave a comment: