The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Queries on comp.lang.smalltalk from M. Roberts

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Queries on comp.lang.smalltalk from M. Roberts Posted: Oct 2, 2003 11:10 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Queries on comp.lang.smalltalk from M. Roberts
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

> There are a few things required, such as numbered lists, and we need to > resolve the question of how hyperlinks would be used to execute Smalltalk > code, whether WithStyle would be used to author the XML content, etc.

This is ahead of its time, but I thought people might be interested in it any way.

We are in the development stages of making with:Style a WYSIWYG css styled XML editor. Numbered lists work in our development version

Hyperlinks are a great way to run code. There are several ways to do this. You can take the HTML approach and use <script language="Smalltalk">, or you can use the more modern XML-Events approach and use xe:event="click", etc.. (more on that one later, you can go look at the spec now if you want) or you can use the with:Style syntax and put it straight in ws:onClick="Transcript cr; show: 'hi'" - this is similar to the javascript approach for HTML, where you can specify onClick's.

So! there are many ways to achieve this. Some of the above described work right now in our development version. All will work by the time we are ready to release.

There is one other way to do it which I thought you might find interesting. You can map an XML element to a class, such as <MyElement> and that will go to class MyNamespace.MyElement - and on that you can implement #activateOn: to do what you want when a click is hit. So! Many ways to skin the hyperlink cat.

Read: Queries on comp.lang.smalltalk from M. Roberts

Topic: Community Blogs grow Previous Topic   Next Topic Topic: Re: Smalltalk Reports

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use