[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 "visible";<br>
}<br><br><input value=3D"Show" type=3D"button" onCli=
ck=3D"javascript:showAnswer(1)"></input><br><br><p st=
yle=3D"visibility: hidden;" id=3D"1">- ( $G Nm^2 * $=
m2 kg * $mencl kg ) / ( $rgs m ^ 2 ) =3D $Fmencl2 N</p><br>
<br clear=3D"all"></blockquote>So when the "Show" button is click=
ed, I see the text inside of the <p> with id=3D"1".=A0 Howe=
ver, if I put a <m> tag inside of the <p>, everything is visibl=
e right way.=A0 I'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 <m> 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--