Last post Dec 05, 2005 03:19 AM by attaboykf
Jun 25, 2005 06:56 PM|attaboykf|LINK
I found a really neat free Java Applet at
Actually they have quite a few free applets, but I particularly like one that makes banners, names, and titles really cool.
The problem is that I have tried everything I know to get it working in DNN with no luck.
I thought it was due to the skinning engine not adding the file locations, but I added them directly onto the aspx page with no change in results.
What I see is an outline of the image the size I specified, and the sort of slowly revolving sun that Sun uses.
These applets work great on a normal html page.
They are fun and exciting, and can add nice movement to our pages.
Can anybody offer some help?
Jun 25, 2005 09:08 PM|tao_muon|LINK
I've found that if you want to use JS applets / jars, you can place them in DNN's 'js' directory and reference them in the default.aspx file for the site then reference them from the skin. If the portal / container skin doesn't implement it, then there's
maybe a bit of lost bandwidth while the .js file is transfered but not much else unless some script duplicates the function in the .js file. I've found that you can put drag-and-drop scripts and other effects in like this and reference them from within the
skin / container. One caveat is watching out for duplicate ID's in containers and such.
Look for the red text here:
<%@ Page CodeBehind="Default.aspx.vb" language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.Framework.CDefault" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Common.Controls" Assembly="DotNetNuke" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%= Title %>
<%= Comment %>
<META NAME="DESCRIPTION" CONTENT="<%= Description %>">
<META NAME="KEYWORDS" CONTENT="<%= KeyWords %>">
<META NAME="COPYRIGHT" CONTENT="<%= Copyright %>">
<META NAME="GENERATOR" CONTENT="<%= Generator %>">
<META NAME="AUTHOR" CONTENT="<%= Author %>">
<META NAME="RESOURCE-TYPE" CONTENT="DOCUMENT">
<META NAME="DISTRIBUTION" CONTENT="GLOBAL">
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<META NAME="REVISIT-AFTER" CONTENT="1 DAYS">
<META NAME="RATING" CONTENT="GENERAL">
<META HTTP-EQUIV="PAGE-ENTER" CONTENT="RevealTrans(Duration=0,Transition=1)">
<style id="StylePlaceholder" runat="server"></style>
<asp:placeholder id="CSS" runat="server"></asp:placeholder>
<asp:placeholder id="FAVICON" runat="server"></asp:placeholder>
<script src="<%= Page.ResolveUrl("js/dnncore.js") %>"></script>
<script src="<%= Page.ResolveUrl("js/[scriptfilename.js]") %>"></script>
<BODY ID="Body" runat="server" ONSCROLL="__dnn_bodyscroll()" BOTTOMMARGIN="0" LEFTMARGIN="0"
TOPMARGIN="0" RIGHTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<dnn:Form id="Form" runat="server" ENCTYPE="multipart/form-data" style=”height:100%;>
<asp:Label ID="SkinError" Runat="server" CssClass="NormalRed" Visible="False"></asp:Label>
<asp:placeholder id="SkinPlaceHolder" runat="server" />
<INPUT ID="ScrollTop" runat="server" NAME="ScrollTop" TYPE="hidden">
<INPUT ID="__dnnVariable" runat="server" NAME="__dnnVariable" TYPE="hidden">
I'm sure that if someone knows how to implement '.js' files at the portal or skin level so that other portals and even skins can't reference the script, they'll chime in.
Jun 26, 2005 12:49 AM|attaboykf|LINK
Thanks, Kirk, for the response. Are you talking about Java Applets and Java Script? The file that drives the Java Applet is a 'class' file. Sun gives some good examples of how to add an applet to a Web page at
http://java.sun.com/openstudio/guide.html , but it doesn't work within a DNN skin. It could be something simple or require some little trick to use it. Let's figure this out, guys. It will be a wonderful
addition to our skins.
Sun says the java applet is added to a Web page much like adding an image, and it is true for an html page. There isn't much to it.
Dec 05, 2005 03:19 AM|attaboykf|LINK
Does anybody know how to call a Java Applet "class" file? Please see the above posts. I have the 'class' file in my skin folder and it is being called from the skin.aspx file but I get just the X with no image or action. Kirk, in his post above, seems
to be talking about .js files, not .class files. The Java Console says Exception: java.lang, NullPointerException (UnknownSource).
Thanks, Ken Flanigan