Hi Im quite new to rails and was wondering how to include a java applet in a rhtml file? Is it the same as in HTML? for example: <applet code="World.class" archive="*.jar" width="1250" height="620"> </applet> Thank You! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
That should do it. The rhtml file is basically a html file which is interpreted/parsed by erb before being sent to the client. So everything you can do in a html file you can do in an rhtml file. On Dec 14, 10:14 am, Peet Vosloo <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi > > Im quite new to rails and was wondering how to include a java applet in > a rhtml file? Is it the same as in HTML? > > for example: <applet code="World.class" > archive="*.jar" > width="1250" height="620"> > </applet> > > Thank You! > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Dec 14, 8:14 pm, Peet Vosloo <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi > > Im quite new to rails and was wondering how to include a javaappletin > a rhtml file? Is it the same as in HTML? > > for example: <appletcode="World.class" > archive="*.jar"Servers do not work like the local file-system. (not that *.jar would work in a generic application, launched off the local FS). You need to mention each jar specifically, separated by a '',''. -- Andrew T. PhySci.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Andrew Thompson wrote:> On Dec 14, 8:14 pm, Peet Vosloo <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> Hi >> >> Im quite new to rails and was wondering how to include a javaappletin >> a rhtml file? Is it the same as in HTML? >> >> for example: <appletcode="World.class" >> archive="*.jar" > > Servers do not work like the local file-system. > (not that *.jar would work in a generic application, > launched off the local FS). > > You need to mention each jar specifically, separated > by a '',''. > > -- > Andrew T. > PhySci.orgHi That still doesnt work...it says World.class cannot be found...when I change the file from rhtml to html it works fine....my world.class file is located in the "public" folder... Musnt I include it in rails format for example something like <% applet..... Thx a lot for the help! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Dec 18, 6:18 pm, Peet Vosloo <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Andrew Thompson wrote: > > On Dec 14, 8:14 pm, Peet Vosloo <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>...> >> Im quite new to rails and was wondering how to include a javaappletin > >> a rhtml file? Is it the same as in HTML? > > >> for example: <appletcode="World.class" > >> archive="*.jar"...> > You need to mention each jar specifically, separated > > by a '',''....> That still doesnt work...it says World.class cannot be found...when I > change the file from rhtml to html it works fine....I am only in a position to comment on HTML. But I suppose that answers your second question. "Is it the same as in HTML?" No - apparently not. Between you and me, if an ''rhtml'' file can include a link ''just like HTML'', I would launch the applet using JWS. Here is an example. <http://www.physci.org/jws/#jtest> -- Andrew T. PhySci.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---