Consulta NLC/LUA/HTML (Interactuando con Web Service)
Buenas a todos! ( esta frio no? ) Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service. La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService). Algo asi: if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) end Hasta ahi funciona perfecto.Si presiono solo una vez cada opcion se incrementa en 1 el voto del html. Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar'}) Este es el codigo: -------------------------------------------main.ncl-------------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase> <descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex="appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase> <connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head> <body> <port id="pVote" component="imgBotonVote"/> <media id="mediaWebService" type="text/html" src="http://X.X.X.X/Ginga/Votar" descriptor="descWebService"> <property name="src"/> </media> <media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media> <media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/> <media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua"/> </media> <link xconnector="metodo#onBeginEndMenu"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/> <bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" /> <bind role="start" component="mediaWebService"/> </link> <link xconnector="metodo#onEndAttributionSet"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link> </body> </ncl> ------------------------------------------------------------------------------------------------------------------------------------- --------------------- metodos.ncl------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase> <causalConnector id="onBeginEndMenu"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector> <causalConnector id="onEndAttributionSet"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector> </connectorBase> </head> <body> </body> </ncl> -------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------luaHtml.lua----------------------------------------------------------------------------------------- function manejadorEventos(evt) if evt.class=='key' and evt.type=='press' then if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '3' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) end refrescarHTML() end end function refrescarHTML() event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar'}) end event.register(manejadorEventos) -------------------------------------------------------------------------------------------------------------------------------------- Esa era una opcion que intente y no paso nada. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="onEndAttributionSet"> ( en el archivo metodos.ncl) y agregandole un <simpleAction role="start" />, para llamar de nuevo al "mediaWebService"cuando invoco al <link xconnector="metodo#onEndAttributionSet">( en el archivo main.ncl)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes 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 Forcing core dump " ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Bueno, nose que hacer ya. Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! nico
Buenas a todos! ( esta frio no? ) Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service. La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService). Algo asi: if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) end Hasta ahi funciona perfecto.Si presiono solo una vez cada opcion se incrementa en 1 el voto del html. Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar'}) Este es el codigo: -------------------------------------------main.ncl-------------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase> <descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex="appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase> <connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head> <body> <port id="pVote" component="imgBotonVote"/> <media id="mediaWebService" type="text/html" src="http://X.X.X.X/Ginga/Votar" descriptor="descWebService"> <property name="src"/> </media> <media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media> <media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/> <media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua"/> </media> <link xconnector="metodo#onBeginEndMenu"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/> <bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" /> <bind role="start" component="mediaWebService"/> </link> <link xconnector="metodo#onEndAttributionSet"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link> </body> </ncl> ------------------------------------------------------------------------------------------------------------------------------------- --------------------- metodos.ncl------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase> <causalConnector id="onBeginEndMenu"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector> <causalConnector id="onEndAttributionSet"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector> </connectorBase> </head> <body> </body> </ncl> -------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------luaHtml.lua----------------------------------------------------------------------------------------- function manejadorEventos(evt) if evt.class=='key' and evt.type=='press' then if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '3' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) end refrescarHTML() end end function refrescarHTML() event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar'}) end event.register(manejadorEventos) -------------------------------------------------------------------------------------------------------------------------------------- Esa era una opcion que intente y no paso nada. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="onEndAttributionSet"> ( en el archivo metodos.ncl) y agregandole un <simpleAction role="start" />, para llamar de nuevo al "mediaWebService"cuando invoco al <link xconnector="metodo#onEndAttributionSet">( en el archivo main.ncl)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes 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 Forcing core dump " ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Bueno, nose que hacer ya. Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! nico __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
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. Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno. saludos. Santiago On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan < [email protected]> wrote:
*Buenas a todos!* ( esta frio no? )[image: Sonrisa]
Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service.
La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService).
Algo asi:
if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) end
*Hasta ahi funciona perfecto*.Si presiono* solo una vez* cada opcion se incrementa en 1 el voto del html. *Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. *
Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar'})
Este es el codigo:
-------------------------------------------*main.ncl* --------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
<head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase>
<descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex=" appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase>
<connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head>
<body>
<port id="pVote" component="imgBotonVote"/>
<media id="mediaWebService" type="text/html" src=" http://X.X.X.X/Ginga/Votar" descriptor="descWebService"> <property name="src"/> </media>
<media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media>
<media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/>
<media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua "/> </media>
<link xconnector="*metodo#**onBeginEndMenu*"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/>
<bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" />
<bind role="start" component="mediaWebService"/> </link>
<link xconnector="*metodo#onEndAttributionSet*"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link>
</body> </ncl>
-------------------------------------------------------------------------------------------------------------------------------------
---------------------* metodos.ncl* ------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase>
<causalConnector id="*onBeginEndMenu*"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector>
<causalConnector id="*onEndAttributionSet*"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector>
</connectorBase>
</head>
<body>
</body> </ncl>
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------*-luaHtml.lua-* ----------------------------------------------------------------------------------------
function manejadorEventos(evt)
if evt.class=='key' and evt.type=='press' then
if evt.key == '1' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=A'})
elseif evt.key == '2' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=B'})
elseif evt.key == '3' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar/?opcion=C'})
end * *refrescarHTML() end
end
function refrescarHTML()
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='http://X.X.X.X/Ginga/Votar'})
end
event.register(manejadorEventos)
--------------------------------------------------------------------------------------------------------------------------------------
Esa era una opcion que intente y no paso nada.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="*onEndAttributionSet*"> ( en el archivo * metodos.ncl *) y agregandole un <simpleAction role="start" />, para llamar de nuevo al "*mediaWebService*"cuando invoco al <link xconnector="*metodo# onEndAttributionSet*">( en el archivo* main.ncl*)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes
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
Forcing core dump
"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Bueno, nose que hacer ya. [image: Confundido] Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! *nico*
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentinaSitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
Yo creo que lo más cercano para tener un canal de retorno es usar la TVD desde un celular, porque allí casi seguramente tengas internet por gprs,3g, egde o por wifi. El canal de retorno para los STB seguramente va a demorar si esperamos que el estado nos de todo (aunque hay un plan para que así sea). Pero hoy en día crece todos los días el hecho de tener internet en casa, asi es que no lo veo dificil que pongamos un cable al STB para que salga/entre internet. Saludos, Marcelo 2012/4/27 Santiago Lombardi <[email protected]>
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. Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno.
saludos.
Santiago
On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan < [email protected]> wrote:
*Buenas a todos!* ( esta frio no? )[image: Sonrisa]
Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service.
La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService).
Algo asi:
if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar* /?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar* /?opcion=A'})
elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar* /?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar* /?opcion=B'})
elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar* /?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar* /?opcion=C'})
end
*Hasta ahi funciona perfecto*.Si presiono* solo una vez* cada opcion se incrementa en 1 el voto del html. *Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. *
Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar* '}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar* '})
Este es el codigo:
-------------------------------------------*main.ncl* --------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
<head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase>
<descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex=" appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase>
<connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head>
<body>
<port id="pVote" component="imgBotonVote"/>
<media id="mediaWebService" type="text/html" src="*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar>" descriptor="descWebService">
<property name="src"/> </media>
<media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media>
<media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/>
<media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua "/> </media>
<link xconnector="*metodo#**onBeginEndMenu*"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/>
<bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" />
<bind role="start" component="mediaWebService"/> </link>
<link xconnector="*metodo#onEndAttributionSet*"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link>
</body> </ncl>
-------------------------------------------------------------------------------------------------------------------------------------
---------------------* metodos.ncl* ------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase>
<causalConnector id="*onBeginEndMenu*"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector>
<causalConnector id="*onEndAttributionSet*"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector>
</connectorBase>
</head>
<body>
</body> </ncl>
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------*-luaHtml.lua-* ----------------------------------------------------------------------------------------
function manejadorEventos(evt)
if evt.class=='key' and evt.type=='press' then
if evt.key == '1' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A' * <http://X.X.X.X/Ginga/Votar/?opcion=A%27>}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A' * <http://X.X.X.X/Ginga/Votar/?opcion=A%27>})
elseif evt.key == '2' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B' * <http://X.X.X.X/Ginga/Votar/?opcion=B%27>}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B' * <http://X.X.X.X/Ginga/Votar/?opcion=B%27>})
elseif evt.key == '3' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C' * <http://X.X.X.X/Ginga/Votar/?opcion=C%27>}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C' * <http://X.X.X.X/Ginga/Votar/?opcion=C%27>}) end * *refrescarHTML() end
end
function refrescarHTML()
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'*<http://X.X.X.X/Ginga/Votar%27> }) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'*<http://X.X.X.X/Ginga/Votar%27> })
end
event.register(manejadorEventos)
--------------------------------------------------------------------------------------------------------------------------------------
Esa era una opcion que intente y no paso nada.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="*onEndAttributionSet*"> ( en el archivo *metodos.ncl *) y agregandole un <simpleAction role="start" />, para llamar de nuevo al "*mediaWebService*"cuando invoco al <link xconnector="*metodo# onEndAttributionSet*">( en el archivo* main.ncl*)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes
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
Forcing core dump
"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Bueno, nose que hacer ya. [image: Confundido] Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! *nico*
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentinaSitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
Algo no menor, dependiendo de que tipo de desarrollos estemos pensando es que las laptop q va a entregar el estado a los chicos de las escuelas, tengo entendido que va a traer un sintinizador de TVD. No se me ocurre el caso practico a desarrollar pero esas van a tener gran parte del tiempo canal de retorno. saludos On Fri, Apr 27, 2012 at 10:15 AM, Marcelo A. Vasquez < [email protected]> wrote:
Yo creo que lo más cercano para tener un canal de retorno es usar la TVD desde un celular, porque allí casi seguramente tengas internet por gprs,3g, egde o por wifi.
El canal de retorno para los STB seguramente va a demorar si esperamos que el estado nos de todo (aunque hay un plan para que así sea).
Pero hoy en día crece todos los días el hecho de tener internet en casa, asi es que no lo veo dificil que pongamos un cable al STB para que salga/entre internet.
Saludos, Marcelo
2012/4/27 Santiago Lombardi <[email protected]>
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. Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno.
saludos.
Santiago
On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan < [email protected]> wrote:
*Buenas a todos!* ( esta frio no? )[image: Sonrisa]
Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service.
La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService).
Algo asi:
if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*/?opcion=A'})
elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*/?opcion=B'})
elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*/?opcion=C'})
end
*Hasta ahi funciona perfecto*.Si presiono* solo una vez* cada opcion se incrementa en 1 el voto del html. *Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. *
Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* *MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*'})
Este es el codigo:
-------------------------------------------*main.ncl* --------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
<head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase>
<descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex=" appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase>
<connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head>
<body>
<port id="pVote" component="imgBotonVote"/>
<media id="mediaWebService" type="text/html" src="*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar * <http://X.X.X.X/Ginga/Votar>" descriptor="descWebService">
<property name="src"/> </media>
<media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media>
<media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/>
<media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua "/> </media>
<link xconnector="*metodo#**onBeginEndMenu*"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/>
<bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" />
<bind role="start" component="mediaWebService"/> </link>
<link xconnector="*metodo#onEndAttributionSet*"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link>
</body> </ncl>
-------------------------------------------------------------------------------------------------------------------------------------
---------------------* metodos.ncl* ------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase>
<causalConnector id="*onBeginEndMenu*"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector>
<causalConnector id="*onEndAttributionSet*"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector>
</connectorBase>
</head>
<body>
</body> </ncl>
--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------*-luaHtml.lua-* ----------------------------------------------------------------------------------------
function manejadorEventos(evt)
if evt.class=='key' and evt.type=='press' then
if evt.key == '1' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'*<http://X.X.X.X/Ginga/Votar/?opcion=A%27> }) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A' * <http://X.X.X.X/Ginga/Votar/?opcion=A%27>})
elseif evt.key == '2' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'*<http://X.X.X.X/Ginga/Votar/?opcion=B%27> }) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'*<http://X.X.X.X/Ginga/Votar/?opcion=B%27> })
elseif evt.key == '3' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C' * <http://X.X.X.X/Ginga/Votar/?opcion=C%27>}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C' * <http://X.X.X.X/Ginga/Votar/?opcion=C%27>}) end * *refrescarHTML() end
end
function refrescarHTML()
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'*<http://X.X.X.X/Ginga/Votar%27> }) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'*<http://X.X.X.X/Ginga/Votar%27> })
end
event.register(manejadorEventos)
--------------------------------------------------------------------------------------------------------------------------------------
Esa era una opcion que intente y no paso nada.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="*onEndAttributionSet*"> ( en el archivo *metodos.ncl *) y agregandole un <simpleAction role="start" />, para llamar de nuevo al "*mediaWebService*"cuando invoco al <link xconnector="*metodo# onEndAttributionSet*">( en el archivo* main.ncl*)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes
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
Forcing core dump
"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Bueno, nose que hacer ya. [image: Confundido] Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! *nico*
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentinaSitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina
Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
Buenas! Tengo una duda; nose si seria un canal de retorno lo que quiero hacer; digo, no quiero tomar valores devueltos del web service... Solo apunto a pasarle por medio de una url un parametro ( que eso si me lo toma y me lo refleja luego en pantalla que se incremento el resultado) y como segundo paso seria recargar la pagina ( alias " webService" , que en realidad es una html que me muestra resultados nomas). Eso de recargar la pagina es lo que no me funciona. Digo, seria unidireccional. Del ginga al web service nomas. Adjunto codigo. saludos!!! nico PD.: si hace falta, subo algun web service para que se vea mejor lo que quiero hacer =) Date: Fri, 27 Apr 2012 10:15:01 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service) Yo creo que lo más cercano para tener un canal de retorno es usar la TVD desde un celular, porque allí casi seguramente tengas internet por gprs,3g, egde o por wifi. El canal de retorno para los STB seguramente va a demorar si esperamos que el estado nos de todo (aunque hay un plan para que así sea). Pero hoy en día crece todos los días el hecho de tener internet en casa, asi es que no lo veo dificil que pongamos un cable al STB para que salga/entre internet. Saludos, Marcelo 2012/4/27 Santiago Lombardi <[email protected]> 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. Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno. saludos. Santiago On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan <[email protected]> wrote: Buenas a todos! ( esta frio no? ) Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service. La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService). Algo asi: if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) end Hasta ahi funciona perfecto.Si presiono solo una vez cada opcion se incrementa en 1 el voto del html. Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) Este es el codigo: -------------------------------------------main.ncl-------------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase> <descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex="appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase> <connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head> <body> <port id="pVote" component="imgBotonVote"/> <media id="mediaWebService" type="text/html" src="MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar" descriptor="descWebService"> <property name="src"/> </media> <media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media> <media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/> <media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua"/> </media> <link xconnector="metodo#onBeginEndMenu"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/> <bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" /> <bind role="start" component="mediaWebService"/> </link> <link xconnector="metodo#onEndAttributionSet"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link> </body> </ncl> ------------------------------------------------------------------------------------------------------------------------------------- --------------------- metodos.ncl------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase> <causalConnector id="onBeginEndMenu"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector> <causalConnector id="onEndAttributionSet"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector> </connectorBase> </head> <body> </body> </ncl> -------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------luaHtml.lua----------------------------------------------------------------------------------------- function manejadorEventos(evt) if evt.class=='key' and evt.type=='press' then if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '3' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) end refrescarHTML() end end function refrescarHTML() event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) end event.register(manejadorEventos) -------------------------------------------------------------------------------------------------------------------------------------- Esa era una opcion que intente y no paso nada. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="onEndAttributionSet"> ( en el archivo metodos.ncl) y agregandole un <simpleAction role="start" />, para llamar de nuevo al "mediaWebService"cuando invoco al <link xconnector="metodo#onEndAttributionSet">( en el archivo main.ncl)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes 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 Forcing core dump " ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Bueno, nose que hacer ya. Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! nico __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
Nicolas. Si desde el STB queres acceder a una URL para consumir datos o para enviar datos por parametros en la URL, necesitas el canal de retorno. Se llama canal de retorno no porque retorne algo, sino que nos dá la posibilidad de usar ese canal para completar la interactividad en la aplicación y retroalimentarse si se desea. Una aplicación práctica seria por ejemplo contestar una encuesta de satisfacción sobre el uso de la notebook, es un concepto sencillo. Saludos, Marcelo 2012/4/27 Nicolas Ignacio Roldan <[email protected]>
Buenas! Tengo una duda; nose si seria un canal de retorno lo que quiero hacer; digo, no quiero tomar valores devueltos del web service... Solo apunto a pasarle por medio de una url un parametro ( que eso si me lo toma y me lo refleja luego en pantalla que se incremento el resultado) y como segundo paso seria recargar la pagina ( alias " webService" , que en realidad es una html que me muestra resultados nomas). Eso de recargar la pagina es lo que no me funciona. Digo, seria unidireccional. Del ginga al web service nomas. Adjunto codigo. saludos!!! *nico*
PD.: si hace falta, subo algun web service para que se vea mejor lo que quiero hacer =)
------------------------------ Date: Fri, 27 Apr 2012 10:15:01 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service)
Yo creo que lo más cercano para tener un canal de retorno es usar la TVD desde un celular, porque allí casi seguramente tengas internet por gprs,3g, egde o por wifi.
El canal de retorno para los STB seguramente va a demorar si esperamos que el estado nos de todo (aunque hay un plan para que así sea).
Pero hoy en día crece todos los días el hecho de tener internet en casa, asi es que no lo veo dificil que pongamos un cable al STB para que salga/entre internet.
Saludos, Marcelo
2012/4/27 Santiago Lombardi <[email protected]>
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. Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno.
saludos.
Santiago
On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan < [email protected]> wrote:
*Buenas a todos!* ( esta frio no? )[image: Sonrisa]
Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service.
La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService).
Algo asi:
if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be *<http://X.X.X.X/Ginga/Votar> *MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/ ?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'})
elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'})
elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'})
end
Hasta ahi funciona perfecto.Si presiono solo una vez cada opcion se incrementa en 1 el voto del html. Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma.
Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar><http://X.X.X.X/Ginga/Votar> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'})
Este es el codigo:
-------------------------------------------main.ncl --------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
<head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase>
<descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex=" appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase>
<connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head>
<body>
<port id="pVote" component="imgBotonVote"/>
<media id="mediaWebService" type="text/html" src="MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar" descriptor="descWebService">
<property name="src"/> </media>
<media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media>
<media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/>
<media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua "/> </media>
<link xconnector="metodo#onBeginEndMenu"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/>
<bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" />
<bind role="start" component="mediaWebService"/> </link>
<link xconnector="metodo#onEndAttributionSet"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link>
</body> </ncl>
-------------------------------------------------------------------------------------------------------------------------------------
--------------------- metodos.ncl ------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase>
<causalConnector id="onBeginEndMenu"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector>
<causalConnector id="onEndAttributionSet"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector>
</connectorBase>
</head>
<body>
</body> </ncl>
--------------------------------------------------------------------------------------------------------------------------------------
---------------------------------luaHtml.lua- ----------------------------------------------------------------------------------------
function manejadorEventos(evt)
if evt.class=='key' and evt.type=='press' then
if evt.key == '1' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A%27><http://X.X.X.X/Ginga/Votar/?opcion=A%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A%27><http://X.X.X.X/Ginga/Votar/?opcion=A%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'})
elseif evt.key == '2' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B%27><http://X.X.X.X/Ginga/Votar/?opcion=B%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B%27><http://X.X.X.X/Ginga/Votar/?opcion=B%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'})
elseif evt.key == '3' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C%27><http://X.X.X.X/Ginga/Votar/?opcion=C%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C%27><http://X.X.X.X/Ginga/Votar/?opcion=C%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) end refrescarHTML() end
end
function refrescarHTML()
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar%27> <http://X.X.X.X/Ginga/Votar%27>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar' }) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar%27> <http://X.X.X.X/Ginga/Votar%27>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar' })
end
event.register(manejadorEventos)
--------------------------------------------------------------------------------------------------------------------------------------
Esa era una opcion que intente y no paso nada.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="onEndAttributionSet"> ( en el archivo metodos.ncl) y agregandole un <simpleAction role="start" />, para llamar de nuevo al " mediaWebService"cuando invoco al <link xconnector="metodo# onEndAttributionSet">( en el archivo main.ncl)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes
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
Forcing core dump
"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Bueno, nose que hacer ya. [image: Confundido] Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! nico
* * * *__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentinaSitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar* * * * __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
*
* * * __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
*
* * * __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentinaSitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar*
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
Muchas gracias por las respuestas Santiago y Marcelo! Habia concepto que no los entendia bien, como el de canal de retorno =). Gracias por la aclaración. Ya subi el web service por lo que se puede ver bien lo que quiero hacer. (Adjunto de nuevo la aplicacion totalmente funcional) Nose si lo comente, pero la aplicacion comienza cuando presiono OK ó ENTER. Si Ud. creen que no se puede hacer por el momento... bueno, lo dejo en standby =) Saludos y muchas gracias por la informacion! nico Date: Fri, 27 Apr 2012 10:51:02 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service) Nicolas. Si desde el STB queres acceder a una URL para consumir datos o para enviar datos por parametros en la URL, necesitas el canal de retorno. Se llama canal de retorno no porque retorne algo, sino que nos dá la posibilidad de usar ese canal para completar la interactividad en la aplicación y retroalimentarse si se desea. Una aplicación práctica seria por ejemplo contestar una encuesta de satisfacción sobre el uso de la notebook, es un concepto sencillo. Saludos, Marcelo 2012/4/27 Nicolas Ignacio Roldan <[email protected]> Buenas! Tengo una duda; nose si seria un canal de retorno lo que quiero hacer; digo, no quiero tomar valores devueltos del web service... Solo apunto a pasarle por medio de una url un parametro ( que eso si me lo toma y me lo refleja luego en pantalla que se incremento el resultado) y como segundo paso seria recargar la pagina ( alias " webService" , que en realidad es una html que me muestra resultados nomas). Eso de recargar la pagina es lo que no me funciona. Digo, seria unidireccional. Del ginga al web service nomas. Adjunto codigo. saludos!!! nico PD.: si hace falta, subo algun web service para que se vea mejor lo que quiero hacer =) Date: Fri, 27 Apr 2012 10:15:01 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service) Yo creo que lo más cercano para tener un canal de retorno es usar la TVD desde un celular, porque allí casi seguramente tengas internet por gprs,3g, egde o por wifi. El canal de retorno para los STB seguramente va a demorar si esperamos que el estado nos de todo (aunque hay un plan para que así sea). Pero hoy en día crece todos los días el hecho de tener internet en casa, asi es que no lo veo dificil que pongamos un cable al STB para que salga/entre internet. Saludos, Marcelo 2012/4/27 Santiago Lombardi <[email protected]> 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. Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno. saludos. Santiago On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan <[email protected]> wrote: Buenas a todos! ( esta frio no? ) Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service. La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService). Algo asi: if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) end Hasta ahi funciona perfecto.Si presiono solo una vez cada opcion se incrementa en 1 el voto del html. Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) Este es el codigo: -------------------------------------------main.ncl-------------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase> <descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex="appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase> <connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head> <body> <port id="pVote" component="imgBotonVote"/> <media id="mediaWebService" type="text/html" src="MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar" descriptor="descWebService"> <property name="src"/> </media> <media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media> <media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/> <media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua"/> </media> <link xconnector="metodo#onBeginEndMenu"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/> <bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" /> <bind role="start" component="mediaWebService"/> </link> <link xconnector="metodo#onEndAttributionSet"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link> </body> </ncl> ------------------------------------------------------------------------------------------------------------------------------------- --------------------- metodos.ncl------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase> <causalConnector id="onBeginEndMenu"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector> <causalConnector id="onEndAttributionSet"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector> </connectorBase> </head> <body> </body> </ncl> -------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------luaHtml.lua----------------------------------------------------------------------------------------- function manejadorEventos(evt) if evt.class=='key' and evt.type=='press' then if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '3' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) end refrescarHTML() end end function refrescarHTML() event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) end event.register(manejadorEventos) -------------------------------------------------------------------------------------------------------------------------------------- Esa era una opcion que intente y no paso nada. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="onEndAttributionSet"> ( en el archivo metodos.ncl) y agregandole un <simpleAction role="start" />, para llamar de nuevo al "mediaWebService"cuando invoco al <link xconnector="metodo#onEndAttributionSet">( en el archivo main.ncl)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes 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 Forcing core dump " ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Bueno, nose que hacer ya. Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! nico __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
Muchas gracias por las respuestas Santiago y Marcelo! Habia concepto que no los entendia bien, como el de canal de retorno =). Gracias por la aclaración. Ya subi el web service por lo que se puede ver bien lo que quiero hacer. (Adjunto de nuevo la aplicacion totalmente funcional) Nose si lo comente, pero la aplicacion comienza cuando presiono OK ó ENTER. Si Ud. creen que no se puede hacer por el momento... bueno, lo dejo en standby =) Saludos y muchas gracias por la informacion! nico Date: Fri, 27 Apr 2012 10:51:02 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service) Nicolas. Si desde el STB queres acceder a una URL para consumir datos o para enviar datos por parametros en la URL, necesitas el canal de retorno. Se llama canal de retorno no porque retorne algo, sino que nos dá la posibilidad de usar ese canal para completar la interactividad en la aplicación y retroalimentarse si se desea. Una aplicación práctica seria por ejemplo contestar una encuesta de satisfacción sobre el uso de la notebook, es un concepto sencillo. Saludos, Marcelo 2012/4/27 Nicolas Ignacio Roldan <[email protected]> Buenas! Tengo una duda; nose si seria un canal de retorno lo que quiero hacer; digo, no quiero tomar valores devueltos del web service... Solo apunto a pasarle por medio de una url un parametro ( que eso si me lo toma y me lo refleja luego en pantalla que se incremento el resultado) y como segundo paso seria recargar la pagina ( alias " webService" , que en realidad es una html que me muestra resultados nomas). Eso de recargar la pagina es lo que no me funciona. Digo, seria unidireccional. Del ginga al web service nomas. Adjunto codigo. saludos!!! nico PD.: si hace falta, subo algun web service para que se vea mejor lo que quiero hacer =) Date: Fri, 27 Apr 2012 10:15:01 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service) Yo creo que lo más cercano para tener un canal de retorno es usar la TVD desde un celular, porque allí casi seguramente tengas internet por gprs,3g, egde o por wifi. El canal de retorno para los STB seguramente va a demorar si esperamos que el estado nos de todo (aunque hay un plan para que así sea). Pero hoy en día crece todos los días el hecho de tener internet en casa, asi es que no lo veo dificil que pongamos un cable al STB para que salga/entre internet. Saludos, Marcelo 2012/4/27 Santiago Lombardi <[email protected]> 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. Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno. saludos. Santiago On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan <[email protected]> wrote: Buenas a todos! ( esta frio no? ) Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service. La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService). Algo asi: if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) end Hasta ahi funciona perfecto.Si presiono solo una vez cada opcion se incrementa en 1 el voto del html. Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) Este es el codigo: -------------------------------------------main.ncl-------------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase> <descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex="appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase> <connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head> <body> <port id="pVote" component="imgBotonVote"/> <media id="mediaWebService" type="text/html" src="MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar" descriptor="descWebService"> <property name="src"/> </media> <media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media> <media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/> <media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua"/> </media> <link xconnector="metodo#onBeginEndMenu"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/> <bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" /> <bind role="start" component="mediaWebService"/> </link> <link xconnector="metodo#onEndAttributionSet"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link> </body> </ncl> ------------------------------------------------------------------------------------------------------------------------------------- --------------------- metodos.ncl------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase> <causalConnector id="onBeginEndMenu"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector> <causalConnector id="onEndAttributionSet"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector> </connectorBase> </head> <body> </body> </ncl> -------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------luaHtml.lua----------------------------------------------------------------------------------------- function manejadorEventos(evt) if evt.class=='key' and evt.type=='press' then if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '3' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) end refrescarHTML() end end function refrescarHTML() event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) end event.register(manejadorEventos) -------------------------------------------------------------------------------------------------------------------------------------- Esa era una opcion que intente y no paso nada. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="onEndAttributionSet"> ( en el archivo metodos.ncl) y agregandole un <simpleAction role="start" />, para llamar de nuevo al "mediaWebService"cuando invoco al <link xconnector="metodo#onEndAttributionSet">( en el archivo main.ncl)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes 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 Forcing core dump " ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Bueno, nose que hacer ya. Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! nico __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
Chicos, creo que es mejor que envien los archivos adjuntos. En el mismo mensaje que dificil seguir el código. saludos On Wed, May 2, 2012 at 10:04 AM, Nicolas Ignacio Roldan < [email protected]> wrote:
Muchas gracias por las respuestas *Santiago *y *Marcelo*! Habia concepto que no los entendia bien, como el de canal de retorno =). Gracias por la aclaración.
Ya subi el web service por lo que se puede ver bien lo que quiero hacer. (Adjunto de nuevo la aplicacion totalmente funcional) Nose si lo comente, pero la aplicacion comienza cuando presiono OK ó ENTER.
Si Ud. creen que no se puede hacer por el momento... bueno, lo dejo en standby =)
Saludos y muchas gracias por la informacion! *nico* ------------------------------ Date: Fri, 27 Apr 2012 10:51:02 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service)
Nicolas.
Si desde el STB queres acceder a una URL para consumir datos o para enviar datos por parametros en la URL, necesitas el canal de retorno.
Se llama canal de retorno no porque retorne algo, sino que nos dá la posibilidad de usar ese canal para completar la interactividad en la aplicación y retroalimentarse si se desea.
Una aplicación práctica seria por ejemplo contestar una encuesta de satisfacción sobre el uso de la notebook, es un concepto sencillo.
Saludos, Marcelo
2012/4/27 Nicolas Ignacio Roldan <[email protected]>
Buenas! Tengo una duda; nose si seria un canal de retorno lo que quiero hacer; digo, no quiero tomar valores devueltos del web service... Solo apunto a pasarle por medio de una url un parametro ( que eso si me lo toma y me lo refleja luego en pantalla que se incremento el resultado) y como segundo paso seria recargar la pagina ( alias " webService" , que en realidad es una html que me muestra resultados nomas). Eso de recargar la pagina es lo que no me funciona. Digo, seria unidireccional. Del ginga al web service nomas. Adjunto codigo. saludos!!! *nico*
PD.: si hace falta, subo algun web service para que se vea mejor lo que quiero hacer =)
------------------------------ Date: Fri, 27 Apr 2012 10:15:01 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service)
Yo creo que lo más cercano para tener un canal de retorno es usar la TVD desde un celular, porque allí casi seguramente tengas internet por gprs,3g, egde o por wifi.
El canal de retorno para los STB seguramente va a demorar si esperamos que el estado nos de todo (aunque hay un plan para que así sea).
Pero hoy en día crece todos los días el hecho de tener internet en casa, asi es que no lo veo dificil que pongamos un cable al STB para que salga/entre internet.
Saludos, Marcelo
2012/4/27 Santiago Lombardi <[email protected]>
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. Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno.
saludos.
Santiago
On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan < [email protected]> wrote:
*Buenas a todos!* ( esta frio no? )[image: Sonrisa]
Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service.
La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService).
Algo asi:
if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be *<http://X.X.X.X/Ginga/Votar> * <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> */?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be *<http://X.X.X.X/Ginga/Votar> *MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> */?opcion=A'})
elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be *<http://X.X.X.X/Ginga/Votar> *MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> */?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be *<http://X.X.X.X/Ginga/Votar> *MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> */?opcion=B'})
elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be *<http://X.X.X.X/Ginga/Votar> *MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> */?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be *<http://X.X.X.X/Ginga/Votar> *MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> */?opcion=C'})
end
Hasta ahi funciona perfecto.Si presiono solo una vez cada opcion se incrementa en 1 el voto del html. Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma.
Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be *<http://X.X.X.X/Ginga/Votar> *MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> *'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be *<http://X.X.X.X/Ginga/Votar> *MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> *'})
Este es el codigo:
-------------------------------------------main.ncl --------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
<head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase>
<descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex=" appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase>
<connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head>
<body>
<port id="pVote" component="imgBotonVote"/>
<media id="mediaWebService" type="text/html" src="<http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar> <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be* <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be * <http://X.X.X.X/Ginga/Votar>*MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> *" descriptor="descWebService">
<property name="src"/> </media>
<media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media>
<media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/>
<media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua "/> </media>
<link xconnector="metodo#onBeginEndMenu"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/>
<bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" />
<bind role="start" component="mediaWebService"/> </link>
<link xconnector="metodo#onEndAttributionSet"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link>
</body> </ncl>
-------------------------------------------------------------------------------------------------------------------------------------
--------------------- metodos.ncl ------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase>
<causalConnector id="onBeginEndMenu"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector>
<causalConnector id="onEndAttributionSet"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector>
</connectorBase>
</head>
<body>
</body> </ncl>
--------------------------------------------------------------------------------------------------------------------------------------
---------------------------------luaHtml.lua- ----------------------------------------------------------------------------------------
function manejadorEventos(evt)
if evt.class=='key' and evt.type=='press' then
if evt.key == '1' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='<http://X.X.X.X/Ginga/Votar/?opcion=A%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A%27><http://X.X.X.X/Ginga/Votar/?opcion=A%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A%27><http://X.X.X.X/Ginga/Votar/?opcion=A%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar/?opcion=A>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A*<http://X.X.X.X/Ginga/Votar/?opcion=A> *'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='<http://X.X.X.X/Ginga/Votar/?opcion=A%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A%27><http://X.X.X.X/Ginga/Votar/?opcion=A%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A%27><http://X.X.X.X/Ginga/Votar/?opcion=A%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar/?opcion=A>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=A>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A*<http://X.X.X.X/Ginga/Votar/?opcion=A> *'})
elseif evt.key == '2' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='<http://X.X.X.X/Ginga/Votar/?opcion=B%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B%27><http://X.X.X.X/Ginga/Votar/?opcion=B%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B%27><http://X.X.X.X/Ginga/Votar/?opcion=B%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar/?opcion=B>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B*<http://X.X.X.X/Ginga/Votar/?opcion=B> *'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='<http://X.X.X.X/Ginga/Votar/?opcion=B%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B%27><http://X.X.X.X/Ginga/Votar/?opcion=B%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B%27><http://X.X.X.X/Ginga/Votar/?opcion=B%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar/?opcion=B>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=B>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B*<http://X.X.X.X/Ginga/Votar/?opcion=B> *'})
elseif evt.key == '3' then
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='<http://X.X.X.X/Ginga/Votar/?opcion=C%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C%27><http://X.X.X.X/Ginga/Votar/?opcion=C%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C%27><http://X.X.X.X/Ginga/Votar/?opcion=C%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar/?opcion=C>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C*<http://X.X.X.X/Ginga/Votar/?opcion=C> *'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='<http://X.X.X.X/Ginga/Votar/?opcion=C%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C%27><http://X.X.X.X/Ginga/Votar/?opcion=C%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C%27><http://X.X.X.X/Ginga/Votar/?opcion=C%27> **MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar/?opcion=C>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar/?opcion=C>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C*<http://X.X.X.X/Ginga/Votar/?opcion=C> *'}) end refrescarHTML() end
end
function refrescarHTML()
event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value=' <http://X.X.X.X/Ginga/Votar%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar%27> <http://X.X.X.X/Ginga/Votar%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar%27> <http://X.X.X.X/Ginga/Votar%27>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> *'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value=' <http://X.X.X.X/Ginga/Votar%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar%27> <http://X.X.X.X/Ginga/Votar%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar%27>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar%27> <http://X.X.X.X/Ginga/Votar%27>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: <http://X.X.X.X/Ginga/Votar>MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be <http://X.X.X.X/Ginga/Votar>**MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar*<http://X.X.X.X/Ginga/Votar> *'})
end
event.register(manejadorEventos)
--------------------------------------------------------------------------------------------------------------------------------------
Esa era una opcion que intente y no paso nada.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="onEndAttributionSet"> ( en el archivo metodos.ncl) y agregandole un <simpleAction role="start" />, para llamar de nuevo al " mediaWebService"cuando invoco al <link xconnector="metodo# onEndAttributionSet">( en el archivo main.ncl)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes
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
Forcing core dump
"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Bueno, nose que hacer ya. [image: Confundido] Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! nico
* * * *__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentinaSitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar* * * * __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
*
* * * __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
*
* * * __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentinaSitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar*
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentinaSitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentinaSitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
__________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
Perdon, adjunto de nuevo el codigo. ( se le esta adicionando a todas las url que puse un " MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner" ... que hace ilegible el codigo) From: [email protected] To: [email protected] Date: Fri, 27 Apr 2012 14:57:42 +0000 Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service) Muchas gracias por las respuestas Santiago y Marcelo! Habia concepto que no los entendia bien, como el de canal de retorno =). Gracias por la aclaración. Ya subi el web service por lo que se puede ver bien lo que quiero hacer. (Adjunto de nuevo la aplicacion totalmente funcional) Nose si lo comente, pero la aplicacion comienza cuando presiono OK ó ENTER. Si Ud. creen que no se puede hacer por el momento... bueno, lo dejo en standby =) Saludos y muchas gracias por la informacion! nico Date: Fri, 27 Apr 2012 10:51:02 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service) Nicolas. Si desde el STB queres acceder a una URL para consumir datos o para enviar datos por parametros en la URL, necesitas el canal de retorno. Se llama canal de retorno no porque retorne algo, sino que nos dá la posibilidad de usar ese canal para completar la interactividad en la aplicación y retroalimentarse si se desea. Una aplicación práctica seria por ejemplo contestar una encuesta de satisfacción sobre el uso de la notebook, es un concepto sencillo. Saludos, Marcelo 2012/4/27 Nicolas Ignacio Roldan <[email protected]> Buenas! Tengo una duda; nose si seria un canal de retorno lo que quiero hacer; digo, no quiero tomar valores devueltos del web service... Solo apunto a pasarle por medio de una url un parametro ( que eso si me lo toma y me lo refleja luego en pantalla que se incremento el resultado) y como segundo paso seria recargar la pagina ( alias " webService" , que en realidad es una html que me muestra resultados nomas). Eso de recargar la pagina es lo que no me funciona. Digo, seria unidireccional. Del ginga al web service nomas. Adjunto codigo. saludos!!! nico PD.: si hace falta, subo algun web service para que se vea mejor lo que quiero hacer =) Date: Fri, 27 Apr 2012 10:15:01 -0300 From: [email protected] To: [email protected] Subject: Re: [Ginga-argentina] Consulta NLC/LUA/HTML (Interactuando con Web Service) Yo creo que lo más cercano para tener un canal de retorno es usar la TVD desde un celular, porque allí casi seguramente tengas internet por gprs,3g, egde o por wifi. El canal de retorno para los STB seguramente va a demorar si esperamos que el estado nos de todo (aunque hay un plan para que así sea). Pero hoy en día crece todos los días el hecho de tener internet en casa, asi es que no lo veo dificil que pongamos un cable al STB para que salga/entre internet. Saludos, Marcelo 2012/4/27 Santiago Lombardi <[email protected]> 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. Estamos enfocando nuestros esfuerzos en comprender lo mejor posible las posibilidades sin canal de retorno. saludos. Santiago On Fri, Apr 27, 2012 at 9:49 AM, Nicolas Ignacio Roldan <[email protected]> wrote: Buenas a todos! ( esta frio no? ) Bueno, es esta oportunidad he comenzado a probar como funciona HTML con Ginga Mi objetivo es lograr interectuar a traves de Ginga con un web service. La aplicacion funcionaria asi: Por medio de los botones '1'/'2'/'3' del control remoto votaria algunas de las 3 opciones y reflejaria la cantidad de votos de cada opcion a traves de una pagina html. Si presiono alguna de las 3 opciones (1 ò 2 ò 3), paso ese voto por medio del 'event.post' al NCL ( esto hace que se incremente en 1 el valor que esta en una tabla del webService). Algo asi: if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) end Hasta ahi funciona perfecto.Si presiono solo una vez cada opcion se incrementa en 1 el voto del html. Mi problema esta en que si quiero volver a votar la misma opcion ya no me lo toma. Lo que hice. Despues de votar una opcion; volvia a llamar al "event.post" 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. Hacia: event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) Este es el codigo: -------------------------------------------main.ncl-------------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <ncl id="main" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <regionBase> <region id="rgWebService" width="100%" height="30%" top="0%" zIndex="1"/> <region id="rgLua" width="0%" height="0%" zIndex="1" /> <region id="idBotonVote" width="20%" height="20%" bottom="10%" left="10%" zIndex="1"/> </regionBase> <descriptorBase> <descriptor id="descWebService" region="rgWebService" /> <descriptor id="descLua" region="rgLua" focusIndex="appFocusLua"/> <descriptor id="descBotonVote" region="idBotonVote"/> </descriptorBase> <connectorBase> <importBase documentURI="metodos.ncl" alias="metodo"/> </connectorBase> </head> <body> <port id="pVote" component="imgBotonVote"/> <media id="mediaWebService" type="text/html" src="MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar" descriptor="descWebService"> <property name="src"/> </media> <media id="mediaLua" src="luaHtml.lua" descriptor="descLua" > <property name="bounds"/> <property name="srcNuevo"/> </media> <media id="imgBotonVote" src="Imagen/Botones/voto.png" descriptor="descBotonVote"/> <media id="focoLua" type="application/x-ginga-settings"> <property name="service.currentKeyMaster" value="appFocusLua"/> </media> <link xconnector="metodo#onBeginEndMenu"> <bind role="onSelection" component="imgBotonVote"> <bindParam name="oSetTecla" value="ENTER"/> </bind> <bind role="abort" component="imgBotonVote"/> <bind role="set" component="mediaLua" interface="bounds"> <bindParam name="oValor" value="0%,30%,100%,50%"/> </bind> <bind role="start" component="mediaLua"/> <bind role="start" component="focoLua" /> <bind role="start" component="mediaWebService"/> </link> <link xconnector="metodo#onEndAttributionSet"> <bind component="mediaLua" interface="srcNuevo" role="onEndAttribution"/> <bind component="mediaLua" interface="srcNuevo" role="getValue"/> <linkParam name="valor" value="$getValue"/> <bind role="set" component="mediaWebService" interface="src"/> </link> </body> </ncl> ------------------------------------------------------------------------------------------------------------------------------------- --------------------- metodos.ncl------------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Generated by NCL Eclipse --> <ncl id="metodos" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile"> <head> <connectorBase> <causalConnector id="onBeginEndMenu"> <connectorParam name="oSetTecla"/> <connectorParam name="oValor"/> <simpleCondition role="onSelection" key="$oSetTecla"/> <compoundAction operator="seq"> <simpleAction role="start" qualifier="seq" max="unbounded"/> <simpleAction role="abort" qualifier="seq" max="unbounded"/> <simpleAction role="set" qualifier="seq" max="unbounded" value="$oValor"/> </compoundAction> </causalConnector> <causalConnector id="onEndAttributionSet"> <connectorParam name="valor" /> <simpleCondition role="onEndAttribution"/> <simpleAction role="set" value="$valor" /> </causalConnector> </connectorBase> </head> <body> </body> </ncl> -------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------luaHtml.lua----------------------------------------------------------------------------------------- function manejadorEventos(evt) if evt.class=='key' and evt.type=='press' then if evt.key == '1' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=A'}) elseif evt.key == '2' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=B'}) elseif evt.key == '3' then event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar/?opcion=C'}) end refrescarHTML() end end function refrescarHTML() event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='start', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) event.post('out',{class = "ncl", type = "attribution", name = 'srcNuevo', action='stop', value='MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner has detected a possible fraud attempt from "x.x.x.x" claiming to be MailScanner warning: numerical links are often malicious: http://X.X.X.X/Ginga/Votar'}) end event.register(manejadorEventos) -------------------------------------------------------------------------------------------------------------------------------------- Esa era una opcion que intente y no paso nada. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// La otra opcion que intente es por medio de NCL, modificando <causalConnector id="onEndAttributionSet"> ( en el archivo metodos.ncl) y agregandole un <simpleAction role="start" />, para llamar de nuevo al "mediaWebService"cuando invoco al <link xconnector="metodo#onEndAttributionSet">( en el archivo main.ncl)... pero exploto con esa opcion... me salia algo como : " Memory leak by 136 bytes 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 Forcing core dump " ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Bueno, nose que hacer ya. Si a alguien le funciono o intento algo parecido, me daria una gran mano Saludos a todos! nico __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar __________________________________________Lista de correo [email protected] cambiar suscripción: https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina Sitio web: http://comunidad.ginga.org.ar Wiki: http://wiki.ginga.org.ar
participants (3)
-
Marcelo A. Vasquez -
Nicolas Ignacio Roldan -
Santiago Lombardi