The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 22 posts ] 
Author Message
PostPosted: Wed May 28, 2008 1:31 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed May 28, 2008 1:19 pm
Posts: 9
Hello,

I am trying to figure out if it is possible to load a java applet in the article content, using a plugin like Jumi.
It is working fine with simple html and php, but didn't manage to find out any information about java.

I want to have an applet to show chess games in my web page, I 've seen it in other Joomla! chess sites working.

By now, I am running Joomla! 1.5.3 in Legacy mode.

Thx!


Top
 Profile  
 
PostPosted: Wed Jun 04, 2008 4:46 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed May 28, 2008 1:19 pm
Posts: 9
Nobody has even a hint? :'(


Top
 Profile  
 
PostPosted: Wed Jun 02, 2010 7:55 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Sep 23, 2009 7:30 pm
Posts: 24
alexkasgr...did you figure this thing out?


Top
 Profile  
 
PostPosted: Wed Jun 02, 2010 8:51 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed May 28, 2008 1:19 pm
Posts: 9
No, I actually found other ways to display such content (i.e. chess games) on my web page. I never learnt though if it is possible to run a java applet in the content :(.


Top
 Profile  
 
PostPosted: Thu Feb 03, 2011 12:10 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Feb 03, 2011 11:58 am
Posts: 7
It is possible, and normally speaking rather easy. With Joomla 1.5 you have to:
1) TURN OFF the TinyMCE-Editor (and KEEP IT TURNED OFF), at best in your user settings
Why? Because the TinyMCE has an automation that kicks out anything saying "applet" by default.

2) Edit the article, where you want the applet to be
3) Put the appropriate HTML-code to embed an applet (look for an HTML tutorial on that matter) into the html-code.

However with Joomla 1.6 I can't get it working. If there is anybody out there that knows about that, please help me. I even found out how turn of the TinyMCE auto-deletion of "applet", but using the Editor then, the editor would still delete my applet-html-code bit. :-(
The above mentioned method also wouldn't work.
To be precise on which version I am talking about: Joomla 1.6.0, as downloaded at the end of Jan 2011.

Cheers
Audiodroid


Top
 Profile  
 
PostPosted: Sat Feb 19, 2011 2:50 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Feb 19, 2011 2:19 pm
Posts: 1
I had the same problem with Joomla 1.6.

With Joomla 1.5 on a website the applet code is working fine with the TinyMCE editor turned off, like this :

<p align=center>
<applet code="NameOfTheApplet.class" height=500 width=600 codebase="MyAppletFolder/">
</applet>
</p>

With Joomla 1.6 using a localhost server this code will result in a "Incopatible magic value" error - which probably has to do with not beeing able to finde the java files.

Here I have to write:

<p align="center">
<applet code="NameOfTheApplet.class" height="500" width="600" codebase="http://localhost/NameOfWebsite/MyAppletFolder/">
</applet>
</p>

And then the applet will run fine in the article.

Another strange thing is that if the TinyMCE editor are used then it will still mess up the code - even with TinyMCE set to "Clean code on save=Never" and Editor=No filtering.

The editor will add code like: <PARAM NAME="_cx" VALUE="15875"><PARAM NAME="_cy" VALUE="13229">
and then the applet will not run.
Sometimes the editor will also remove just one of the " in the codebase name which can be very annoying as you may not notice it.

So to get make the applet work the TineMCE editor should not be active.

I have not yet tried to upload the joomla 1.6 website to a server (as my server need to be PHP upgraded for Joomla 1.6). So I do not know if the applet can then be addressed without the use of the silly: http://localhost/NameOfWebsite/....


Top
 Profile  
 
PostPosted: Mon Feb 21, 2011 9:29 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Feb 03, 2011 11:58 am
Posts: 7
I could also get it working in Joomla 1.6. I don't know what went wrong before, but here is how it works:
I go to "User Manager: Edit Profile" of my "Super user profile, and set the "Basic Setting->Editor" to "Editor - none". Also in the "Article Manager Options->Text Filters" I set "Super User: No Filtering".
Then I go to the article that shall have the applet included and I put HTML-code as mentioned by MichaelFJ. Done.

However the issues mentioned by MichaelFJ I have also experienced. I always refer to the full URL: "http://www.mywebsite.com/myJavaAppDir/myJavaApp.jar"

