[Building Sakai] Chrome still not able to export QTI files

Raymond Naseef raymond.naseef at gmail.com
Mon Feb 11 19:11:42 PST 2013


Hi William,

I was able to reproduce this issue with Chrome 24 running Sakai Trunk
116388.  If you try to save the page showing the XML, the saved file is an
HTML page (looks like the saved page is "exportAssessment.jsp 115704").

Here is a workaround for this:

1) Click on the XML showing on the browser
2) Select all (Ctrl-A in Windows, maybe Command-A in Mac)
3) Paste it all into blank text file (Notepad/TextEdit/etc)
4) Replace the 1st line of the file (it is not XML):
 - FROM
"This XML file does not appear to have any style information associated
with it. The document tree is shown below."
 - TO
<?xml version="1.0" encoding="UTF-8"?>

Looking for solution, I found out some details, but not sure when I may
have time to check further.

I see the following source code in the JSP form
"/samigo/samigo-app/src/webapp/jsf/qti/exportAssessment.jsp".  I removed
onclick trigger from the "Download" button, and that did not help.  FYI:
function clearFormHiddenParams_exportAssessmentForm() appears to do nothing.


  <p class="act">
    <input type="submit" name="exportAssessmentForm:_id9" value="Download"
onclick="clearFormHiddenParams_exportAssessmentForm(this.form.id);" />




   <input type="reset" name="exportAssessmentForm:_id11" value="Cancel"
onclick="clearFormHiddenParams_exportAssessmentForm(this.form.id);window.close()"
style="act" />
  </p>
 <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW"
value="_id71:_id72" /><input type="hidden" name="exportAssessmentForm"
value="exportAssessmentForm" />
<script type="text/javascript">
<!--
function clearFormHiddenParams_exportAssessmentForm(curFormName) {
  var curForm = document.forms[curFormName];
}
//-->
</script>


On Fri, Feb 1, 2013 at 2:48 PM, William Karavites
<willkara at oit.rutgers.edu>wrote:

> Chrome currently still does not allow exporting of QTI files. Its symptoms
> are consistent with this bug<https://jira.sakaiproject.org/browse/SAM-908>.
> I checked our code just to make sure and we currently have both of those
> patches in our system.
>
> Any ideas?
>
> -William
>
> ------------------------------------
> William Karavites
> Application Programmer
> OIT/OIRT- Rutgers University
> Office: 732-445-8726
> Cell: 732-822-9405
> willkara at rutgers.edu
> ------------------------------------
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130211/ff80bb27/attachment.html 


More information about the sakai-dev mailing list