<div class="gmail_extra">Nico, la verdad que aun no estoy investigando el tema del canal de retorno. En mi opinion nos falta mucho tiempo (años) para poder pensar en una aplicacion que lo use. <br>Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno.<br>
<br>saludos.<br><br>Santiago<br><br><div class="gmail_quote">On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan <span dir="ltr">&lt;<a href="mailto:niko_cbes@hotmail.com" target="_blank">niko_cbes@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
<br><div><div><div class="h5">


<div dir="ltr">
<b>Buenas a todos!</b><br>( esta frio no? )<img style="border-style:none;vertical-align:text-bottom" title="Sonrisa" alt="Sonrisa" src="http://gfx1.hotmail.com/mail/w4/pr04/ltr/emo/smile.gif" width="19" height="19"><br><br>
Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga<br>Mi objetivo es lograr interectuar a traves de Ginga con un web service.<br><br>La aplicacion funcionaria asi:<br>Por medio de los botones &#39;1&#39;/&#39;2&#39;/&#39;3&#39; del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html.<br>
Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del &#39;event.post&#39;  al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService). <br><br>Algo asi:<br><br>if     evt.key == &#39;1&#39; then            <br>
     <font color="#FF0000">event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;start&#39;, value=&#39;</font><font color="#FF0000"><a href="http://X.X.X.X/Ginga/Votar" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar</a></font><font color="#FF0000">/<font color="#00B050">?opcion=A</font>&#39;})</font><font color="#FF0000"><br>
</font><font color="#FF0000">     event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;stop&#39;, value=&#39;</font><font color="#FF0000"><a href="http://X.X.X.X/Ginga/Votar" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar</a></font><font color="#FF0000">/<font color="#00B050">?opcion=A</font>&#39;})</font><br>
elseif     evt.key == &#39;2&#39; then<br>     <font color="#FF0000">event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = 
&#39;srcNuevo&#39;, action=&#39;start&#39;, 
value=&#39;</font><font color="#FF0000"><a href="http://X.X.X.X/Ginga/Votar" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar</a></font><font color="#FF0000">/<font color="#00B050">?opcion=B</font>&#39;})</font><font color="#FF0000"><br>
</font><font color="#FF0000">
     event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, 
name = &#39;srcNuevo&#39;, action=&#39;stop&#39;, 
value=&#39;</font><font color="#FF0000"><a href="http://X.X.X.X/Ginga/Votar" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar</a></font><font color="#FF0000">/<font color="#00B050">?opcion=B</font>&#39;})</font><br>elseif     evt.key == &#39;2&#39; then<br>
     <font color="#FF0000">event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = 
&#39;srcNuevo&#39;, action=&#39;start&#39;, 
value=&#39;</font><font color="#FF0000"><a href="http://X.X.X.X/Ginga/Votar" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar</a></font><font color="#FF0000">/<font color="#00B050">?opcion=C</font>&#39;})</font><font color="#FF0000"><br>
</font><font color="#FF0000">
     event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, 
