App Inventor to control the Pin D10 of Yun

Hi there,
I have an html page in my android (with javascript) witch connects to a Yun in My LAN.

I trying to make an App with App Inventor, to send a “signal”,

like:

(it suppose to be easy, i just want to send an URL, right?)

This is not a problem of the Yun (because the html page works perfectly).

I 'm doing something wrong in the App inventor, but i don’t know what it is…

I wonder, if somebody did try something like this…in the App inventor (in the printscreen)

Thank’s in advance…
Rui

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="author" content="Rui Pereira">
<meta http-equiv="description" content="Controlo Remoto da Casa">
<meta http-equiv="refresh" content="15">
<title>Caldeira</title>
<script language="Javascript">

function xmlhttpPost(strURL) {
  var xmlHttpReq = false;
  var self = this;
  // Mozilla/Safari/firefox/chrome
  if (window.XMLHttpRequest) {
 self.xmlHttpReq = new XMLHttpRequest();
  }
  // Internet Explorer
  else if (window.ActiveXObject) {
 self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
  }
  self.xmlHttpReq.open('POST', strURL, true);
  self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  self.xmlHttpReq.onreadystatechange = function() { if (self.xmlHttpReq.readyState == 4) { updatepage(self.xmlHttpReq.responseText); }
  }
  self.xmlHttpReq.send(getquerystring());
}

function getquerystring() {
 var form     = document.forms['casa'];
 var valor = form.assoalhada.value;
 qstr = 'assoalhada=' + escape(valor);  // NOTE: no '?' before querystring
 return qstr;
}
function updatepage(str){
 document.getElementById("estado").innerHTML = str;
}
</script>
</head>
<body bgcolor="#CCFFFF" tracingsrc="./imagens/caldeira.jpg" tracingopacity="100">
<form name="casa">
<table width="288" height="338" class="BrancoRui">
<tr>
<td width="95" height="38" class="label-info"><h6><span class="PretoRui"><em><strong>Cozinha</strong></em></span></h6>
<td width="59" class="VerdanaRui"><span class="PretoRui"><span class="btn-primary">
<input type="button" class="bg-primary" onclick='JavaScript:xmlhttpPost("/arduino/digital/13")' value="Estado">
</span></span>
<td width="41" class="VerdanaRui"><span class="PretoRui"><span class="btn-primary">
<input  type="button" class="btn-danger" onclick='JavaScript:xmlhttpPost("/arduino/digital/13/1")' value="ON">
</span></span>
<td width="45" class="VerdanaRui"><span class="PretoRui"><span class="btn-primary">
<input type="button" class="btn-success" onclick='JavaScript:xmlhttpPost("/arduino/digital/13/0")' value="OFF">
</span></span>
<td width="24" class="VerdanaRui"><h6><span class="PretoRui"><span class="btn-primary">
<input name="assoalhada2" type="hidden" value="cozinha">
</span></span></h6>
<tr><td height="38" class="label-info"><h6><span class="PretoRui"><em><strong>
Entrada</strong></em></span></h6>
<td class="VerdanaRui"><span class="PretoRui">
<input type="button" class="bg-primary" onclick='JavaScript:xmlhttpPost("/arduino/digital/12")' value="Estado">
</span>
<td class="VerdanaRui"><span class="PretoRui">
<input  type="button" class="btn-danger" onclick='JavaScript:xmlhttpPost("/arduino/digital/12/1")' value="ON">
</span>
<td class="VerdanaRui"><span class="PretoRui">
<input type="button" class="btn-success" onclick='JavaScript:xmlhttpPost("/arduino/digital/12/0")' value="OFF">
</span>
<td class="VerdanaRui">
<h6><span class="PretoRui">
<input name="assoalhada3" type="hidden" value="entrada">
</span></h6>
<tr>
<td height="38" class="label-info"><h6><span class="PretoRui"><em><strong>
Quarto de Casal</strong></em></span></h6>
<td class="VerdanaRui"><span class="PretoRui">
<input type="button" class="btn-primary" onclick='JavaScript:xmlhttpPost("/arduino/digital/11")' value="Estado">
</span>
<td class="VerdanaRui"><span class="PretoRui">
<input  type="button" class="btn-danger" onclick='JavaScript:xmlhttpPost("/arduino/digital/11/1")' value="ON">
</span>
<td class="VerdanaRui"><span class="PretoRui">
<input type="button" class="btn-success" onclick='JavaScript:xmlhttpPost("/arduino/digital/11/0")' value="OFF">

</span>
<td class="VerdanaRui">
<h6><span class="PretoRui">
<input name="assoalhada4" type="hidden" value="quarto1">
</span></h6>
<tr>
<td height="38" class="label-info"><h6><span class="PretoRui"><em><strong>
Caldeira</strong></em></span></h6>
<td class="VerdanaRui"><span class="PretoRui">
<input type="button" class="btn-primary" onclick='JavaScript:xmlhttpPost("/arduino/digital/10")' value="Estado">
</span>
<td class="VerdanaRui"><span class="PretoRui">
<input  type="button" class="btn-danger" onclick='JavaScript:xmlhttpPost("/arduino/digital/10/1")' value="ON">
</span>
<td class="VerdanaRui"><span class="PretoRui">
<input type="button" class="btn-success" onclick='JavaScript:xmlhttpPost("/arduino/digital/10/0")' value="OFF">
</span>
<td class="VerdanaRui">
<h6><span class="PretoRui">
<input name="assoalhada5" type="hidden" value="quarto2">
</span></h6>
</table>
</form>
</body></html>