Index: lams_tool_lamc/web/authoring/BasicContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_lamc/web/authoring/BasicContent.jsp,v diff -u -r1.46 -r1.47 --- lams_tool_lamc/web/authoring/BasicContent.jsp 12 Feb 2013 16:42:50 -0000 1.46 +++ lams_tool_lamc/web/authoring/BasicContent.jsp 20 Mar 2013 13:44:09 -0000 1.47 @@ -75,10 +75,26 @@ 'QuestionFile','width=500,height=200,scrollbars=yes'); } - function saveQTI(queryString) { - window.location.href = '&' - + queryString; + + function saveQTI(formHTML, formName) { + var form = $($.parseHTML(formHTML)); + $.ajax({ + type: "POST", + url: '', + data: form.serializeArray(), + success: function(response) { + $(questionListTargetDiv).html(response); + refreshThickbox(); + } + }); } + + function saveQTI(formHTML, formName) { + document.body.innerHTML += formHTML; + var form = document.getElementById(formName); + form.action = ''; + form.submit(); + } @@ -150,4 +166,4 @@

- + \ No newline at end of file