Login  Register

Re: Can I code a web browser in a Pharo GUI window (Morphic or other)?

Posted by Noury Bouraqadi-2 on Jun 14, 2019; 12:57pm
URL: https://forum.world.st/Can-I-code-a-web-browser-in-a-Pharo-GUI-window-Morphic-or-other-tp5100335p5100345.html

Hi Arie,

Do you really need to code web browser, or is it acceptable to control a web browser from Pharo.
This is what we do in PharoJS (http://pharojs.org), for running tests.
We also have a custom playground, so evaluate pharo expressions that are translated to javascript and executed by the web browser.

Noury 

On 14 Jun 2019, at 09:45, Arie van Wingerden <[hidden email]> wrote:

Hi,

for a project I need this kind of program:
  1. client side only
  2. must be able to programmatically show a web browser in a window (Morphic??); only local content will be shown
  3. must also be able to show other windows, containing simple games
Now, I guess that 1 and 3 are possible straight away, but I am unsure about option 2.

I found out that there are a few ways to do it:
  • using C#, which has:
    • standard web browser control out-of-the-box
    • third-party open source chromium web browser component
  • using Java, which (afaict) is a coding effort, but possible anyway

That saiud, since I'd very much like to start using Pharo for more tasks (just starting) I wonder if Pharo has something to offer in this case.

Many thx!
  /Arie