[Q] How to force Web Browser to refresh Squeak world

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Q] How to force Web Browser to refresh Squeak world

Edgar J. De Cleene
Hi:

I using this as html response

<HTML>
 <HEAD>
 <TITLE>Squeak's Screen</TITLE>
 </HEAD>

 <BODY>
<form>

Button:
 <br>
 <input type="radio" name="button" value="4" checked>Red
 <input type="radio" name="button" value="1">Yellow
 <input type="radio" name="button" value="2">Blue
 <input type="radio" name="button" value="3">Move
 <input type="radio" name="button" value="6">Position
 <input type="radio" name="button" value="5">Text:
 <input size="30" maxlength="100" type="text" name="textIn" value="Input
this Text">
 <br>
 <input type=image name=point src= /screen
<view-source:http://localhost:8088/screen>  ">


 </form>
 </BODY>
 </HTML>

Works, but not refresh Web Browser.

If I add

<meta http-equiv="Refresh" content="5" >
Works , but the flicker is bad

    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="1 Jan 1900 00:00:00 GMT">

Don¹t seems work.

If I try:

<script type="text/javascript"><!--
   function abc(){
    alert("Hello.");
   }

   if(document.getElementsByTagName) onload = function(){
    document.getElementsByTagName("BODY")[0].onclick = abc;
  }
  //--></script>

The alert works, but Squeak do not process the event.


Any advice how to do this ?

Edgar
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [Q] How to force Web Browser to refresh Squeak world

Edgar J. De Cleene
Answering to myself and with the hope this could be useful to others.

The right answer is;

    ^ '<HTML>
 <HEAD>
 <TITLE>Squeak Screen</TITLE>
 </HEAD>

 <BODY>
<form action="/click/">
Button:
 <br>
 <input type="radio" name="button" value="4" checked>Red
 <input type="radio" name="button" value="1">Yellow
 <input type="radio" name="button" value="2">Blue
 <input type="radio" name="button" value="3">Move
 <input type="radio" name="button" value="6">Position
 <input type="radio" name="button" value="5">Text:
 <input size="30" maxlength="100" type="text" name="textIn" value="Input
this Text">
 <br>
<input type=image name=point src="/screen/">
<br>
   
    </form>
 
 </BODY>
 </HTML>'

Here you got the cheapest stupid way of have Squeak on Web.

Prerequisites is  DynamicBindings-gc.7, KomServices-edc .21,
KomHttpServer-edc.52, HV-edc.148

Edgar



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [Q] How to force Web Browser to refresh Squeak world

garduino
I don't understand neither.... :(

2010/2/6 Juan Vuletich <[hidden email]>:

> Edgar J. De Cleene wrote:
>>
>> Answering to myself and with the hope this could be useful to others.
>>
>> The right answer is;
>>
>> ...
>>
>> Here you got the cheapest stupid way of have Squeak on Web.
>>
>> Prerequisites is  DynamicBindings-gc.7, KomServices-edc .21,
>> KomHttpServer-edc.52, HV-edc.148
>>
>> Edgar
>>
>
> Perhaps you can explain a little bit what are you doing? Perhaps send an URL
> for others to see? So far, I didn't understand what's this about.
>
> Cheers,
> Juan Vuletich
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [Q] How to force Web Browser to refresh Squeak world

Edgar J. De Cleene

Bueno, aclaro un poco en castellano de que se trata esto.
Ya comente que baje todo el swiki original y agregue varias cosas que no
habia antes.
Como ser que se pueda cambiar los fondos con .css individuales.
Como ser que la vista por default es encriptada y que hice un lindo captchca
morphic para ingresar el codigo de desencriptado.
Como ser que puede entrar a mi máquina y buscar música.

Te habia comentado que mi plan era mirar Asteroid de Diego.
Rescate algo muy viejo que use para el TEG y todo funciona.
Es mas , lo probe en todos los Browser que tengo en la mac y que son
Firefox, Safari, iCab y Chrome y anda en todos.
Hay un cierto retardo en los refreshs, pero funciona perfectamente.
Como esta, no procesa tampoco correctamente los clicks en web para
trasladarlos a Squeak.
O sea que esta solución no me sirve, porque el refresh de lo que se hace
anda pero el procesado de los clicks del mouse no.

En la hipotesis de matar dragones con gomera, lo que mande es el código mas
simple posible de procesar correctamente los clicks.
Supongo que el refresh tiene que ser via javascript, pero hasta ahora no lo
consegui correctamente.

Entro en Skype

Edgar