<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 12-10-13 4:29 PM, Pavel Krivanek
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHN2FzdB5YWiYcds6bvUHABVaPSapUcSCaX_JxdTvvPA7VF4kQ@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi,

I created a port of Phobos (framework for creation of native user
interface using XULRunner) to Squeak too.

<a class="moz-txt-link-freetext" href="http://code.google.com/p/phobos-framework/">http://code.google.com/p/phobos-framework/</a>

It uses WebClient instead of Zinc. To load Phobos evaluate:

(Installer repository: '<a class="moz-txt-link-freetext" href="http://www.squeaksource.com/WebClient">http://www.squeaksource.com/WebClient</a>')
  addPackage: 'WebClient-Core';
  install.

(Installer repository: '<a class="moz-txt-link-freetext" href="http://www.squeaksource.com/Seaside30">http://www.squeaksource.com/Seaside30</a>')
  addPackage: 'Grease-Core';
  addPackage: 'Grease-Pharo-Core';
  addPackage: 'Seaside-Pharo-Continuation';
  install.

(Installer repository: '<a class="moz-txt-link-freetext" href="http://www.squeaksource.com/SCouchDB">http://www.squeaksource.com/SCouchDB</a>')
  addPackage: 'JSON';
  install.

(Installer repository: '<a class="moz-txt-link-freetext" href="http://smalltalkhub.com/mc/PavelKrivanek/Phobos/main">http://smalltalkhub.com/mc/PavelKrivanek/Phobos/main</a>')
  addPackage: 'Phobos-Core';
  addPackage: 'Phobos-XUL';
  addPackage: 'Phobos-HTML';
  addPackage: 'Phobos-Demo';
  addPackage: 'Phobos-WebClient';
  install.

To start the server evaluate:

app := PhobosDemo new.
app startOnWebClient.

ATTENTION: You will need to modify start.st script in the bundle.

There is one main ugly difference from Pharo, If an error on Smalltalk
side is raised, no debugger is opened. You will get the information
about an error only on the JavaScript side in JSConsole:

"
Error: The connection to <a class="moz-txt-link-freetext" href="ws://localhost:46528/newSession">ws://localhost:46528/newSession</a> has
terminated unexpectedly. Some data may have been transferred.
Source File: <a class="moz-txt-link-freetext" href="chrome://myapp/content/main.js">chrome://myapp/content/main.js</a>
Line: 132
"

Cheers,
-- Pavel

</pre>
    </blockquote>
    We were just talking about this in the Squeak Community Meeting, as
    we were discussing the possible limitations of web browsers <br>
    <br>
    Having played with this a bit my first question is where is the
    client? I loaded Phobos, started it, and went to <a class="moz-txt-link-freetext" href="http://localhost">http://localhost</a>:
    46528 in Chrome, which I think is my first mistake right there. Does
    this work on Firefox and not Chrome, because Firefox uses Xul? Nope.
    <br>
    <br>
    This uses a <a class="moz-txt-link-freetext" href="ws://localhost">ws://localhost</a> protocol I've never seen before. OK.
    Where does that go? Is there a Xul browser? Certainly not. <br>
    <br>
    I download XulRunner, but that isn't an application. I'm supposed to
    create an application like ChatZilla [1] and start it with XulRunner
    after I've downloaded it, c'est la: <br>
    <br>
    <meta charset="utf-8">
    /Library/Frameworks/XUL.framework/xulrunner-bin
    /Users/chrisucunnington/Desktop/chatzilla-0.9.89-xr.zip<br>
    <br>
    And I don't see any place to put a <a class="moz-txt-link-freetext" href="ws://">ws://</a> address. Hmmm...<br>
    <br>
    So I've got some nice pictures of the running Phobos demo presenting
    in an unknown client. [2] They setup looks kind of like the Xul
    Periodic Table, which used to be online, but was severed due to
    security. <br>
    <br>
    So, I think before you can use the Phobos demo you need to build a
    client to see it and start it with XulRunner. There's something
    wrong with that statement, but I don't know what it is. <br>
    <br>
    Pavel also created an all JavaScript version called XulJet. [3]<br>
    <br>
    Chris <br>
    <br>
    [1] <a class="moz-txt-link-freetext" href="http://chatzilla.rdmsoft.com/xulrunner/">http://chatzilla.rdmsoft.com/xulrunner/</a><br>
    [2]
<a class="moz-txt-link-freetext" href="https://plus.google.com/photos/106846588629768024210/albums/5797347436751628657">https://plus.google.com/photos/106846588629768024210/albums/5797347436751628657</a><br>
    [3] <a class="moz-txt-link-freetext" href="http://code.google.com/p/xuljet/">http://code.google.com/p/xuljet/</a><br>
  </body>
</html>