Features & Development

Geogebra screenshot

Geogebra screenshot

by Andrew Bayliss -
Number of replies: 1
I have finally been able to program some questions that include geogebra applets, and get them to appear the way I intended. I absolutely love being able to use it and the tools that come with geogebra. 

One thing I have wondered, is it possible to use "ggbApplet.writePNGtoFile" from the geogebra's built in javascript commands to save a students construction or graph and then have that picture appear in the essay_answer grader to be graded by the professor/teacher at a later time?

Any help or advice about going about this would be great.  
In reply to Andrew Bayliss

Re: Geogebra screenshot

by Andrew Bayliss -
I'm trying to use the following code.

submitActionScript =>qq{ getQE("answerBox").value=getGraph() },

with the following in the javascript section.

function getGraph() {
        var applet = getApplet("$appletName");
        var success = applet.writePNGtoFile("Quad_Lin_sys.png", 1, false, 300);
        return success;
 }

However, I think from reading the documentation on the geogebra site that the applet is probably blocked from saving anything on the sever unless it is signed with a certificate, and my server is not signed. I might be able to get a csr for my site, but wonder if I did would webwork even allow it.