scamper problem

Lic. Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Thu Mar 3 14:30:18 UTC 2005


On 03/03/05 09:44, "L. Redrejo José  Rodríguez"
<jredrejo at edu.juntaextremadura.net> wrote:

> I am trying to use scamper to read html files from disk, i.e. using url
> like file://path/file.html
> In Squeak 3.5 it worked fine, but with >=3.7 it doesn't work. I always
> get an "Error retrieving this URL" message.
> It also happens using browser:about as url.
> I am using squeak on Debian and everything else seems to be fine. I
> don't have a windows machine to test if it is a problem related to the
> filesystem.
> After searching in this list and in bugs.impara.de, nobody else has
> noticed this behaviour, so maybe it is because of my setup.
> Can anybody else confirm this error before sending a bug report?
> Regards.
Here a slow and dirty solution.
1 Go to SM
2 Load Network-HTML-md.4
3 |  input aText  sf|
input :=  FileStream oldFileNamed: afileName.
    aText := (HtmlParser parse: input) formattedText.

sf := (ScrollableField new) yourself;
    
        color: (Color
                r: 0.972
                g: 0.972
                b: 0.662).

    
    sf setMyText: aText.

sf openInHand

>From the book "1001 stupid things to do with Squeak"

Edgar





More information about the Squeak-dev mailing list