I have a page that contains a Java applet. The applet is in the _program.html.erb
partial. Here's the simplified ERB:
<%= render "program" %>
<div class="buttons" style="text-align:center; margin-top: 20px">
BUTTONS <!--this doesn't render, but it renders if I remove the applet tag in _program, below. It's not that the buttons are blocked from view - they're not in the HTML source -->
</div>
Here's _program.html.erb
:
<applet archive="<%= program.compiled.url %>" code="<%= program.name %>" />
The applet renders, but nothing after it renders, including the ERB and HTML after it and the footer partials. The HTML before the applet tag are closed properly after the applet tag. I found that using <embed>
instead of <applet>
fixes it (ie things after the program render again), but does anyone know why? Specifically:
- Why does Rails not return any markup after the applet?
- Why does using
<embed>
work?