This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-05-22 22:49:34

rico
Scratcher
Registered: 2007-05-22
Posts: 47

posting Scratch files on a webserver other than Scratch

Does anyone have any ideas why .sb files won't run from our intranet server (Windows Server 2003 Standard Edition)?

When posting a Scratch file on my school's intranet server, clients see only the initial "Loading" page, but the scratch .sb file never loads or appears in any way. As per instructions I downloaded the two required files and put them in the same folder as the .sb file. I also created an .htm file and edited the code to reflect the filename of the .sb file. The client computers all have java, and are able to view .sb files on the scratch.mit.edu website with no problem.

I teach in an elementary school, and I hope to start an after school computer club in which students will create .sb programs, and we'll post them on our intranet site. The computer that runs the intranet server is right here in our school, and I have complete access to it as an Admin user.

Offline

 

#2 2007-05-22 23:32:59

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: posting Scratch files on a webserver other than Scratch

Please show the html code you used to load the applet.  Several of us have gotten the scratch files to work as well on our websites as they do on scratch.mit.edu.  It's hard to see what you might have done wrong if we can't see what is different.

Offline

 

#3 2007-05-23 00:38:41

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Re: posting Scratch files on a webserver other than Scratch

Thank you very much, kevin. This is the entire text of the hat.htm file as it stands now, but I still see only the "Loading" page:
===============
<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="/scratch/" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="hat.sb">
</applet>
</body>
</html>
===============
The files are indeed in the same folder. The contents of the folder are as follows:

hat.htm
hat.sb
ScratchApplet.jar
soundbank.gm

I have tried both the original "./"  and  "/foldername/" for the codebase.

Last edited by rico (2007-05-23 00:39:41)

Offline

 

#4 2007-05-23 07:21:18

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: posting Scratch files on a webserver other than Scratch

Just a quick idea. Why don't you host the HTML on your intranet but the .jar and .sb on our website. One of the kids using Scratch was able to do that on his own homepage: http://xyxzer.bravehost.com/scratchpad/Use%20Online.html


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#5 2007-05-23 08:55:34

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Re: posting Scratch files on a webserver other than Scratch

Thank you for the kind offer, Andrés. I may take you up on that offer, but I am going to try to wrestle with this server a while longer. I am not ready to give up yet. My school is overseas, and connectivity can be an issue at times; having the students' work right here in the same building would be the best option for us, if I can pull it off.

Offline

 

#6 2007-05-23 22:42:01

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: posting Scratch files on a webserver other than Scratch

If you are interested. I am about to get approval from MIT to release as open source (under GPL) the software that powers this website (the Scratch website). It is nothing complicated. Just PHP code under an MVC framework (CakePHP). Requires Apache and MysQL. This way you could setup a Scratch sharing server on your local network and configure Scratch to upload to that server instead. If you're PHP-savvy should be pretty straight forward and if you want to collaborate in improving the server side, even better.


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#7 2007-05-23 23:05:50

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: posting Scratch files on a webserver other than Scratch

Rico, your code looks a lot like mine, but I eliminated the "codebase=" param, which is not needed if the .sb and .jar files are in the same directory as the .html file.  I'm actually running from a .php file, so that there can be an automatic check for updates to Scratch.jar

Go to http://www.soe.ucsc.edu/~karplus/scratch_programs/
pick any project, and look at the source code for the web page.
The check-jardate.php file that I invoke in all the .php files is not directly viewable over the web, so I made a copy in check-jardate.txt

Offline

 

#8 2007-05-24 00:56:04

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Re: posting Scratch files on a webserver other than Scratch

Andrés, that sounds really exciting. But doing something like that is way beyond my capacity. I would love to learn how to do those things.

Kevin, I tried it without the "codebase=" param also and still got only the "Loading..." screen with the white loading box. What you've suggested for checking on Scratch.jar updates is really slick, but I'm afraid that is beyond my limited skills and knowledge as well.

Gentlemen, I'm just hoping to get our student projects running on our server. My only ideas right now are to install Scratch on the server and to install Service Pack 2 on the server. Since the html code seems to be correct and the client browser shows the Loading screen, I'm thinking there must be something missing on my server. Would either of my ideas have any effect?

Offline

 

#9 2007-05-24 14:38:13

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: posting Scratch files on a webserver other than Scratch

Most likely the problems are configuration problems with your web server program, with it refusing to deliver the Scratch.jar file (or with a damaged Scratch.jar file).

I don't run a web server---I just put up pages on a web server maintained by tech staff, so I'm not familiar with all the options that the web servers have.  I know I have had to complain to tech staff when they have gratuitously turned off access to files (once by hiding README files, once by refusing to follow unix soft-links, both of which were essential to some of the web services I run).

Offline

 

#10 2007-05-26 23:17:55

rico
Scratcher
Registered: 2007-05-22
Posts: 47

Re: posting Scratch files on a webserver other than Scratch

Thank you, Kevin. I will keep wrestling with my server, and if I figure it out, I will post the answer in this forum in case the solution could help others. In the meantime, I will host the html pages on our intranet and the scratch projects on the Scratch webserver as suggested by Andrés.

Offline

 

Board footer