name = &#39;srcNuevo&#39;, action=&#39;stop&#39;, 
value=&#39;</font><font color="#FF0000"><a href="http://X.X.X.X/Ginga/Votar" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar</a></font><font color="#FF0000">/<font color="#00B050">?opcion=C</font>&#39;})</font><br>end<br><br>
<b>Hasta ahi funciona perfecto</b>.Si presiono<b> solo una vez</b> cada opcion se incrementa en 1 el voto del html. <b>Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. </b><br><br>Lo que hice.<br>
Despues de votar una opcion; volvia a llamar al &quot;event.post&quot; pasandole por parametros la direccion original del webService para que actualizara los valores obtenidos y poder seguir votando... pero tampoco funciono.... ó lo mas probable es que no lo sepa hacer.<br>
Hacia:<br><font color="#FF0000">event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;start&#39;, value=&#39;</font><font color="#00B050"><a href="http://X.X.X.X/Ginga/Votar" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar</a></font><font color="#FF0000">&#39;})</font><font color="#FF0000"><br>
</font><font color="#FF0000">event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;stop&#39;, value=&#39;</font><font color="#00B050"><a href="http://X.X.X.X/Ginga/Votar" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar</a></font><font color="#FF0000">&#39;})</font><br>
<br><br><br>Este es el codigo:<br><br>-------------------------------------------<b>main.ncl</b>--------------------------------------------------------------<br><br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br>
&lt;ncl id=&quot;main&quot; xmlns=&quot;<a href="http://www.ncl.org.br/NCL3.0/EDTVProfile" target="_blank">http://www.ncl.org.br/NCL3.0/EDTVProfile</a>&quot;&gt;<br><br>    &lt;head&gt;<br>        &lt;regionBase&gt;<br>             &lt;region id=&quot;<font color="#FF0000">rgWebService</font>&quot; width=&quot;100%&quot; height=&quot;30%&quot; top=&quot;0%&quot;  zIndex=&quot;1&quot;/&gt;<br>
             &lt;region id=&quot;<font color="#FF0000">rgLua</font>&quot; width=&quot;0%&quot; height=&quot;0%&quot;  zIndex=&quot;1&quot; /&gt;<br>             &lt;region id=&quot;idBotonVote&quot; width=&quot;20%&quot; height=&quot;20%&quot; bottom=&quot;10%&quot; left=&quot;10%&quot; zIndex=&quot;1&quot;/&gt;            <br>
        &lt;/regionBase&gt;<br>        <br>        &lt;descriptorBase&gt;<br>            &lt;descriptor id=&quot;<font color="#FF0000">descWebService</font>&quot; region=&quot;<font color="#FF0000">rgWebService</font>&quot; /&gt;<br>
            &lt;descriptor id=&quot;<font color="#FF0000">descLua</font>&quot; region=&quot;<font color="#FF0000">rgLua</font>&quot; focusIndex=&quot;<font color="#FF0000">appFocusLua</font>&quot;/&gt;<br>            &lt;descriptor id=&quot;descBotonVote&quot; region=&quot;idBotonVote&quot;/&gt;<br>
        &lt;/descriptorBase&gt;<br><br>        &lt;connectorBase&gt;<br>            &lt;importBase documentURI=&quot;metodos.ncl&quot; alias=&quot;metodo&quot;/&gt;<br>        &lt;/connectorBase&gt;  <br>    &lt;/head&gt;<br>
<br><br>    &lt;body&gt;                <br>     <br>         &lt;port id=&quot;pVote&quot; component=&quot;imgBotonVote&quot;/&gt;<br><br><br>        &lt;media id=&quot;<font color="#FF0000">mediaWebService</font>&quot;  type=&quot;text/html&quot; src=&quot;<a href="http://X.X.X.X/Ginga/Votar" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar</a>&quot;  descriptor=&quot;<font color="#FF0000">descWebService</font>&quot;&gt;<br>
            &lt;property name=&quot;src&quot;/&gt;    <br>        &lt;/media&gt;<br><br>        &lt;media id=&quot;<font color="#FF0000">mediaLua</font>&quot; src=&quot;luaHtml.lua&quot;  descriptor=&quot;<font color="#FF0000">descLua</font>&quot; &gt;<br>
            &lt;property name=&quot;bounds&quot;/&gt;<br>            &lt;property name=&quot;srcNuevo&quot;/&gt;<br>        &lt;/media&gt;<br>        <br>        &lt;media id=&quot;imgBotonVote&quot; src=&quot;Imagen/Botones/voto.png&quot; descriptor=&quot;descBotonVote&quot;/&gt;<br>
      <br>        &lt;media id=&quot;focoLua&quot; type=&quot;application/x-ginga-settings&quot;&gt;<br>            &lt;property name=&quot;service.currentKeyMaster&quot; value=&quot;<font color="#FF0000">appFocusLua</font>&quot;/&gt;<br>
        &lt;/media&gt;<br>        <br>        <br><br>        &lt;link xconnector=&quot;<font color="#0070C0"><b>metodo#</b><b><font>onBeginEndMenu</font></b></font>&quot;&gt;<br>            &lt;bind role=&quot;onSelection&quot; component=&quot;imgBotonVote&quot;&gt;<br>
                &lt;bindParam name=&quot;oSetTecla&quot; value=&quot;ENTER&quot;/&gt;<br>            &lt;/bind&gt;<br>            &lt;bind role=&quot;abort&quot; component=&quot;imgBotonVote&quot;/&gt;<br>            <br>
            &lt;bind role=&quot;set&quot; component=&quot;mediaLua&quot; interface=&quot;bounds&quot;&gt;<br>                &lt;bindParam name=&quot;oValor&quot; value=&quot;0%,30%,100%,50%&quot;/&gt;<br>            &lt;/bind&gt;<br>
            &lt;bind role=&quot;start&quot; component=&quot;<font color="#FF0000">mediaLua</font>&quot;/&gt;<br>            &lt;bind role=&quot;start&quot; component=&quot;<font color="#FF0000">focoLua</font>&quot; /&gt;<br>
                <br>            &lt;bind role=&quot;start&quot; component=&quot;<font color="#FF0000">mediaWebService</font>&quot;/&gt;    <br>        &lt;/link&gt;<br>      <br>             <br>        &lt;link xconnector=&quot;<b><font color="#0070C0">metodo#</font><font color="#0070C0">onEndAttributionSet</font></b>&quot;&gt;<br>
            &lt;bind component=&quot;mediaLua&quot; interface=&quot;srcNuevo&quot; role=&quot;onEndAttribution&quot;/&gt;<br>            &lt;bind component=&quot;mediaLua&quot; interface=&quot;srcNuevo&quot; role=&quot;getValue&quot;/&gt;<br>
                &lt;linkParam name=&quot;valor&quot; value=&quot;$getValue&quot;/&gt;<br>            &lt;bind role=&quot;set&quot; component=&quot;<font color="#FF0000">mediaWebService</font>&quot; interface=&quot;src&quot;/&gt;<br>
        &lt;/link&gt;<br>            <br>           <br>    &lt;/body&gt;<br>&lt;/ncl&gt;<br>-------------------------------------------------------------------------------------------------------------------------------------<br>
