I've got a hardware device that's controlled by a cgi server and if I use the following html it will turn on a cooling fan.
<div id="layer3" style="position:absolute; top:338; left:34; z-index:9;" ><A href=/rc.cgi?o=1,1 target="empty">
<img id="FanPic" onclick = "ChangeFanState();" src="Fan&LIO(1,"%u",1);.gif" border=0 height="72" width="72"/></div>
I'd like to be able to do this from javascript so as to turn on several devices with out changing the web page. So I've tried
window.location.href = "/rc.cgi?o=1,1";
but this is not working. Any ideas?
Thanks
<div id="layer3" style="position:absolute; top:338; left:34; z-index:9;" ><A href=/rc.cgi?o=1,1 target="empty">
<img id="FanPic" onclick = "ChangeFanState();" src="Fan&LIO(1,"%u",1);.gif" border=0 height="72" width="72"/></div>
I'd like to be able to do this from javascript so as to turn on several devices with out changing the web page. So I've tried
window.location.href = "/rc.cgi?o=1,1";
but this is not working. Any ideas?
Thanks