(Also, here and there I was trying to use Firefox for the Backend, but it turned out, that only the Internet Explorer would work.)


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 2:16 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Feb 04, 2011 5:44 pm
Posts: 16
in 1.5 even with the tiny editor turned off it strips out the <applet></applet> code. There seems to be no way to add a japplet to the content of an article.


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 9:34 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Feb 03, 2011 11:58 am
Posts: 7
@bmmcwhirt: I cannot confirm what you say. If I run on "no editor", the applet works fine. <applet>-entries stay and the applet runs "perfectly". You should double-check your settings maybe. As I pointed out, if you activate the editor again, (or anyone else enters the editing page of that article and has the editor set) the applet is "gone" again.


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 10:08 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Feb 04, 2011 5:44 pm
Posts: 16
no one but me has access to edit so I know that is not an issue and Im using an account that is defiantly set to no editor, and I get the plain text editor that shows the html code. the only code it strips is the <applet></applet> tags, everything before inside and after is untouched. Even if I set the entire site to no editor it still does it.

Joomla 1.5.22
php 5.3.3
OS FreeBSD 8.1-Release
Apache 2.2.7


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 10:24 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Feb 03, 2011 11:58 am
Posts: 7
@bmmcwhirt: That's bad news. :-(
I use(d) Joomla 1.5.15 ...Maybe the 1.5.22 already has some of the features, that have also been added to the 1.6. version, e.g. "Article Manager Options-> Text Filter". Maybe check on that. (Also I remember dealing with some blacklist of HTML-tags...Sorry, can't see into this right now, but looking at my last post about 1.6 I think it was irrelevant in the end.)

Good luck!


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 10:34 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Mon Sep 21, 2009 6:56 am
Posts: 2065
Location: indore,india
Guys create one iframe and call the applet through iframe.it will show applet code in article.

_________________
abhijeet kurchania
The future depends on what you do today


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 10:42 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Feb 04, 2011 5:44 pm
Posts: 16
Do you have example code?


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 10:43 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Feb 04, 2011 5:44 pm
Posts: 16
never mind it strips out iframes to so that is useless


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 10:54 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Mon Sep 21, 2009 6:56 am
Posts: 2065
Location: indore,india
@bmmcwhirt,
1.Create html page say applet.html.put your applet code in it.
2.Go to joomla main site.you can turn of the editor for that code.
http://help.joomla.org/proxy/index.php? ... figuration
choose default editor to none.
for joomla 1.6
you also need to turn of filtering option for administrator.
http://help.joomla.org/proxy/index.php? ... le_Manager
3.Now write the code of html there
<iframe src="your_site/applet.html"/>

That's it.adjust the height and width according to css. :laugh: :laugh: :laugh:

_________________
abhijeet kurchania
The future depends on what you do today


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 11:07 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Feb 04, 2011 5:44 pm
Posts: 16
even with the default system editor and user editor set to no editor it's stripping out <applet> and <iframe> and this is only 1.5.22


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 11:14 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Feb 04, 2011 5:44 pm
Posts: 16
Ok, I figured out that it has to be in a category and you have to do the edit from the admin site or it just plain wont work. No idea why but after that both iframe and applet work


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 11:21 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Mon Sep 21, 2009 6:56 am
Posts: 2065
Location: indore,india
what you mean applet is working now on your site or not.

_________________
abhijeet kurchania
The future depends on what you do today


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 11:41 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Feb 04, 2011 5:44 pm
Posts: 16
yes it is working. I was embedding a video feed fro a webcam for our amateur radio skywarn weather alert program.

Thanks for the help.


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 11:48 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Mon Sep 21, 2009 6:56 am
Posts: 2065
Location: indore,india
thats cool actually when we embed directly java applet to server it will use lot of server resources.so its prefrable to use applet in some other server and call by using iframe.

_________________
abhijeet kurchania
The future depends on what you do today


Top
 Profile  
 
PostPosted: Tue Jun 28, 2011 12:02 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Apr 17, 2011 2:01 pm
Posts: 6
Hey

I need some Guidance here ...I have an external site loading in an iframe in my site (in an article), that site will not load properly because of Java script ..
Below is what I use, it will load everyother site properly except the sites that have java script

{iframe width="700" height="525" frameborder="20" scrolling="yes"}http://randomsite.random.com/{/iframe} (that random is just an example)

How do I proceed ...I use the JCE editor, and I'm a kinda lost here, I'm no programmer so I guess you'll have to explain to me in Layman terms ... :-[

Oh by the way it's Joomla 1.5 I'm using
Thanks


Top
 Profile  
 
PostPosted: Wed Jun 29, 2011 5:18 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Mon Sep 21, 2009 6:56 am
Posts: 2065
Location: indore,india
@patriots_12
iframe will load the content whatever present there.
need more information.

_________________
abhijeet kurchania
The future depends on what you do today


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ] 



Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group