Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Insert java to webpage
Old 11-23-2008, 07:50 AM Insert java to webpage
Skilled Talker

Posts: 55
Trades: 0
Is it possible to insert *.java or *.jar into a webpage, like i have a small program i created in java, i converted it jar. So can i insert either then java or jar into a webpage?

I tried this:
<applet code="Salary.jar" codebase = "Salary" width="32" height="32" alt="salary">
</applet>


But just comes up with an X in the webpage.

thanks
phil
philmetz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-23-2008, 10:20 AM Re: Insert java to webpage
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Code:
<applet code="AppletName.class" codebase="PathToAppletArchive" name="AppletName" archive=AppletName.jar"
	width="nnn" height="nnn">
	<param name="name" value="value">
	<param name="name" value="value">
	Your browser is not Java enabled.
</applet>
"code" is the classname of the code block
"archive" points to the filename
"codebase" points to where the archive is located.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-23-2008, 10:34 AM Re: Insert java to webpage
Skilled Talker

Posts: 55
Trades: 0
filename is what exactly?

I tried what you said above but got this error in the browser car in IE:
Applet value notinited

Last edited by philmetz; 11-23-2008 at 10:37 AM..
philmetz is offline
Reply With Quote
View Public Profile
 
Old 11-23-2008, 01:19 PM Re: Insert java to webpage
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
filename = whatever the file is called.

I missed a leading quote from the archive attribute as well.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-23-2008, 01:25 PM Re: Insert java to webpage
Skilled Talker

Posts: 55
Trades: 0
which leading quote?
philmetz is offline
Reply With Quote
View Public Profile
 
Old 11-23-2008, 04:47 PM Re: Insert java to webpage
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by philmetz View Post
which leading quote?
Quote:
Originally Posted by chrishirst View Post
from the archive attribute
archive=whatever" should be archive="whatever"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Insert java to webpage
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45955 seconds with 12 queries