[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">
&lt;startouttext /&gt;<br><br>&lt;div&gt;<br><br>&lt;endouttext /&gt;<br><b=
r>&lt;/div&gt;<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">
&lt;startouttext /&gt;<br><br>
&lt;div&gt;&lt;/div&gt;<br><br>
&lt;endouttext /&gt;<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">&lt;<a href=3D"mailto:st.bisitz@fh-wolfenb=
uettel.de">st.bisitz@fh-wolfenbuettel.de</a>&gt;</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 &lt;div&gt; tags<br>
- What error messages you get<br>
<br>
&lt;div&gt; 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 &lt;div&gt; you may not be able to=
 edit the tag but can delete it, e.g.<br>
----------------<br>
&lt;problem&gt;<br>
&lt;script type=3D&quot;loncapa/perl&quot;&gt;<br>
[...]<br>
&lt;/script&gt;<br>
&lt;div style=3D&quot;[...]&quot;&gt;<br>
&lt;startouttext /&gt;<br>
&lt;div&gt;Text1&lt;/div&gt;<br>
[...]<br>
&lt;endouttext /&gt;<br>
&lt;numericalresponse answer=3D&quot;$c&quot;&gt;<br>
[...]<br>
&lt;/numericalresponse&gt;<br>
&lt;/div&gt;<br>
&lt;/problem&gt;<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&#39;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 &lt;part&gt; and place your style div around this:<br>

----------------<br>
&lt;problem&gt;<br>
&lt;div style=3D&quot;...&quot;&gt;<br>
&lt;part id=3D&quot;10&quot;&gt;<br>
[... problem content including text and response tag ...]<br>
&lt;/part&gt;<br>
&lt;/div&gt;<br>
&lt;/problem&gt;<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&lt;<a href=3D"mailto:wolf.m.sean@gmail.com">wolf=
.m.sean@gmail.com</a>&gt; wrote:<br>
<br>
&gt; I am using &lt;div&gt; tags to format things but they cause errors wit=
h the authoring editor (the non-xml editor). =A0It isn&#39;t a big problem =
because I only use the xml editor but just thought to email the list to see=
 if I shouldn&#39;t be using &lt;div&gt; tags or if what is happening could=
 be a bug.<br>

&gt;<br>
&gt; Thanks,<br>
&gt; Sean<br>
&gt;<br>
&gt; --<br>
&gt; Sean Wolf<br>
&gt; 2400 Ford St.<br>
&gt; Golden, CO 80401<br>
&gt; (720) 897-7763<br>
&gt;<br>
&gt;<br>
&gt;<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--