<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>HI Jacob,</div>
<div><br>
</div>
<div>I haven't worked with GeoGebra so may be missing something, but for other things I've done, I've sometimes added a part that the students don't see, set the weight to 0 and used responses with hiddenline boxes as in the tutorial to store information. This
 has the unfortunate consequence though of potentially confusing students if they look at an interface that shows them that there were 4 parts when in fact they see only three.</div>
<div><br>
</div>
<div>Alternatively, more recently I've used a custom response to store additional information in a part that the students DO see but use the customresponse processing to check their answer only against the relevant part of the submission.  Here's an example:</div>
<div><br>
</div>
<div>
<div><customresponse answerdisplay="$key" id="11"></div>
<div><answer type="loncapa/perl" id="1_8">if (substr($submission,0,5)==$key) {return 'EXACT_ANS'; }</div>
<div>return 'INCORRECT';</answer></div>
<div>    <hiddenline /></div>
<div>  </customresponse></div>
</div>
<div><br>
</div>
<div>In this case, I control the submission from my JavaScript widget and know that it will be exactly 5 characters long, so I'm comparing only the first give characters of the student submission against the correct answer (and showing the correct answer in
 the answer display) but I have additional information stored after the first five characters of the submission which I'm using to reset the display to match the student's submission.  If you'll have a variable number of characters in the correct answer, I
 would think you could add a special character of some kind following their submission (: or | for example?) and then use that to delineate where their answer stops and your data starts.</div>
<div>
<div>
<div><br>
</div>
<div>Doug</div>
<div>
<div><br>
</div>
<div>Douglas Mills</div>
<div>Director of Instructional Technology</div>
<div>Department of Chemistry</div>
<div>University of Illinois</div>
</div>
</div>
<div><br>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:lon-capa-users-bounces@mail.lon-capa.org">lon-capa-users-bounces@mail.lon-capa.org</a>> on behalf of Jacob Bond <<a href="mailto:bond13@purdue.edu">bond13@purdue.edu</a>><br>
<span style="font-weight:bold">Reply-To: </span>Discussion list for LON-CAPA users <<a href="mailto:lon-capa-users@mail.lon-capa.org">lon-capa-users@mail.lon-capa.org</a>><br>
<span style="font-weight:bold">Date: </span>Sunday, March 6, 2016 at 12:13 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:lon-capa-users@mail.lon-capa.org">lon-capa-users@mail.lon-capa.org</a>" <<a href="mailto:lon-capa-users@mail.lon-capa.org">lon-capa-users@mail.lon-capa.org</a>><br>
<span style="font-weight:bold">Subject: </span>[LON-CAPA-users] Having javascript variables persist through submission<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div><style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I am working on using GeoGebra for having students do graphing (for example using this app:</p>
<p><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ggbtu.be_m2820289&d=BQMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=lm_7ZS7-EAc__llGmOcR7rpM4OG1Bat_vcdWNBw5ZVA&m=FYWeWpOjYT9pl0KX39HAaD0CJ-vEHamKvkMvZiAiIoc&s=3EfqONotnrQ2Q3KLDaOwsb31KuakqKe5IPrnH6a8Vys&e=" id="LPlnk350777"></a><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ggbtu.be_m2781237&d=BQMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=lm_7ZS7-EAc__llGmOcR7rpM4OG1Bat_vcdWNBw5ZVA&m=FYWeWpOjYT9pl0KX39HAaD0CJ-vEHamKvkMvZiAiIoc&s=uERjrgZGR6FpQttIyTZ45rgXaOWHsQleLizWWRoXmmQ&e=" id="LPlnk204728" title="http://ggbtu.be/m2781237
Ctrl&#43;Click or tap to follow the link"><font color="red"><b>MailScanner has detected a possible fraud attempt from "urldefense.proofpoint.com" claiming to be</b></font> http://ggbtu.be/m2781237</a><br>
)<br>
</p>
<p>I would like to have the graph persist after submission as in the tutorial videos (</p>
<p><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lon-2Dcapa.org_geogebraTutorial.html&d=BQMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=lm_7ZS7-EAc__llGmOcR7rpM4OG1Bat_vcdWNBw5ZVA&m=FYWeWpOjYT9pl0KX39HAaD0CJ-vEHamKvkMvZiAiIoc&s=qExMMDR36H5tiaIZT7X4y0FWOjHkyBBCT3RFS6FANpk&e=" id="LPlnk679832"><font color="red"><b>MailScanner has detected a possible fraud attempt from "urldefense.proofpoint.com" claiming to be</b></font> http://www.lon-capa.org/geogebraTutorial.html</a></p>
<p><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lon-2Dcapa.org_geogebraTutorial.html&d=BQMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=lm_7ZS7-EAc__llGmOcR7rpM4OG1Bat_vcdWNBw5ZVA&m=FYWeWpOjYT9pl0KX39HAaD0CJ-vEHamKvkMvZiAiIoc&s=qExMMDR36H5tiaIZT7X4y0FWOjHkyBBCT3RFS6FANpk&e="></a>see
 especially video 3B)</p>
<p>However, I am checking the slope and x-intercept and so I don't have a submission box to store the coordinates of the points when the graph is submitted.  Is there another way to keep the values, like setting them as a variable for Perl or something?</p>
<p><br>
</p>
<p>Thank you,</p>
<p>Jacob<br>
<br>
</p>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>