Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: [-1] 1 - 2

Bottom
Embedding JavaScript and/or Java applets
  • Posted: 10.01.2008, 19:03
     
    Topiatic
    rank:
    Professional Professional
    registered:
     November 2003
    Status:
    online
    Posts:
    1675
    Could this be a result of 'Translate embedded HTML entities into real characters' switch (just above the Enable Safehtml switch)? Give it a try.

    --
    Under Construction!
  • Posted: 17.01.2008, 10:32
     
    Topiatic
    rank:
    Professional 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!
  • Posted: 18.01.2008, 04:47
     
    mgaffney
    rank:
    Freshman 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! icon_razz
  • Posted: 18.01.2008, 04:50
     
    mgaffney
    rank:
    Freshman 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! icon_razz

  • Posted: 18.01.2008, 05:52
     
    denisrf
    rank:
    Helper 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
  • Posted: 19.01.2008, 02:01
     
    mgaffney
    rank:
    Freshman 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! icon_evil icon_evil icon_evil icon_evil
  • Posted: 19.01.2008, 02:14
     
    Topiatic
    rank:
    Professional Professional
    registered:
     November 2003
    Status:
    online
    Posts:
    1675
    Pleasure.

    --
    Under Construction!

Goto page: [-1] 1 - 2

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula