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

#1 2012-06-12 21:49:00

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Object embed vs. Applet embed.

I want to embed my project, but I want it to be in java.  However, Scratch does not provide an option to embed it as <object>, as <applet> is not supported in HTML5.  Does anyone know how to embed the java player as an object?


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#2 2012-06-12 21:52:16

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Object embed vs. Applet embed.

You could try using the Flash player, or use HTML4/XHTML (XHTML is good because it has well-formed syntax and HTML5 doesn't).


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#3 2012-06-12 21:55:49

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Object embed vs. Applet embed.

could I still get an object embed?


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#4 2012-06-12 21:56:40

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Object embed vs. Applet embed.

Try Googling how to embed an applet with <object>.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#5 2012-06-12 21:58:20

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Object embed vs. Applet embed.

I tried that before asking...


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#6 2012-06-12 22:01:27

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Object embed vs. Applet embed.

Have you looked at the W3Schools article yet?


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#7 2012-06-12 22:06:06

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Object embed vs. Applet embed.

I did, but I have a reference book, (which is a lot more useful - desktop reference books from orielly yay!) and I just needed someone who knew it off the top of their head, I currently have a very tight schedule, and would like to get it implemented ASAP.


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#8 2012-06-12 22:57:21

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Object embed vs. Applet embed.

I'd just set the doctype to HTML4, you can get a lot of useful deprecated tags  tongue
Also, I'd just use it in HTML5. It'll turn obsolete in a few years, when I doubt you'll still even care about the site (unless it's eternity inc.)

Last edited by chanmanpartyman (2012-06-12 22:58:29)

Offline

 

#9 2012-06-13 03:25:56

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Object embed vs. Applet embed.

Using HTML 4.


http://trinary.tk/images/signature_.php

Offline

 

#10 2012-06-13 18:20:27

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Object embed vs. Applet embed.

jvvg wrote:

You could try using the Flash player, or use HTML4/XHTML (XHTML is good because it has well-formed syntax and HTML5 doesn't).

HTML5 actually can have well-formed syntax;  in all honesty, it actually depends on the coder as to how sloppy/clean the code is.  I mean, you could have "XHTML", but with bad syntax; it just wouldn't be validated.
Now, for your question, here's the code:

Code:

<object tabindex="0" type="application/x-java-applet" height="387" width="482">
  <!--Generic parameters for all Java applets. -->
  <param name="codebase" value="http://scratch.mit.edu/static/misc/" >
  <param name="archive"  value="ScratchApplet.jar" >
  <param name="code"     value="ScratchApplet" >

  <!--Specific parameters. -->
  <param name="project"  value="../../static/projects/technoguyx/355353.sb" >
  Your browser needs Java to view projects.
</object>

Just set the height and width to what you'd like

Source: http://freear.org.uk/content/embed-scratch-applet-html5

Last edited by SJRCS_011 (2012-06-13 18:21:51)


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#11 2012-06-13 21:18:33

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Object embed vs. Applet embed.

chanmanpartyman wrote:

I'd just set the doctype to HTML4, you can get a lot of useful deprecated tags  tongue
Also, I'd just use it in HTML5. It'll turn obsolete in a few years, when I doubt you'll still even care about the site (unless it's eternity inc.)

funny you say that, it is actually Eternity Inc's site.  I'm trying to improve SEO, and invalid HTML markup looks bad when developing SEO.


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#12 2012-06-13 21:20:00

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Object embed vs. Applet embed.

SJRCS_011 wrote:

jvvg wrote:

You could try using the Flash player, or use HTML4/XHTML (XHTML is good because it has well-formed syntax and HTML5 doesn't).

HTML5 actually can have well-formed syntax;  in all honesty, it actually depends on the coder as to how sloppy/clean the code is.  I mean, you could have "XHTML", but with bad syntax; it just wouldn't be validated.
Now, for your question, here's the code:

Code:

<object tabindex="0" type="application/x-java-applet" height="387" width="482">
  <!--Generic parameters for all Java applets. -->
  <param name="codebase" value="http://scratch.mit.edu/static/misc/" >
  <param name="archive"  value="ScratchApplet.jar" >
  <param name="code"     value="ScratchApplet" >

  <!--Specific parameters. -->
  <param name="project"  value="../../static/projects/technoguyx/355353.sb" >
  Your browser needs Java to view projects.
</object>

Just set the height and width to what you'd like

Source: http://freear.org.uk/content/embed-scratch-applet-html5

thank you so much!


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#13 2012-06-13 21:33:19

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: Object embed vs. Applet embed.

wow.  that just fixed 21 errors!


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

Board footer