ILIAS open source Forums

Forums have been moved to the ILIAS Information Center!
Please do not post bug reports into these forums but into the Mantis Bug Tracker.
Please do not post any security exploits. Act accoring to RFPolicy and send a mail to "ilias-security AT uni-koeln DOT de" .
It is currently Fri May 24, 2013 08:37

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Java Applets in Learning Modules
PostPosted: Wed Nov 15, 2006 16:20 
Offline
User avatar

Joined: Thu Dec 02, 2004 16:12
Posts: 110
Location: Eichstaett, Germany
We would like to embed a java applet which uses two files.

Here is the "normal" html-code:

Code:
<applet archive="zirkel.jar" code="rene.zirkel.ZirkelApplet.class"
width="180" height="350" align="middle"><param name="file"
value="drehkoerper.zir"><param name="color" value="255,255,255"><param
name="style" value="plain"><param name="movefixname" value="true"><param
name="editdigits" value="6"><param name="displaydigits" value="2"><param
name="angledigits" value="0"></applet>


One file is the binary zirkel.jar, the other drehkoerper.zir.

The only way we managed the problem till now is to set absolut links:

Code:
<APPLET ARCHIVE="http://elearn.ku-eichstaett.de/ilias3/repository.php?ref_id=1676&cmd=sendfile" CODE="rene.zirkel.ZirkelApplet.class" WIDTH="460" HEIGHT="300" ALIGN="CENTER">
<PARAM NAME="file" VALUE="http://elearn.ku-eichstaett.de/ilias3/repository.php?ref_id=1675&cmd=sendfile">
<PARAM NAME="color" VALUE="255,255,255">
<PARAM NAME="style" VALUE="full">
<PARAM NAME="tools" VALUE="move">
<PARAM NAME="options" VALUE="">
<PARAM NAME="editdigits" VALUE="6">
<PARAM NAME="displaydigits" VALUE="2">
<PARAM NAME="angledigits" VALUE="0">
</APPLET>


This is fine as long as we don't export the learning module or put it to another place.

Has anybody an idea who to manage it more platform independently?

Thanks in advance.
Peter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 16:57 
Offline
User avatar

Joined: Thu Mar 18, 2004 16:00
Posts: 1556
Location: Loxstedt
Hi Peter,

there is a more easy way for this:

If you open the properties of the java class/jar in ILIAS, just go to the tab "Object Files" (or Objektdateien in german). There you can upload additional files into the working directory of the java applet. So you don't need the absolute paths.

Regards,
Helmut


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 17:24 
Offline
User avatar

Joined: Thu Dec 02, 2004 16:12
Posts: 110
Location: Eichstaett, Germany
Helmut,

sorry. I don't understand at all. Do I have to do it as administrator inside of the ILIAS-interface or in the file system of Linux? Or can this be done as a normal user? Where?

Will then the files be exported when I do an XML-, HTML- oder SCORM-Export?

Peter


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 09:46 
Offline
User avatar

Joined: Thu Mar 18, 2004 16:00
Posts: 1556
Location: Loxstedt
Hi Peter,

all you need is edit permission for the learning module inside ILIAS.
In the edit mode of the learning module, you open the properties for the media object (your uploaded applet). In the properties, select the "Object files" tab (see the attached screenshot. It is german, but I think you can understand it :-)).

Image

There you can upload one ore more new files. In my example, I add the file in the applet params with file1="Beispiel_Haeufigkeit_Kreis.txt" and I don't need to enter the abolute path, because the file is uploaded directly into the applet directory.

All these files will be exported of course.

Regards,
Helmut


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 16, 2006 15:10 
Offline
User avatar

Joined: Thu Dec 02, 2004 16:12
Posts: 110
Location: Eichstaett, Germany
Hi Helmut,

There was one misunderstanding: I put the code in a "paragraph", not in a "media".

Inserting the applet code in a "paragraph" works, but with the discussed restrictions.

Now I inserted the code in a "media" and it works. Export to HTML works as well. Thank you! The doc in
http://ilias.informatik.uni-bremen.de/c ... PageObject was also helpful.

Now I have the problem that the jar-File ist 1 MB big and I'll need it about 40 times in the same learning module.

How can I reuse the media object in serveral instances?

Thanks in avance.
Peter


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 09:10 
Offline
User avatar

Joined: Thu Dec 02, 2004 16:12
Posts: 110
Location: Eichstaett, Germany
Hello,

can anybody help me with my open question?

The question again is: How can I reference to a media object in order to reuse the same object (image, java code etc.) serveral times?

Thanks a lot in advance.

Peter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 10:31 
Offline
User avatar

Joined: Thu Mar 18, 2004 16:00
Posts: 1556
Location: Loxstedt
Hi Peter,

the same thing I mentioned above not only works in learning modules. It also works in media pools. Just upload your applet in a media pool. Add the additional files you need and then paste the applet from the mediapool everywhere you like into your learning module. The applet will always be referenced. If you add it 10 times in your LM, only one path (the path of the media pool) is taken.

This should solve your problem.

Regards,
Helmut


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 27, 2006 09:53 
Offline
User avatar

Joined: Thu Dec 02, 2004 16:12
Posts: 110
Location: Eichstaett, Germany
This information is for others who run into the same problems as me.

My problem at the end was how to work with media objects at all:

1. Create a media object in a media pool
2. Copy the media object by clicking "Copy to clipboard"
3. Go to the learn module editor an choose "Paste from clipboard"
4. Customize the new instance of the media object (size, parameters ...) for the specific needs in this learning module.

Peter


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group