WebSite X5Help Center

 
Nigel W.
Nigel W.
User

Java Applet Code Insertion Problem  en

Autore: Nigel W.
Visite 1529, Followers 2, Condiviso 60  
Parole Chiave: applet,code,java

Hi there...

Can anyone give me the code for inserting a java applet, where all the associated files are in a different directory?

(This is so I can keep my java applets in tidy directories on the server and not have to upload it all in the root, where the WebsiteX5 html is.)

Here is my example...

<applet code=SlidingPuzzle.class archive=SlidingPuzzle.jar width=650 height=450>

All the files are at "/games/slidingpuzzle/*.*

Thanks,

Nigel

Postato il
4 RISPOSTE - 1 CORRETTO
Cheeky Man
Cheeky Man
User

Wink

Hi Nig,

This is using the "RELATIVE" URL:

<applet code=games/slidingpuzzle/SlidingPuzzle.class archive=games/slidingpuzzle/SlidingPuzzle.jar width=650 height=450>

Insert the "ABSOLUTE" (FULL) URL for it to show in X5!! I cannot examine the files so I presume you know what and where you are putting this is correct........

www.frankscybercafe.com

Leggi di più
Postato il da Cheeky Man
Nigel W.
Nigel W.
User
Autore

Hi Frank...

How's tricks?

Nope...this doesn't work.

I can't get much from the programmer but he states:

"You can simply add a tag called "codebase" for the folder name"

I've tried that but I probably keep getting the format wrong.

Here's the basic for the game. (without other stuff)

As I say, THIS works ok for within the game's folder but I'll be damned if I can get the format right for WebX5.

<applet code=SlidingPuzzle.class>

<param name=photo     value="KenwoodHouse.jpg">

<param name=titleimage    value="SlidingPuzzle_banner.gif">

<param name=winfile   value="SlidingPuzzle1.au">

<param name=movefile  value="SlidingPuzzle2.au">

</applet>

All files are athttp://www.hampsteadheath.net/games/slidingpuzzle/*.*

I need it written out for me to copy I think...lol!

Leggi di più
Postato il da Nigel W.
Nigel W.
Nigel W.
User
Autore

Frank...solved!

You were ABSOLUTEly right...lol!

The programmer finally came up with the answer in print.

For any others wondering...this is the solution, in my particular case:

<applet code=SlidingPuzzle.class archive=SlidingPuzzle.jar width=650 height=450 codebase="http://www.hampsteadheath.net/games/slidingpuzzle/">

<param name=photo value="http://www.hampsteadheath.net/games/slidingpuzzle/KenwoodHouse.jpg">  <param name=solvebutton   value="1"> <param name=titleimage    value="http://www.hampsteadheath.net/games/slidingpuzzle/SlidingPuzzle_banner.gif"> <param name=winfile   value="http://www.hampsteadheath.net/games/slidingpuzzle/SlidingPuzzle1.au"> <param name=movefile  value="http://www.hampsteadheath.net/games/slidingpuzzle/SlidingPuzzle2.au"> <param name=bgimage  

etc. etc. (that's just the basic stuff without all the parameters, if you follow)

Cheers guys!

Leggi di più
Postato il da Nigel W.
Incomedia
Riccardo P.
Incomedia

Hi Nigel,

if you want you can set your post as "correct", in order toimprove research og this post by other Users.Smile

Leggi di più
Postato il da Riccardo P.