Index: lams_tool_lamc/web/authoring/BasicContent.jsp =================================================================== diff -u -ra43256ee6435f1cd14f46c235e4d507957a86a5b -ra1e990f3ee5ec7091752683571061da802f58bb2 --- lams_tool_lamc/web/authoring/BasicContent.jsp (.../BasicContent.jsp) (revision a43256ee6435f1cd14f46c235e4d507957a86a5b) +++ lams_tool_lamc/web/authoring/BasicContent.jsp (.../BasicContent.jsp) (revision a1e990f3ee5ec7091752683571061da802f58bb2) @@ -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