Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (601)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  BBCode to insert applets on a forum  (Read 4060 times)
0 Members and 1 Guest are viewing this topic.
Offline gouessej
« Posted 2009-07-16 22:22:35 »

Hi!

I'm still a Java evangelist... I try to convince several French webmasters to include a bbcode markup to insert applets and webstart applications (a simple link is not enough, I have to indicate the mime type). I have only found this:
http://startrekguide.com/community/viewtopic.php?f=82&t=2732

However, I prefer using the <object> markup. I have never deployed an applet with it. I have found this example:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 
        width="150" height="80">
  <param name="archive" value="JitterText.jar">
  <param name="codebase" value="data">
  <param name="code" value="JitterText">
  <param name="BGCOLOR" value="000000">
  <param name="TEXTCOLOR" value="FF0000">
  <param name="TEXT" value="OJITesting!">
  <param name="SPEED" value="250">
  <param name="RANDOMCOLOR" value="1">

  <!--[if gte IE 7]> <!-->
  <object type="application/x-java-applet"
          classid="java:JitterText.class"
          archive="JitterText.jar"
          codebase="data"
          width="150" height="80">
    <!-- Konqueror browser needs the following param -->
    <param name="archive" value="JitterText.jar">
    <param name="code" value="JitterText">
    <!-- Safari browser needs the following param -->
    <param name="JAVA_CODEBASE" value="data">
    <param name="BGCOLOR" value="000000">
    <param name="TEXTCOLOR" value="FF0000">
    <param name="TEXT" value="OJITesting!">
    <param name="SPEED" value="250">
    <param name="RANDOMCOLOR" value="1">
    alt : <a href="data/JitterText.jar">JitterText.jar</a>
  </object>
  <!--<![endif]-->
  <!--[if lt IE 7]>
    alt : <a href="data/JitterText.jar">JitterText.jar</a>
  <![endif]-->

</object>

But does someone have a more simple example that works on most of the main browsers? I don't know which parameters are really required and which ones are not in the example above.

Does someone already have a working example of bbcode for applets?

Offline Riven
« League of Dukes »

« JGO Overlord »


Medals: 840
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2009-07-16 22:40:35 »

Applets in forums is not a good idea.

If anybody is browsing without Java, they either get a empty rectange (applet) or plain XML file (webstart) on their screen.

If anybody is browsing with Java < 1.6.0u10, there enduser experience is horrendous.

Even with the current version the browser intergration is not rock solid. Especially Opera. So no, please don't crash/freeze/hang my browser when I'm reading a topic in a forum.


If anything, it will be VERY BAD for Java's reputation. Even if 'only' 10% of endusers will experience problems, they will scream and shout, and scare off everybody else.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social
Offline gouessej
« Reply #2 - Posted 2009-07-17 08:15:45 »

I understand your position. Therefore, I will only suggest a modification of the file .htaccess to be sure that the JNLP link will be handled correctly:
1  
AddType application/x-java-jnlp-file .jnlp

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Scarzzurs
« Reply #3 - Posted 2009-07-17 09:16:11 »

Hmmm, i think it's a good idea if the applets are not displayed on the webpage until a placeholder button is pressed (Sort of like browsing with FlashBlock for Firefox).
Otherwise i think it's a horrible idea that would scare people like me from viewing game threads. The initialization of Java Applets does in some browsers halt the browser while going on. This can be very annoying! (While this is indeed horrible browser implementation, it's still something we have to take into account...)

- Scarzzurs

My games and Projects:
BlastingPixels.com,
Old website
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 80
Projects: 15


★★★★★


« Reply #4 - Posted 2009-07-17 13:16:20 »

Yup agreed, Place holder image is probably the way to go, where applet starts when image is clicked.

