Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

HTML Applet in iWeb causes iWeb to freeze, Any idea's on how to fix the issue?

Im currently using OS X Lion (7.3) on a MacBook Pro (Late 2011, 13 inch), and I need to make a website for a sporting team, and Im obvisoly using iWeb (3.0.4) to make this website. I've made a scratch game that I would like to put on the website, but everytime I get the applet into the HTML widget and click "Apply", it freezes and I have no choice but to force quit it. Any Idea's or other ways I could post the game?

MacBook Pro (13-inch Late 2011), Mac OS X (10.7.3)

Posted on Apr 27, 2012 2:17 PM

Reply
Question marked as Best reply

Posted on Apr 27, 2012 2:45 PM

That happens when you paste Java code in the HTML Snippet. iWeb freezes.


Use an external HTML file with that code and display it in the HTML Snippet with the <iframe> element :


<iframe src="url.to.filewithjava.html" frameborder="0" width="500" height="500" scrolling="no" allowTransparency="true"></iframe>


Here's a page with Java code you can download :


http://www.wyodor.net/MoreEmbed/java.html


Read this too :


Using the iWeb HTML Snippet

9 replies
Question marked as Best reply

Apr 27, 2012 2:45 PM in response to Ernest Gold

That happens when you paste Java code in the HTML Snippet. iWeb freezes.


Use an external HTML file with that code and display it in the HTML Snippet with the <iframe> element :


<iframe src="url.to.filewithjava.html" frameborder="0" width="500" height="500" scrolling="no" allowTransparency="true"></iframe>


Here's a page with Java code you can download :


http://www.wyodor.net/MoreEmbed/java.html


Read this too :


Using the iWeb HTML Snippet

Apr 27, 2012 3:05 PM in response to Wyodor

I just tried that, and its great but theres One problem...


Instead of just having the game, it includes eveyrthing else on the web-page.

This is the site I want to get the game from:

http://scratch.mit.edu/projects/ErnestGold/1822412


And what I find completely strange is that about a year ago I used the code and it worked on iWeb, its only now I have a new Mac Book Pro and iWeb doesn't like it.


My point is, Is there a way to just get the Game its self?


Thanks

Apr 27, 2012 3:34 PM in response to Ernest Gold

Create an independent page, outside iWeb.


With all the bells and whistles.


Keep everyting OUTSIDE the folder iweb creates and display the result in a browser window. Tinker as long as it takes to make it work.


Display the final result in iWeb as instructed.

My point is, Is there a way to just get the Game its self?

Grab the code :

<div id="projectload" style="display: block; " align="center">

<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="/static/misc/" archive="ScratchApplet.jar" height="387" width="482"><param name="project" value="../../static/projects/ErnestGold/1822412.sb?version=3"><param name="java_arguments" value="-Xmx128m"><h3><a href="http://www.java.com/getjava/">Install Java</a> to view this project right on your browser!<a href="/projects/ErnestGold/1822412/downloadsb"><img src="/static/projects/ErnestGold/1822412_med.png"></a></h3></applet>

</div>


Make it work.

Apr 28, 2012 3:18 AM in response to Ernest Gold

I had to work last night, so it took me some time to find the information for you.


Here it is :


Scratch Projects on another website or CD


Then proceed to this page :


http://scratch.mit.edu/forums/viewtopic.php?id=191


And upon very careful reading of the small print,


http://info.scratch.mit.edu/Publishing_your_Scratch_projects_on_other_websites


I noticed the embed code on your project page.


How about that, it works :


http://home.wyodor.net/demoos/scratch/

Apr 28, 2012 1:18 PM in response to Wyodor

Thank-You so much! After having a bit of a play around, with the code on the http://scratch.mit.edu/forums/viewtopic.php?id=191 page, I've made an individual HTML page, and I used the iframe code to grab it.


If your interested you veiw the final result here: http://mountgold.tk/


Click on the "Game" tab


User uploaded file


And you have the Game!


User uploaded file



The process has caused iWeb to become a bit unstable when touching the "Game HTML Snippet Code", but all that matters is that its there!


Again, Thanks so much for your help,

if it wasn't for you I would never have been able to do this!

HTML Applet in iWeb causes iWeb to freeze, Any idea's on how to fix the issue?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.