<br><br>---------------------<b> metodos.ncl</b>------------------------------------------------------------------------------------------------<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br>
&lt;!-- Generated by NCL Eclipse --&gt;<br>&lt;ncl id=&quot;metodos&quot; xmlns=&quot;<a href="http://www.ncl.org.br/NCL3.0/EDTVProfile" target="_blank">http://www.ncl.org.br/NCL3.0/EDTVProfile</a>&quot;&gt;<br>    &lt;head&gt;<br>
        &lt;connectorBase&gt;<br><br>                &lt;causalConnector id=&quot;<font color="#0070C0"><b><font>onBeginEndMenu</font></b></font>&quot;&gt;<br>                    &lt;connectorParam name=&quot;oSetTecla&quot;/&gt;<br>
                    &lt;connectorParam name=&quot;oValor&quot;/&gt;<br>                    &lt;simpleCondition role=&quot;onSelection&quot; key=&quot;$oSetTecla&quot;/&gt;<br>                    &lt;compoundAction operator=&quot;seq&quot;&gt;<br>
                        &lt;simpleAction role=&quot;start&quot; qualifier=&quot;seq&quot;  max=&quot;unbounded&quot;/&gt;<br>                        &lt;simpleAction role=&quot;abort&quot; qualifier=&quot;seq&quot;  max=&quot;unbounded&quot;/&gt;<br>
                        &lt;simpleAction role=&quot;set&quot; qualifier=&quot;seq&quot; max=&quot;unbounded&quot; value=&quot;$oValor&quot;/&gt;<br>                    &lt;/compoundAction&gt;<br>                &lt;/causalConnector&gt;<br>
<br>                <br>           &lt;causalConnector id=&quot;<font color="#0070C0"><b><font>onEndAttributionSet</font></b></font>&quot;&gt;<br>                &lt;connectorParam name=&quot;valor&quot; /&gt;<br>                &lt;simpleCondition role=&quot;onEndAttribution&quot;/&gt;<br>
                &lt;simpleAction role=&quot;set&quot; value=&quot;$valor&quot; /&gt;<br>            &lt;/causalConnector&gt;<br>            <br>          <br>        &lt;/connectorBase&gt;<br><br>    &lt;/head&gt;<br><br>
    &lt;body&gt;<br><br>    &lt;/body&gt;<br>&lt;/ncl&gt;<br><br>--------------------------------------------------------------------------------------------------------------------------------------<br><br><br><br><br>--------------------------------<b>-luaHtml.lua-</b>----------------------------------------------------------------------------------------<br>
<br><br>function manejadorEventos(evt)    <br>        <br>            <br>    if evt.class==&#39;key&#39; and evt.type==&#39;press&#39; then <br> <br>        <br>      if     evt.key == &#39;1&#39; then<br>             <br>
           event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;start&#39;, value=&#39;<a href="http://X.X.X.X/Ginga/Votar/?opcion=A%27" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar/?opcion=A&#39;</a>})<br>
           event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;stop&#39;, value=&#39;<a href="http://X.X.X.X/Ginga/Votar/?opcion=A%27" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar/?opcion=A&#39;</a>})<br>
                       <br>      elseif     evt.key == &#39;2&#39; then    <br>                <br>            event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;start&#39;, value=&#39;<a href="http://X.X.X.X/Ginga/Votar/?opcion=B%27" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar/?opcion=B&#39;</a>})<br>
            event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;stop&#39;, value=&#39;<a href="http://X.X.X.X/Ginga/Votar/?opcion=B%27" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar/?opcion=B&#39;</a>})<br>
