how to set codeUrl when publishing a project

kwiyi woo kwiyiwoo at yahoo.com
Wed Jun 23 16:20:23 UTC 2004


Hello,

I want to publish my project on-line on my own webserver. It was written in Squeak programming language. I did a simple test, but it failed. 

 

The whole c1.html is as follows

<html> 

<head>

<title>Squeak Plugin Launcher</title>

<base href="www.squeakland.org"> 

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body bgcolor="#FFFFFF">

<object id="SqueakOCX Control" width="752 height="450 

type="application/x-squeak-source" 

classid="CLSID:2BE9C39E-8386-4435-B337-FCDAD8EAB006" 

codebase="http://squeakland.org/installers/SqueakPluginInstaller.exe">

        <param name="src" value="http://localhost/~Qinyi/c1.sts">

        <param name="codeUrl" value="http://localhost/~Qinyi/Test.st">

        <param name="projectUrl" value="http://localhost/~Qinyi/c1.001.pr">

        <param name="pageId" value="43">

        <param name="locked" value="false">

        <param name="types" value="text-survey">

        <param name="pluginspage" value="http://www.squeakland.org/detect.html">

</object>

</body>

 

I put the project starting command in the file c1.sts and set the value of src to it.

-----------------------   c1.sts --------------------------------

| c1 |

c1 _ C1 new.

-----------------------------------------------------------------------

I filed out the project resource in Test.st and set the value of codeUrl to it.

-----------------------   Test.st  --------------------------------

 

Morph subclass: #C1

       instanceVariableNames: ''

       classVariableNames: ''

       poolDictionaries: ''

       category: 'Test'!

 

!C1 methodsFor: 'initialization' stamp: 'w 6/23/2004 11:45'!

initialize

| r |

       r _ RectangleMorph new.

       r openInWorld.! !

-----------------------------------------------------------------------

 

Finally, I save the project as c1.001.pr and set the value of projectUrl to it. 

But when I browsed c1.html through IE, it said that

MessageNotUnderstood: new

 

The problem is that the squeakplug in cannot find the definition of C1 defined in codeUrl. Is there anyone who can help me figure out the right configuration to it?

 

Thanks

Kwiyi

		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040623/1aa7a7f9/attachment.htm


More information about the Squeak-dev mailing list