also note that java applets can edit the html code of the page they are on through liveconnect, which can lead to all sort of issues (possible password stealing, replacement of ad's with different ones, etc). It use to be that the mayscript tag was needed to allow liveconnect to work, but seems like recent version of the java plugin allow liveconnect to work even without the mayscript parameter.
Offline DzzD
« Reply #5 - Posted 2009-07-17 16:36:31 »

Quote
However, I prefer using the <object> markup. I have never deployed an applet with it. I have found this example:
applet tag is far away more compatible, simple and user friendly (why would you use this "fantastic" new object tag ?)

Quote
If anybody is browsing without Java, they either get a empty rectange (applet) or plain XML file (webstart) on their screen.

I dont agree with this, using applet tag you can just put any HTML you like in replacement of the applet when java is not available.

1  
<applet><img src=niceSplashNoJava.jpg></applet>


anyway I agree that starting applet without user action may not be very nice and as a fllash video it is better if the user have to click on it to start.

something like :

1  
2  
3  
<DIV style='width:100;height:100;padding:0' onclick=' this.innerHTML="<APPLET width=100 height=100></APPLET>" ' >
run Applet etc... nice preview html...
</DIV>

Offline zammbi

JGO Coder


Medals: 4



« Reply #6 - Posted 2009-07-17 17:27:35 »

Well as a Java supporting forum, I wouldn't mind some basic support for the applet tag.
I like the idea of showing a image first and once you click on it then it loads the applet. I think that's possible as you can write any code behind the BB tags(correct me if I'm wrong).

Current project - Rename and Sort
Offline gouessej
« Reply #7 - Posted 2009-07-17 18:56:39 »

applet tag is far away more compatible, simple and user friendly (why would you use this "fantastic" new object tag ?)
The W3C recommends the use of the object tag.

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 80
Projects: 15


★★★★★


« Reply #8 - Posted 2009-07-17 19:09:09 »

The W3C recommends the use of the object tag.

firefox doesn't support it!

you'll end up using both tags to get it running everywhere, better to just use the applet tag which works everywhere.
Offline bienator

Senior Devvie




OutOfCoffeeException


« Reply #9 - Posted 2009-07-17 20:01:37 »

firefox doesn't support it!
the object tag? FF does support it or at least it worked for me on FF 3 pretty well...
applet deployed with object tag

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 80
Projects: 15


★★★★★


« Reply #10 - Posted 2009-07-17 20:51:34 »

the object tag? FF does support it or at least it worked for me on FF 3 pretty well...
applet deployed with object tag

ah maybe its supported now in ff3, wasn't in ff2.
Offline DzzD
« Reply #11 - Posted 2009-07-17 21:05:37 »

The W3C recommends the use of the object tag.

W3C recommend a lot of stupid and incompatible things....

EDIT : W3C just decide a day.. "hey .. we are going to standardize Web without taking care of what already exist and nothing will work until all browsers match our God requierement ! cool no ?"

Offline DzzD
« Reply #12 - Posted 2009-07-17 21:07:49 »

Sun seems a lot more intelligent about that :


Quote
Use the applet tag if the Web page is accessed through the Internet.

Use the object or embed tag if the Web page is accessed through an Intranet.



http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/using_tags.html

Offline Mr_Light

Senior Devvie


Medals: 1


shiny.


« Reply #13 - Posted 2009-07-17 23:53:30 »

euh why wasn't this closed and pointed to: http://www.java-gaming.org/topics/applets-applets-applets/20543/view.html ? discussing stuff at two places and still having suggestion all over the place while there's a section dedicated to it doesn't sound like a good idea to me.

It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #14 - Posted 2009-07-21 12:18:06 »

Is this thread really a suggestion for this forum? I thought it was more a discussion about how it could be done on forums in general.

Play Minecraft!
Offline Riven
« League of Dukes »

« JGO Overlord »


Medals: 840
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #15 - Posted 2009-07-21 14:04:02 »

I'm still a Java evangelist... I try to convince several French webmasters to include a bbcode markup to insert applets ...

Didn't you know ChrisM is French??

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social
Offline gouessej
« Reply #16 - Posted 2009-07-21 17:19:09 »

Didn't you know ChrisM is French??
Why not? Obama has some French origins Cheesy

Is this thread really a suggestion for this forum? I thought it was more a discussion about how it could be done on forums in general.
No it is not a suggestion for this forum. If you were right, I would not have taken this initiative.

Offline Mr_Light

Senior Devvie


Medals: 1


shiny.


« Reply #17 - Posted 2009-07-22 05:57:32 »

Is this thread really a suggestion for this forum? I thought it was more a discussion about how it could be done on forums in general.
Your right markus.

It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #18 - Posted 2009-07-22 11:13:41 »

No it is not a suggestion for this forum. If you were right, I would not have taken this initiative.

That's what I said, lol. Cheesy

Personally, I thing both applets and flash movies  appearing automatically in forums is a bit rude, but I love the "click here to start <applet name>" preloader thing.. That's kinda how embedded youtube movies work. And I'd love for this to be possible on these forums as well. =)

Play Minecraft!
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (40 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (114 views)
2014-11-26 15:22:04

toopeicgaming1999 (102 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!