[LON-CAPA-users] <div> tags
Sean Wolf
lon-capa-users@mail.lon-capa.org
Sun, 24 May 2009 16:37:53 -0600
--001636c5b0eef05eac046ab02409
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Thanks for your help Stefan. My problem was that in the problem somewhere I
had this structure:
<startouttext />
>
> <div>
>
> <endouttext />
>
> </div>
>
..which was accidental; when I changed it to the intended structure:
<startouttext />
>
> <div></div>
>
> <endouttext />
>
..everything was ok.
Thanks,
Sean
On Sun, May 17, 2009 at 3:45 PM, Stefan Bisitz <
st.bisitz@fh-wolfenbuettel.de> wrote:
> Hi Sean,
>
> Please send details about
> - Where you have put the <div> tags
> - What error messages you get
>
> <div> tags are possible at several places within a LON-CAPA problem. If the
> colorful editor / the non-xml editor reports an error, the structure of your
> problem or the the hierarchical order is most likely not correct.
>
> Depending on the place where you put the <div> you may not be able to edit
> the tag but can delete it, e.g.
> ----------------
> <problem>
> <script type="loncapa/perl">
> [...]
> </script>
> <div style="[...]">
> <startouttext />
> <div>Text1</div>
> [...]
> <endouttext />
> <numericalresponse answer="$c">
> [...]
> </numericalresponse>
> </div>
> </problem>
> ----------------
> The style div can only be deleted in the colorful editor. The Text1 div can
> be fully edited.
>
> Hint:
> The styles from the example above don't include the submit button. If you
> like it included, you need to use a dummy part. Just wrap your whole problem
> content in a <part> and place your style div around this:
> ----------------
> <problem>
> <div style="...">
> <part id="10">
> [... problem content including text and response tag ...]
> </part>
> </div>
> </problem>
> ----------------
>
> Hope this helps a bit.
>
> Stefan Bisitz
>
>
> On 17.05.09, Sean Wolf <wolf.m.sean@gmail.com> wrote:
>
> > I am using <div> tags to format things but they cause errors with the
> authoring editor (the non-xml editor). It isn't a big problem because I
> only use the xml editor but just thought to email the list to see if I
> shouldn't be using <div> tags or if what is happening could be a bug.
> >
> > Thanks,
> > Sean
> >
> > --
> > Sean Wolf
> > 2400 Ford St.
> > Golden, CO 80401
> > (720) 897-7763
> >
> >
> >
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>
--
Sean Wolf
2400 Ford St.
Golden, CO 80401
(720) 897-7763
--001636c5b0eef05eac046ab02409
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks for your help Stefan.=A0 My problem was that in the problem somewher=
e I had this structure:<br><br><blockquote style=3D"border-left: 1px solid =
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class=3D=
"gmail_quote">
<startouttext /><br><br><div><br><br><endouttext /><br><b=
r></div><br></blockquote><br>..which was accidental; when I changed i=
t to the intended structure:<br><br><blockquote style=3D"border-left: 1px s=
olid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" cla=
ss=3D"gmail_quote">
<startouttext /><br><br>
<div></div><br><br>
<endouttext /><br></blockquote>
<br>..everything was ok.<br><br>Thanks,<br>Sean<br>
<br><br><br><br><div class=3D"gmail_quote">On Sun, May 17, 2009 at 3:45 PM,=
Stefan Bisitz <span dir=3D"ltr"><<a href=3D"mailto:st.bisitz@fh-wolfenb=
uettel.de">st.bisitz@fh-wolfenbuettel.de</a>></span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204)=
; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Sean,<br>
<br>
Please send details about<br>
- Where you have put the <div> tags<br>
- What error messages you get<br>
<br>
<div> tags are possible at several places within a LON-CAPA problem. =
If the colorful editor / the non-xml editor reports an error, the structure=
of your problem or the the hierarchical order is most likely not correct.<=
br>
<br>
Depending on the place where you put the <div> you may not be able to=
edit the tag but can delete it, e.g.<br>
----------------<br>
<problem><br>
<script type=3D"loncapa/perl"><br>
[...]<br>
</script><br>
<div style=3D"[...]"><br>
<startouttext /><br>
<div>Text1</div><br>
[...]<br>
<endouttext /><br>
<numericalresponse answer=3D"$c"><br>
[...]<br>
</numericalresponse><br>
</div><br>
</problem><br>
----------------<br>
The style div can only be deleted in the colorful editor. The Text1 div can=
be fully edited.<br>
<br>
Hint:<br>
The styles from the example above don't include the submit button. If y=
ou like it included, you need to use a dummy part. Just wrap your whole pro=
blem content in a <part> and place your style div around this:<br>
----------------<br>
<problem><br>
<div style=3D"..."><br>
<part id=3D"10"><br>
[... problem content including text and response tag ...]<br>
</part><br>
</div><br>
</problem><br>
----------------<br>
<br>
Hope this helps a bit.<br>
<br>
Stefan Bisitz<br>
<div><div></div><div class=3D"h5"><br>
<br>
On 17.05.09, Sean Wolf =A0<<a href=3D"mailto:wolf.m.sean@gmail.com">wolf=
.m.sean@gmail.com</a>> wrote:<br>
<br>
> I am using <div> tags to format things but they cause errors wit=
h the authoring editor (the non-xml editor). =A0It isn't a big problem =
because I only use the xml editor but just thought to email the list to see=
if I shouldn't be using <div> tags or if what is happening could=
be a bug.<br>
><br>
> Thanks,<br>
> Sean<br>
><br>
> --<br>
> Sean Wolf<br>
> 2400 Ford St.<br>
> Golden, CO 80401<br>
> (720) 897-7763<br>
><br>
><br>
><br>
</div></div>_______________________________________________<br>
LON-CAPA-users mailing list<br>
<a href=3D"mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon=
-capa.org</a><br>
<a href=3D"http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target=
=3D"_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br=
>
</blockquote></div><br><br clear=3D"all"><br>-- <br>Sean Wolf <br>2400 Ford=
St.<br>Golden, CO 80401<br>(720) 897-7763<br><br>
--001636c5b0eef05eac046ab02409--