Skip to content

iulianu/rails-applet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Applet
======

Adds a helper method to Rails, to embed a Java applet.

Tested with Rails 2.3 and Rails 3.0.

Example
=======

<%= applet_tag :jars => ['myapplet', 'commons-logging-1.1.1'],
               :main_class => 'com.myproduct.MyApplet',
               :width => 760,
               :height => 490,
	       :params => { "aParam" => "aValue" },
               :missing_text => "Unfortunately you do not have the Java plugin installed. Get it from http://www.java.com "
%>

The applet_tag method assumes the files myapplet.jar and commons-logging-1.1.1.jar are
in #{Rails.root}/public/jars/ .

Copyright (c) 2011 Iulian Dogariu <[email protected]>, released under the MIT license

About

Rails plugin for embedding Java applets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages