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 |
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 |
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 |
On 2/6/10 11:33 AM, "Juan Vuletich" <[hidden email]> wrote: > 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 Very simple Suppose you wish see you Squeak into Firefox,Safari, Chrome, etc. And not wish deal with heavy weights like Seaside. So you serve the screen with Kom + HV2. I think this is the most simple way, but maybe exist other . For Web Browsers works, you must follow html rules I follow http://www.w3schools.com/ , which have tons of useful references. And thanks for give me the chance of say the code still need polish. Some javascript I suppose. The mouse clicks on Firefox , etc is some like http://localhost:8080/click/?button=4&textIn=Input+this+Text&point.x=124&poi nt.y=64 This is processed in Squeak , but the changed screen is not send back to running Web Browser Very thanks. Edgar |
In reply to this post by Juan Vuletich-4
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 > > |
Free forum by Nabble | Edit this page |