[squeak-dev] Squeak browser plugin and JavaScript

Bert Freudenberg bert at freudenbergs.de
Tue Sep 7 10:15:37 UTC 2010


On 07.09.2010, at 04:05, Rob Withers wrote:

> 
> 
> --------------------------------------------------
> From: "Bert Freudenberg" <bert at freudenbergs.de>
> Sent: Monday, September 06, 2010 1:17 PM
> To: "The general-purpose Squeak developers list" <squeak-dev at lists.squeakfoundation.org>
> Subject: Re: [squeak-dev] Squeak browser plugin and JavaScript
> 
>> (un-cc'ing vmdev)
>> 
>> On 06.09.2010, at 15:02, Rob Withers wrote:
>> 
>>> Hi Bert,
>>> 
>>> I should start by explaining why I think the use of JavaScript is desirable. JS enables client side UI and behaviors.   It is back to fat client, with a server publishing the UI and the content, but the UI runs in the client.  JS supports client-side behaviors to respond to mouse over, hover, move?, click, selection, etc.  It is a professional look and feel and accepted industry wide - broad support in modern browsers.
>>> 
>>> Let's look at the alternatives you mention, and please correct me if I have the wrong read on it:
>>> 
>>> 1) HTML/DOM - no client side behavior.  Not a robust UI.   All static elements.
>> 
>> Huh? All you do in Javascript is manipulating the DOM. Unless you draw your own UI using the HTML Canvas object.
>> 
> 
> I don't understand this.  Could you explain what you mean when you say "All you do in Javascript is manipulating the DOM".  I realize a DOM comes from the servlet

Err, no. The DOM lets you manipulate HTML:

http://www.w3schools.com/htmldom/

The DOM is JS's view of the HTML page, and it can manipulate it. That's all there is to it (if you cut through the piles of marketing bs). It's a very simple idea, and as often, those are the powerful ones ;)

E.g. if you want to hide or show a control in JS you change attributes on the DOM which the browser then renders.

> , but there are all these objects that are created and interact (to mouse events, timers, other events).  It talks to the server with DOM but the behavior is more than just manipulating the DOM, isn't it?

This has nothing whatsoever to do with a server. As I pointed out earlier ;)

- Bert -




More information about the Squeak-dev mailing list