- Moderated by:
- Support Team
-
- rank:
-
Professional
- registered:
- November 2003
- Status:
- online
- Posts:
- 1675
Ok so I can make this work as an admin message with 'object' and 'params' set to 'enabled with params' and outputfilter set to 'internal output filter' if I properly double quote all the params.
Code
applet code="www.laxref.com/files/countdown/CountDown.class" width="500" height="30" hspace="0" vspace="0" align="absmiddle" alt="Countdown apple">
<param name="date" value="1 Jan 2009">
<param name="bgcolor" value="000000">
Your browser doesn't support Java applets.
/applet>
However I still think putting it in the template is a better sollution.
That all being said, the applet errors out. As far as I can tell it's because there is no file to be read at laxref.com/files/countdown/CountDown.class. You must change this to point at the actual file, where ever you may have it.
Edited because <applet is not allowed even within code tags.
edited by: Topiatic, Jan 17, 2008 - 12:41 AM
--
Under Construction! -
- rank:
-
Freshman
- registered:
- January 2005
- Status:
- offline
- last visit:
- 24.01.08
- Posts:
- 23
Hey everyone:
Thanks for your help on this! Okay, I got an applet to work locally on my machine, and I tested it out - it worked no problem when referenced in the following fashion:
http://www.laxref.com/files/countdown/test.html
Now here's how I reference it from the Administrator message:
I've been playing around with the codebase directory, and I thought that maybe using an absolute path might fix things, but this didn't seem to work either. I have Safe HTML set, and and set to allow for attributes.
Thanks again to anyone who can help me!
-
- rank:
-
Freshman
- registered:
- January 2005
- Status:
- offline
- last visit:
- 24.01.08
- Posts:
- 23
mgaffney
Hey everyone:
Thanks for your help on this! Okay, I got an applet to work locally on my machine, and I tested it out - it worked no problem when referenced in the following fashion:
http://www.laxref.com/files/countdown/test.html
Now here's how I reference it from the Administrator message:
Code
<param name=text value="Countdown to the 2008 World Games">
<param name=font value="lcdb0">
<param name=dest value="../index.html">
<param name=year value=2008>
<param name=month value=7>
<param name=day value=3>
I've been playing around with the codebase directory, and I thought that maybe using an absolute path might fix things, but this didn't seem to work either. I have Safe HTML set, and and set to allow for attributes.
Thanks again to anyone who can help me!
-
- rank:
-
Helper
- registered:
- February 2005
- Status:
- offline
- last visit:
- 17.11.08
- Posts:
- 411
Like Topiatic said, If, you double quote the param values like for example:
Quote
param name="year" value="2008"
Also check to make sure you have the path to the class file correct, like which folder is it in relative to your PN root folder.
edited by: denisrf, Jan 18, 2008 - 10:47 AM -
- rank:
-
Freshman
- registered:
- January 2005
- Status:
- offline
- last visit:
- 24.01.08
- Posts:
- 23
Oh MAN! That's all it was - the double quotes! I feel stupid and vindicated at the same time. As is typical on a Friday, Occam's Razor solves all IT-related issues with ease.
Thanks so much for thinking outside the box on this one, and for everyone's patience - I REALLY appreciate it!
