PDA

View Full Version : remote via iphone or othere



BIGIFA
03-10-2010, 02:47 AM
hi all i have seen a few web bpugins for the azbox but it would be great if someone could figgure out a remote for the ipheon or something or alternatively if someone can post the code used in these web interfaces so i can at least compile a local web page that i can log in to the box and remote without the screen shots bussines that way i could make a iphone frendly html page to use

thanks in advance

BIGIFA
03-10-2010, 05:24 AM
Ok so i have messed with the web interface a bit and created a .html that can be vewd in an iphone to utilise the remote without the screen shots (i run the box on a tv upstares via the rf output hence all this lol )

now this is realy rugh but it sort of works the problem i have is when i click a button (link) it gose to a blank page what i need to do is get it to go strate back to the orig page here is the code



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>iPhone Navigation</title>
<**** name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<style type="text/css" media="screen">@import "iphonenav.css";</style>
<script type="application/x-**********" src="iphonenav.js"></script>
</head>
<script>
function key(code)
{
do***ent.location="cgi-bin/RC?" + code;
if (1)
window.setTimeout("capture()", 200);
}


function MM_swapImgRestore() { //v3.0
var i,x,a=do***ent.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; do***ent.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){do***ent.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=do***ent; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].do***ent; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].do***ent);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/remote.png" height="480" width="320" border="0" alt="Remote Control" usemap="#remotecontrol" />
<map name="remotecontrol">
<area shape="circle" coords="53,30,25" href="**********:key('INFO')" alt="INFO" />
<area shape="circle" coords="146,30,23" href="**********:key('WAKEUP')" alt="WAKEUP" />
<area shape="rect" coords="211,5,266,55" href="**********:key('HOME')" alt="HOME" />
<area shape="rect" coords="42,78,107,128" href="**********:key('MENU')" alt="MENU" />
<area shape="circle" coords="242,102,23" href="**********:key('CHECK')" alt="CHECK" />
<area shape="circle" coords="258,353,22" href="**********:key('BLUE')" alt="BLUE" />
<area shape="circle" coords="192,353,21" href="**********:key('YELLOW')" alt="YELLOW" />
<area shape="circle" coords="124,353,21" href="**********:key('GREEN')" alt="GREEN" />
<area shape="circle" coords="58,354,21" href="**********:key('RED')" alt="RED" />
<area shape="rect" coords="218,250,271,304" href="**********:key('EXIT')" alt="EXIT" />
<area shape="rect" coords="39,254,99,302" href="**********:key('GUIDE')" alt="GUIDE" />
<area shape="rect" coords="128,157,189,219" href="**********:key('OK')" alt="OK" />
<area shape="rect" coords="127,393,185,453" href="**********:key('VOLDOWN')" alt="VOLDOWN" />
<area shape="rect" coords="220,394,281,456" href="**********:key('VOLUP')" alt="VOLUP" />
<area shape="rect" coords="20,393,100,452" href="**********:key('MUTE')" alt="MUTE" />
<area shape="circle" coords="75,189,35" href="**********:key('LEFT')" alt="LEFT" />
<area shape="circle" coords="240,188,37" href="**********:key('RIGHT')" alt="RIGHT" />
<area shape="circle" coords="157,110,37" href="**********:key('UP')" alt="UP" />
<area shape="circle" coords="160,264,36" href="**********:key('DOWN')" alt="DOWN">
</map></td>
<td>
</body>
</html>


ok there is a lot of *** in there manly for j*v*scri*t as for some reason you cant say script and java in the same word lol but can someone help clean this up and make it redirect after the button has been pressed and display the mane page again so you can just press any othere button cheets i know its bloody shamles rip of work already done by otheres on the WebIF project but i just thaught i could have a go lol
and here is the image i knocked up

thor
03-10-2010, 11:29 PM
Interesting keep up the good work m8.

:)