[LON-CAPA-users] Can't hide <m>

Sean Wolf lon-capa-users@mail.lon-capa.org
Thu, 9 Apr 2009 18:36:34 -0600


--000e0cd4d2528abca60467288e33
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

First look at the code below:


> function showAnswer(part)
> {
> document.getElementById(part).style.visibility = "visible";
> }
>
> <input value="Show" type="button"
> onClick="javascript:showAnswer(1)"></input>
>
> <p style="visibility: hidden;" id="1">- ( $G Nm^2 * $m2 kg * $mencl kg ) /
> ( $rgs m ^ 2 ) = $Fmencl2 N</p>
>
> So when the "Show" button is clicked, I see the text inside of the <p> with
id="1".  However, if I put a <m> tag inside of the <p>, everything is
visible right way.  I'm guessing this is because of the LaTeX rendering.  Is
this desired functionality?  If so, any suggestions to being able to hide an
<m> tag until a button click?

Thanks,
Sean

-- 
Sean Wolf
2400 Ford St.
Golden, CO 80401
(720) 897-7763

--000e0cd4d2528abca60467288e33
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>First look at the code below:<br>=A0</div><blockquote style=3D"border-=
left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left=
: 1ex;" class=3D"gmail_quote">function showAnswer(part)<br>{<br>document.ge=
tElementById(part).style.visibility =3D &quot;visible&quot;;<br>
}<br><br>&lt;input value=3D&quot;Show&quot; type=3D&quot;button&quot; onCli=
ck=3D&quot;javascript:showAnswer(1)&quot;&gt;&lt;/input&gt;<br><br>&lt;p st=
yle=3D&quot;visibility: hidden;&quot; id=3D&quot;1&quot;&gt;- ( $G Nm^2 * $=
m2 kg * $mencl kg ) / ( $rgs m ^ 2 ) =3D $Fmencl2 N&lt;/p&gt;<br>
<br clear=3D"all"></blockquote>So when the &quot;Show&quot; button is click=
ed, I see the text inside of the &lt;p&gt; with id=3D&quot;1&quot;.=A0 Howe=
ver, if I put a &lt;m&gt; tag inside of the &lt;p&gt;, everything is visibl=
e right way.=A0 I&#39;m guessing this is because of the LaTeX rendering.=A0=
 Is this desired functionality?=A0 If so, any suggestions to being able to =
hide an &lt;m&gt; tag until a button click?<br>
<br>Thanks,<br>Sean<br><br>-- <br>Sean Wolf <br>2400 Ford St.<br>Golden, CO=
 80401<br>(720) 897-7763<br><br>

--000e0cd4d2528abca60467288e33--