[LON-CAPA-users] Detecting What Part The Student Has Just
Answered
Sean Wolf
lon-capa-users@mail.lon-capa.org
Thu, 19 Mar 2009 16:05:44 -0700
--0016e64714c40855b8046580d780
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
I am now using
<display>$external::part </display>
To display the part, and it does return something. However it always yields
0 and not the id of the part that the student is currently on.
<display>&EXT('user.resource.resource.'.$external::part.'.solved')
</display>
The above line doesn't display anything, however.
On Thu, Mar 19, 2009 at 5:21 AM, H.K. Ng <hkng@fsu.edu> wrote:
> Hi,
>
> At 09:30 PM 3/18/2009, you wrote:
>
> Right after the <problem> tag I have these for lines of code:
>
> &EXT('user.resource.resource.2.tries')<br />
> &EXT('user.resource.resource.2.solved')<br />
> &EXT('user.resource.resource.$external::part') <br />
> $external::part<br />
>
> I complete the first part of the problem and then answer the second problem
> incorrectly thrice. This is what shows up when I view the page as both an
> author and a student (both in the construction space and in the context of
> the course):
>
> 3
> incorrect_attempted
> &EXT('user.resource.resource.$external::part')
>
>
> When calling this function, the argument should be something like
> <display>&EXT('user.resource.resource.'.$external::part.'.solved')
> </display> for example
>
> or assign it to a variable within the script tag.
>
>
> $external::part
>
>
> If you warped this with <display></display> it should show up. Or if you
> put it within the script tag and assign it to a variable then display the
> variable, it will work - I think.
>
> Hope that helps - hk
>
>
>
> I'm not sure if the $external function is not supported anymore or if I'm
> not calling it correctly. I'm using Firefox 3 if this helps.
>
> On Wed, Mar 18, 2009 at 6:14 PM, Mark Lucas <lucasm@ohio.edu> wrote:
> Sean Wolf wrote:
> I'm having problems using $external::part from
> /res/msu/albertel/test/ext_examples.problem
>
> Basically, it doesn't do anything; it doesn't even return a blank, it just
> shows up as text.
>
> --
> Sean Wolf
> 2400 Ford St.
> Golden, CO 80401
> (720) 897-7763
>
> Sean,
>
> Can you give some context as to how you are using it and in what
> environment you are working (is this in construction space or in the context
> of a course?). I'm not sure if I can help, but whoever can will probably be
> looking for a snippet of code or the code to the sample problem in order to
> help debug.
>
> Later,
> Mark
>
> _______________________________________________
> 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
>
>
--
Sean Wolf
2400 Ford St.
Golden, CO 80401
(720) 897-7763
--0016e64714c40855b8046580d780
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I am now using <br><br><display>$external::part </display><br><=
br>To display the part, and it does return something.=A0 However it always =
yields 0 and not the id of the part that the student is currently on.<br><b=
r>
<display>&EXT('user.resource.resource.'.$external::part.&=
#39;.solved') </display><br><br>The above line doesn't displa=
y anything, however.<br><br><div class=3D"gmail_quote">On Thu, Mar 19, 2009=
at 5:21 AM, H.K. Ng <span dir=3D"ltr"><<a href=3D"mailto:hkng@fsu.edu">=
hkng@fsu.edu</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Hi,<div class=3D"im"><br><br>
At 09:30 PM 3/18/2009, you wrote:<br>
<blockquote type=3D"cite">Right after the <problem>
tag I have these for lines of code:<br><br>
&EXT('user.resource.resource.2.tries')<br /><br>
&EXT('user.resource.resource.2.solved')<br /><br>
&EXT('user.resource.resource.$external::part') <br /><br>
$external::part<br /><br><br>
I complete the first part of the problem and then answer the second
problem incorrectly thrice.=A0 This is what shows up when I view the
page as both an author and a student (both in the construction space and
in the context of the course):<br><br>
3<br>
incorrect_attempted<br>
&EXT('user.resource.resource.$external::part') </blockquote><br=
></div>
When calling this function, the argument should be something like<br>
<display>&EXT('user.resource.resource.'.$external::part.&=
#39;.solved')
</display>=A0 for example<br><br>
or assign it to a variable within the script tag.<br><br>
<br>
<blockquote type=3D"cite">$external::part<br>
</blockquote><br>
If you warped this with <display></display> it should show
up. Or if you put it within the script tag and assign it to a variable
then display the variable, it will work - I think.<br><br>
Hope that helps - hk<div class=3D"im"><br><br>
<br><br>
<blockquote type=3D"cite">I'm not sure if the $external
function is not supported anymore or if I'm not calling it
correctly.=A0 I'm using Firefox 3 if this helps.<br><br>
On Wed, Mar 18, 2009 at 6:14 PM, Mark Lucas
<<a href=3D"mailto:lucasm@ohio.edu" target=3D"_blank">lucasm@ohio.edu</a=
>> wrote:<br>
<dl>
<dd>Sean Wolf wrote:<br>
<dl>
<dd>I'm having problems using $external::part from
/res/msu/albertel/test/ext_examples.problem<br><br>
</dd><dd>Basically, it doesn't do anything; it doesn't even return =
a blank, it
just shows up as text.<br><br>
</dd><dd>-- <br>
</dd><dd>Sean Wolf<br>
</dd><dd>2400 Ford St.<br>
</dd><dd>Golden, CO 80401<br>
</dd><dd>(720) 897-7763<br><br>
</dd></dl>
</dd><dd>Sean,<br><br>
</dd><dd>Can you give some context as to how you are using it and in what
environment you are working (is this in construction space or in the
context of a course?). I'm not sure if I can help, but whoever can will
probably be looking for a snippet of code or the code to the sample
problem in order to help debug.<br><br>
</dd><dd>Later,<br>
</dd><dd>Mark<br><br>
</dd><dd>_______________________________________________<br>
</dd><dd>LON-CAPA-users mailing list<br>
</dd><dd><a href=3D"mailto:LON-CAPA-users@mail.lon-capa.org" target=3D"_bla=
nk">
LON-CAPA-users@mail.lon-capa.org</a><br>
</dd><dd>
<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><br>
</dd></dl><br><br>
<br>
-- <br>
Sean Wolf <br>
2400 Ford St.<br>
Golden, CO 80401<br>
(720) 897-7763<br>
</blockquote></div></div>
</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>
--0016e64714c40855b8046580d780--