[LON-CAPA-users] Need to lookup correct answer by referencing part and id number
Tue, 3 Oct 2006 14:46:39 -0400
I have several problems that use popup windows with java applets for drawing
various objects. After the problem has closed and the answer date has passed
I would like to be able to pass to the popup the correct answers and display
them in the window. The numerical responses corresponding to these drawings
are hidden in the main page via the 'hiddenline' token.
I already have this worked out for displaying the results from prior student
submissions by referencing prior submissions using
&EXT('user.resource.resource.10.111.submission') for example.
What I'd like to do is reference the correct answer in the same type of way
and pass it to the popup if the answer date has passed. I need to do this in
some type of algorithmic way since I have lots of these problems and hard
coding all of them would be a PITA.
Thanks for any suggestions,
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com] On Behalf Of
> Guy Albertelli II
> Sent: Tuesday, October 03, 2006 2:32 PM
> To: firstname.lastname@example.org
> Subject: Re: [LON-CAPA-users] Need to lookup correct answer
> by referencing part and id number
> Hi James,
> > I need to be able to look up the correct answer to a problem by
> > referencing it's part and ID number.
> > For example, something like:
> > $tmptest = &EXT('user.resource.resource.10.111.answer');
> > Is there such a token? If there is, it must be something other than
> > "answer".
> No there isn't.
> Possibly with more details about what you are trying to do I
> might be able to propose a solution.
> email@example.com 0-7-1-6-27,137
> LON-CAPA-users mailing list