This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes Javascript & Java Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Javascript & Java Applet" Watch "Javascript & Java Applet" New topic
Author

Javascript & Java Applet

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Can we include java script or style sheet in java applet?

Please get me example
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41150
    
  45
It's not possible.


Ping & DNS - my free Android networking tools app
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Originally posted by Ulf Dittmer:
It's not possible.


can we put a in separate e.g. test.css or test.js and invoke these files via inserting path in the applet?

Thanks for your reply
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41150
    
  45
Applets have no concept of a "path", and they can't use CSS, JS or HTML.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Originally posted by Ulf Dittmer:
Applets have no concept of a "path", and they can't use CSS, JS or HTML.


Thanks for help and replies
 
jQuery in Action, 2nd edition
 
subject: Javascript & Java Applet
 
Similar Threads
How to invoke a java class which is not an applet from the html page?
applet
Clock
Clock
How run aaplet through ant.