Previous Thread
Next Thread
Print Thread
Rate Thread
#267529 01/20/2004 10:24 AM
Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
I am trying add this java script to one of my pal boxes but I cant get it to work. Whats wrong with it ?

<applet code="script language=JavaScript "archive="\hubz.js">


Thanks

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Where are the paramters and closing applet tag.

Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
Chuck,

This is what i have in my pal box

<?
// Integrated Index Page (IIP) Version 5.3 (January 11, 2003)
//
// Copyright David Lozier 2002-2003. All Rights reserved.
//
// This software may be used and modified freely providing:
// 1. The copyright notice remains intact at the head of all files.
// 2. The copyright notice and link to my personal website is
// displayed at the bottom of all pages generated by the software.
//
// This software may NOT be distributed without expressed written
// consent from the author.
//
// The author accepts no liability for any loss or damages whatsoever
// incurred directly or indirectly from the use of this software.
// The author of this software makes no claims as to its fitness for
// any purpose whatsoever. If you wish to use this software you
// should first satisfy yourself that it meets your requirements.
//
// Email: [][email protected][/]
// URL: http://www.chattersonline.com


echo "$tbopen<tr><td align="left" class="tdheader">"; // Table Start

echo "<b><center>Instant Message System"; // Table Heading

echo "</td></tr><tr><td align="left" valign="top" class="lighttable">"; // Close Header and Open Content

echo "<br />
<p align="center">

<applet code="script language=JavaScript "archive="\hubz.js">

</applet>
</p>
<br />";

echo "</td></tr>$tbclose<br />"; // Close Content and End Table


?>

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay usually an applet has parameter tags in it as well.

<applet code="script language=JavaScript" archive="/path/to/hubz.js">

Most likely it is not finding your file.

Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
Thanks Chuck,

I will keep at it, I added the path but it still does not load the script. One day I will figure this stuff out (maybe)

thanks again

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
well if the script is where the file is that loads it it should fine it with this

archive="hubz.js">

Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
Yeah, I tried that too, still wont load , I see a error Loading Java Applett failed, Its got to be something simple. I have not given up quite yet

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Where is the hubz.js file on your server?

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Josh and I are thinking the same thing here. You have one of two things here.

1. it cant find the hubs file

2. the file is corrupt

Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
Josh,

/var/www/html/hubz

Sponsored Links
Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
Its got to be that it cant find it as it loads from the index.hm file in the hubz folder, I just wanted to add the applet to a pal box

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
And where is the file located on the server that you are placing the applet tag?

Ten to One it aint the same place as the hubz file hense it can't find it.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
If that script is in your ubbthreads folder, try putting the file in the ubbthreads folder.

Daine #267542 01/22/2004 10:20 AM
Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
Sorry I have been out of town,

Ok the script works fine from the web page that loads them so its not a script problem,

I tried to copying the hubz.js and the hubzapplet.cab and hubzapplet.jar files in the /ubbthreads folder but that did not help this is a snip from my latest attempt

<applet code="script language=JavaScript" archive="/ubbthreads/hubz_auto.js">
</applet>

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Well if your trying to like wrap that program with Threads why not place the template you using in the hubz folder and make the applet code the default so it finds the file

<applet code="script language=JavaScript" archive="hubz_auto.js">
</applet>

Besides I do believe the applet tag uses the paramter codebase so to find it if placing the template outside the hubz folder try this

<applet codebase="/var/www/html/hubz
" name="hubz" code="script language=JavaScript" archive="hubz_auto.js">
</applet>

Joined: Oct 2002
Posts: 108
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 108
Ok Guys, thanks for the help, I knew that I had this working once. I just had to dig deep into my notes. Here is what I had setup before.

echo "<script language="JavaScript" src="hubz.js"></script><br>Click on it to start hubz.";

It works fine this way.. Thanks again for your help.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)