<br>      elseif    evt.key == &#39;3&#39; then<br>               <br>         event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;start&#39;, value=&#39;<a href="http://X.X.X.X/Ginga/Votar/?opcion=C%27" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar/?opcion=C&#39;</a>})<br>
         event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;stop&#39;, value=&#39;<a href="http://X.X.X.X/Ginga/Votar/?opcion=C%27" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar/?opcion=C&#39;</a>})       <br>
       end    <br><b>      <font color="#FF0000"><font> </font></font></b><font color="#FF0000"><font>refrescarHTML()</font></font><br> end  <br>        <br>end<br><br><br><br><font color="#000000">function refrescarHTML()</font><br>
    <br>    event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;start&#39;, value=&#39;<a href="http://X.X.X.X/Ginga/Votar%27" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar&#39;</a>})<br>
    event.post(&#39;out&#39;,{class = &quot;ncl&quot;, type = &quot;attribution&quot;, name = &#39;srcNuevo&#39;, action=&#39;stop&#39;, value=&#39;<a href="http://X.X.X.X/Ginga/Votar%27" target="_blank"><font color="red"><b>MailScanner warning: numerical links are often malicious:</b></font> http://X.X.X.X/Ginga/Votar&#39;</a>})<br>
    <br><font color="#000000">end</font><br><br><br>event.register(manejadorEventos)<br><br>--------------------------------------------------------------------------------------------------------------------------------------<br>
<br><br><br><br><br>Esa era una opcion que intente y no paso nada. <br><br><br>/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
La otra opcion  que intente es por medio de NCL, modificando   &lt;causalConnector id=&quot;<font color="#0070C0"><b><font>onEndAttributionSet</font></b></font>&quot;&gt; ( en el archivo <b> metodos.ncl</b>) y agregandole un   &lt;simpleAction role=&quot;start&quot; /&gt;, para llamar de nuevo al &quot;<b><font color="#0070C0">mediaWebService</font></b>&quot;cuando invoco al &lt;link xconnector=&quot;<b><font color="#0070C0">metodo#</font><font color="#0070C0">onEndAttributionSet</font></b>&quot;&gt;( en el archivo<b> main.ncl</b>)... pero exploto con esa opcion... me salia algo como :<br>
&quot;<font color="#FF0000"> Memory leak by 136 bytes</font><font color="#FF0000"><br></font><font color="#FF0000"><br></font><font color="#FF0000">List of blocks: 0x93d01e0:25 @ cookies.c:179, 0x93d01a8:13 @ cookies.c:129, 0x93cec88:2 @ http.c:79, 0x93d0170:13 @ cookies.c:96, 0x93bb6d8:25 @ cookies.c:95, 0x93d0138:18 @ cookies.c:94, 0x93d00e8:40 @ cookies.c:91</font><font color="#FF0000"><br>
</font><font color="#FF0000"><br></font><font color="#FF0000">Forcing core dump</font><br><br>&quot;<br><br>//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<br><br><br><br>Bueno, nose que hacer ya. <img style="border-style:none;vertical-align:text-bottom" title="Confundido" alt="Confundido" src="http://gfx1.hotmail.com/mail/w4/pr04/ltr/emo/confused_smile.gif" width="19" height="19"><br>
Si a alguien le funciono o intento algo parecido, me daria una gran mano<br>Saludos a todos!<br><b><font style="font-size:12pt" size="3">nico</font></b><br><br>                                               </div>
<br></div></div>__________________________________________Lista de correo <a href="mailto:Ginga-argentina@lists.ourproject.org" target="_blank">Ginga-argentina@lists.ourproject.org</a>
cambiar suscripción: <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina</a>
Sitio web: <a href="http://comunidad.ginga.org.ar" target="_blank">http://comunidad.ginga.org.ar</a>
Wiki: <a href="http://wiki.ginga.org.ar" target="_blank">http://wiki.ginga.org.ar</a></div>                                               </div></div>
<br>__________________________________________Lista de correo <a href="mailto:Ginga-argentina@lists.ourproject.org">Ginga-argentina@lists.ourproject.org</a><br>
cambiar suscripción: <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina</a><br>
Sitio web: <a href="http://comunidad.ginga.org.ar" target="_blank">http://comunidad.ginga.org.ar</a><br>
Wiki: <a href="http://wiki.ginga.org.ar" target="_blank">http://wiki.ginga.org.ar</a><br>
<br></blockquote></div><br></div>