Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 19th, 2004, 11:17 AM
michaelbartolot michaelbartolot is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 michaelbartolot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question HELP: cant add Java .class to my .htm

I can't seem to add my custom java object to a webpage. It should be rather simple, but it aint workin! The .class and the .htm are in the same directory.I tried ...
- classid="java:~Dancer.class"
- codepage="all kinds of combinations"

All I get is "text incase it cant load"

NOTE: for some reason on this forum when I put a : followed by a D, it changes to an smiley icon, so ignore the ~ above and below.
===========
<html>
<head></head>
<script language=vbScript>
window.alert MyDancer.getLogonId()
</script>
<body>
<object id="MyDancer" classid="java:~Dancer" codetype="application/java">
text incase it cant load
</object>
</body>
</html>
============
the Dancer.java compiles fine with the following relavant code....

private int logonId;
public int getLogonId() {
return logonId;
}

Reply With Quote
  #2  
Old May 23rd, 2004, 01:43 AM
gertcuppens's Avatar
gertcuppens gertcuppens is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 118 gertcuppens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 28 m
Reputation Power: 5
I havn't got any experience with applets. But take a look at the Javaboutique. They have a library of java applets and explian how you can put them in HTML file.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > HELP: cant add Java .class to my .htm


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway